fvOptions: The "<type>Coeffs" sub-dictionary is now optional

For example the actuationDiskSource fvOption may now be specified

disk1
{
    type            actuationDiskSource;

    fields      (U);

    selectionMode   cellSet;
    cellSet         actuationDisk1;
    diskDir         (1 0 0);    // Orientation of the disk
    Cp              0.386;
    Ct              0.58;
    diskArea        40;
    upstreamPoint   (581849 4785810 1065);
}

rather than

disk1
{
    type            actuationDiskSource;
    active          on;

    actuationDiskSourceCoeffs
    {
        fields      (U);

        selectionMode   cellSet;
        cellSet         actuationDisk1;
        diskDir         (1 0 0);    // Orientation of the disk
        Cp              0.386;
        Ct              0.58;
        diskArea        40;
        upstreamPoint   (581849 4785810 1065);
    }
}

but this form is supported for backward compatibility.
This commit is contained in:
Henry Weller
2017-04-13 13:30:17 +01:00
parent e9ba8242ca
commit 8b55ea4fb1
39 changed files with 383 additions and 529 deletions

View File

@ -18,7 +18,6 @@ FoamFile
porosity1
{
type explicitPorositySource;
active yes;
explicitPorositySourceCoeffs
{
@ -27,21 +26,18 @@ porosity1
type DarcyForchheimer;
DarcyForchheimerCoeffs
{
d (7e5 -1000 -1000);
f (0 0 0);
d (7e5 -1000 -1000);
f (0 0 0);
coordinateSystem
coordinateSystem
{
type cartesian;
origin (0 0 0);
coordinateRotation
{
type cartesian;
origin (0 0 0);
coordinateRotation
{
type axesRotation;
e1 (0.70710678 0.70710678 0);
e3 (0 0 1);
}
type axesRotation;
e1 (0.70710678 0.70710678 0);
e3 (0 0 1);
}
}
}

View File

@ -18,7 +18,6 @@ FoamFile
porosity1
{
type explicitPorositySource;
active yes;
explicitPorositySourceCoeffs
{
@ -27,21 +26,18 @@ porosity1
type DarcyForchheimer;
DarcyForchheimerCoeffs
{
d (5e7 -1000 -1000);
f (0 0 0);
d (5e7 -1000 -1000);
f (0 0 0);
coordinateSystem
coordinateSystem
{
type cartesian;
origin (0 0 0);
coordinateRotation
{
type cartesian;
origin (0 0 0);
coordinateRotation
{
type axesRotation;
e1 (0.70710678 0.70710678 0);
e2 (0 0 1);
}
type axesRotation;
e1 (0.70710678 0.70710678 0);
e2 (0 0 1);
}
}
}

View File

@ -18,7 +18,6 @@ FoamFile
porosity1
{
type explicitPorositySource;
active yes;
explicitPorositySourceCoeffs
{
@ -27,21 +26,18 @@ porosity1
type DarcyForchheimer;
DarcyForchheimerCoeffs
{
d (1e5 -1000 -1000);
f (0 0 0);
d (1e5 -1000 -1000);
f (0 0 0);
coordinateSystem
coordinateSystem
{
type cartesian;
origin (0 0 0);
coordinateRotation
{
type cartesian;
origin (0 0 0);
coordinateRotation
{
type axesRotation;
e1 (1 0 0);
e2 (0 1 0);
}
type axesRotation;
e1 (1 0 0);
e2 (0 1 0);
}
}
}

View File

@ -18,16 +18,12 @@ FoamFile
source1
{
type fixedTemperatureConstraint;
active yes;
fixedTemperatureConstraintCoeffs
{
selectionMode cellZone;
cellZone porosity;
selectionMode cellZone;
cellZone porosity;
mode uniform;
temperature 350;
}
mode uniform;
temperature 350;
}

View File

@ -18,7 +18,6 @@ FoamFile
porosity
{
type explicitPorositySource;
active yes;
explicitPorositySourceCoeffs
{
@ -53,32 +52,24 @@ porosity
fixedTemperature
{
type fixedTemperatureConstraint;
active yes;
fixedTemperatureConstraintCoeffs
{
selectionMode cellZone;
cellZone porosity;
mode uniform;
temperature 350;
}
selectionMode cellZone;
cellZone porosity;
mode uniform;
temperature 350;
}
porosityTurbulence
{
type scalarFixedValueConstraint;
active yes;
scalarFixedValueConstraintCoeffs
selectionMode cellZone;
cellZone porosity;
fieldValues
{
selectionMode cellZone;
cellZone porosity;
fieldValues
{
k 1;
epsilon 150;
}
k 1;
epsilon 150;
}
}