mirror of
https://develop.openfoam.com/Development/openfoam.git
synced 2025-11-28 03:28:01 +00:00
In most boundary conditions, fvOptions etc. required and optional fields
to be looked-up from the objectRegistry are selected by setting the
keyword corresponding to the standard field name in the BC etc. to the
appropriate name in the objectRegistry. Usually a default is provided
with sets the field name to the keyword name, e.g. in the
totalPressureFvPatchScalarField the velocity is selected by setting the
keyword 'U' to the appropriate name which defaults to 'U':
Property | Description | Required | Default value
U | velocity field name | no | U
phi | flux field name | no | phi
.
.
.
However, in some BCs and functionObjects and many fvOptions another
convention is used in which the field name keyword is appended by 'Name'
e.g.
Property | Description | Required | Default value
pName | pressure field name | no | p
UName | velocity field name | no | U
This difference in convention is unnecessary and confusing, hinders code
and dictionary reuse and complicates code maintenance. In this commit
the appended 'Name' is removed from the field selection keywords
standardizing OpenFOAM on the first convention above.
107 lines
3.1 KiB
C++
107 lines
3.1 KiB
C++
/*--------------------------------*- C++ -*----------------------------------*\
|
|
| ========= | |
|
|
| \\ / F ield | OpenFOAM: The Open Source CFD Toolbox |
|
|
| \\ / O peration | Version: dev |
|
|
| \\ / A nd | Web: www.OpenFOAM.org |
|
|
| \\/ M anipulation | |
|
|
\*---------------------------------------------------------------------------*/
|
|
FoamFile
|
|
{
|
|
version 2.0;
|
|
format ascii;
|
|
class dictionary;
|
|
object fvOptions;
|
|
}
|
|
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
|
|
|
|
disk
|
|
{
|
|
type rotorDisk;
|
|
active on;
|
|
|
|
rotorDiskCoeffs
|
|
{
|
|
selectionMode cellZone;
|
|
cellZone rotatingZone;
|
|
|
|
fields (U); // Names of fields on which to apply source
|
|
nBlades 3; // Number of blades
|
|
tipEffect 0.96; // Normalised radius above which lift = 0
|
|
|
|
inletFlowType local; // Inlet flow type specification
|
|
inletVelocity (0 1 0);
|
|
|
|
geometryMode specified;
|
|
|
|
origin (0 0 0);
|
|
axis (0 1 0);
|
|
|
|
refDirection (0 0 1); // Reference direction
|
|
// - used as reference for psi angle
|
|
rpm 1000;
|
|
//pointAbove (0 0 0.25);
|
|
|
|
trimModel fixedTrim; // fixed || targetForce
|
|
|
|
rhoRef 1000;
|
|
rhoInf 1;
|
|
|
|
fixedTrimCoeffs
|
|
{
|
|
theta0 0;
|
|
theta1c 0;
|
|
theta1s 0;
|
|
}
|
|
|
|
flapCoeffs
|
|
{
|
|
beta0 0; // Coning angle [deg]
|
|
beta1c 0; // Lateral flapping coeff (cos coeff)
|
|
beta2s 0; // Longitudinal flapping coeff (sin coeff)
|
|
}
|
|
|
|
blade
|
|
{
|
|
data
|
|
(
|
|
(profile1 (0.1 -6 0.02))
|
|
(profile1 (0.25 -6 0.02))
|
|
);
|
|
}
|
|
|
|
profiles
|
|
{
|
|
profile1
|
|
{
|
|
type lookup;
|
|
data
|
|
(
|
|
(-90 0.21 1.45)
|
|
(-18 0.21 1.45)
|
|
(-16 0.165 1.3)
|
|
(-14 0.125 1.1)
|
|
(-12 0.092 0.95)
|
|
(-10 0.07 0.8)
|
|
(-8 0.05 0.64)
|
|
(-6 0.04 0.5)
|
|
(-4 0.028 0.32)
|
|
(-2 0.022 0.18)
|
|
(0 0.02 0)
|
|
(2 0.022 0.18)
|
|
(4 0.028 0.32)
|
|
(6 0.04 0.5)
|
|
(8 0.05 0.64)
|
|
(10 0.07 0.8)
|
|
(12 0.092 0.95)
|
|
(14 0.125 1.1)
|
|
(16 0.165 1.3)
|
|
(18 0.21 1.45)
|
|
(90 0.21 1.45)
|
|
);
|
|
}
|
|
}
|
|
}
|
|
}
|
|
|
|
// ************************************************************************* //
|