Standardized the selection of required and optional fields in BCs, fvOptions, functionObjects etc.

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.
This commit is contained in:
Henry Weller
2016-05-21 20:28:20 +01:00
parent ddfbaa7fa4
commit e22c65dd8e
181 changed files with 232 additions and 440 deletions

View File

@ -39,8 +39,6 @@ boundaryField
{
type totalPressure;
p0 $internalField;
U U;
phi phi;
rho none;
psi none;
gamma 1;

View File

@ -36,8 +36,6 @@ boundaryField
type totalTemperature;
value uniform 297;
T0 uniform 297;
U U;
phi phi;
rho none;
psi thermo:psi;
gamma 1.4;

View File

@ -30,8 +30,6 @@ boundaryField
{
type waveTransmissive;
field p;
phi phi;
rho rho;
psi thermo:psi;
fieldInf 101325;
gamma 1.4;
@ -44,8 +42,6 @@ boundaryField
type totalPressure;
value uniform 101325;
p0 uniform 101325;
U U;
phi phi;
rho none;
psi thermo:psi;
gamma 1.4;

View File

@ -1241,8 +1241,6 @@ boundaryField
freestream
{
type totalTemperature;
U U;
phi phi;
psi thermo:psi;
gamma 1.4;
T0 uniform 297;

View File

@ -1233,8 +1233,6 @@ boundaryField
{
type waveTransmissive;
field p;
phi phi;
rho rho;
psi thermo:psi;
gamma 1.4;
fieldInf 101325;
@ -1272,8 +1270,6 @@ boundaryField
freestream
{
type totalPressure;
U U;
phi phi;
rho none;
psi thermo:psi;
gamma 1.4;

View File

@ -44,8 +44,6 @@ outlet
type totalPressure;
value uniform 1e5;
p0 uniform 1e5;
U U;
phi phi;
rho rho;
psi none;
gamma 1.4;

View File

@ -24,8 +24,6 @@ boundaryField
inlet
{
type flowRateInletVelocity;
phi phi;
rho rho;
massFlowRate 0.0001;
value uniform (0 0 0);
}
@ -51,8 +49,6 @@ boundaryField
plenum
{
type pressureInletVelocity;
phi phi;
rho rho;
value uniform (0 0 0);
}
}

View File

@ -28,7 +28,6 @@ boundaryField
outlet
{
type waveTransmissive;
phi phi;
psi thermo:psi;
gamma 1.3;
fieldInf 1e5;

View File

@ -39,8 +39,6 @@ boundaryField
{
type totalPressure;
p0 $internalField;
U U;
phi phi;
rho none;
psi none;
gamma 1;

View File

@ -30,8 +30,6 @@ boundaryField
{
type waveTransmissive;
field p;
phi phi;
rho rho;
psi thermo:psi;
gamma 1.4;
fieldInf 1;

View File

@ -29,8 +29,6 @@ boundaryField
{
type waveTransmissive;
field p;
phi phi;
rho rho;
psi thermo:psi;
gamma 1.3;
fieldInf 100000;

View File

@ -59,8 +59,6 @@ functions
WALL10
);
pName p;
UName U;
log true;
rhoInf 1;
CofR (0 0 0);

View File

@ -30,8 +30,6 @@ boundaryField
{
type waveTransmissive;
field p;
phi phi;
rho rho;
psi thermo:psi;
gamma 1.3;
fieldInf 100000;