mirror of
https://develop.openfoam.com/Development/openfoam.git
synced 2025-11-28 03:28:01 +00:00
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:
@ -18,18 +18,14 @@ FoamFile
|
||||
source1
|
||||
{
|
||||
type fixedTemperatureConstraint;
|
||||
active yes;
|
||||
|
||||
fixedTemperatureConstraintCoeffs
|
||||
{
|
||||
timeStart 0.1;
|
||||
duration 0.4;
|
||||
selectionMode cellSet;
|
||||
cellSet ignitionCells;
|
||||
timeStart 0.1;
|
||||
duration 0.4;
|
||||
selectionMode cellSet;
|
||||
cellSet ignitionCells;
|
||||
|
||||
mode uniform;
|
||||
temperature 2000;
|
||||
}
|
||||
mode uniform;
|
||||
temperature 2000;
|
||||
}
|
||||
|
||||
|
||||
|
||||
@ -18,7 +18,6 @@ FoamFile
|
||||
filter1
|
||||
{
|
||||
type explicitPorositySource;
|
||||
active yes;
|
||||
|
||||
explicitPorositySourceCoeffs
|
||||
{
|
||||
@ -27,21 +26,18 @@ filter1
|
||||
|
||||
type DarcyForchheimer;
|
||||
|
||||
DarcyForchheimerCoeffs
|
||||
{
|
||||
d (500000 -1000 -1000);
|
||||
f (0 0 0);
|
||||
d (500000 -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);
|
||||
}
|
||||
}
|
||||
}
|
||||
@ -51,24 +47,20 @@ filter1
|
||||
massSource1
|
||||
{
|
||||
type scalarSemiImplicitSource;
|
||||
active yes;
|
||||
|
||||
scalarSemiImplicitSourceCoeffs
|
||||
timeStart 0.2;
|
||||
duration 2.0;
|
||||
selectionMode points;
|
||||
points
|
||||
(
|
||||
(2.75 0.5 0)
|
||||
);
|
||||
|
||||
volumeMode absolute;
|
||||
injectionRateSuSp
|
||||
{
|
||||
timeStart 0.2;
|
||||
duration 2.0;
|
||||
selectionMode points;
|
||||
points
|
||||
(
|
||||
(2.75 0.5 0)
|
||||
);
|
||||
|
||||
volumeMode absolute;
|
||||
injectionRateSuSp
|
||||
{
|
||||
rho (1e-4 0); // kg/s
|
||||
H2O (1e-4 0); // kg/s
|
||||
}
|
||||
rho (1e-4 0); // kg/s
|
||||
H2O (1e-4 0); // kg/s
|
||||
}
|
||||
}
|
||||
|
||||
@ -76,23 +68,19 @@ massSource1
|
||||
momentumSource1
|
||||
{
|
||||
type vectorSemiImplicitSource;
|
||||
active yes;
|
||||
|
||||
vectorSemiImplicitSourceCoeffs
|
||||
timeStart 0.2;
|
||||
duration 2.0;
|
||||
selectionMode points;
|
||||
points
|
||||
(
|
||||
(2.75 0.5 0)
|
||||
);
|
||||
|
||||
volumeMode absolute;
|
||||
injectionRateSuSp
|
||||
{
|
||||
timeStart 0.2;
|
||||
duration 2.0;
|
||||
selectionMode points;
|
||||
points
|
||||
(
|
||||
(2.75 0.5 0)
|
||||
);
|
||||
|
||||
volumeMode absolute;
|
||||
injectionRateSuSp
|
||||
{
|
||||
U ((0 0.005 0) 0);
|
||||
}
|
||||
U ((0 0.005 0) 0);
|
||||
}
|
||||
}
|
||||
|
||||
@ -100,23 +88,19 @@ momentumSource1
|
||||
energySource1
|
||||
{
|
||||
type scalarSemiImplicitSource;
|
||||
active yes;
|
||||
|
||||
scalarSemiImplicitSourceCoeffs
|
||||
timeStart 0.2;
|
||||
duration 2.0;
|
||||
selectionMode points;
|
||||
points
|
||||
(
|
||||
(2.75 0.5 0)
|
||||
);
|
||||
|
||||
volumeMode absolute;
|
||||
injectionRateSuSp
|
||||
{
|
||||
timeStart 0.2;
|
||||
duration 2.0;
|
||||
selectionMode points;
|
||||
points
|
||||
(
|
||||
(2.75 0.5 0)
|
||||
);
|
||||
|
||||
volumeMode absolute;
|
||||
injectionRateSuSp
|
||||
{
|
||||
h (10 0);
|
||||
}
|
||||
h (10 0);
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user