mirror of
https://develop.openfoam.com/Development/openfoam.git
synced 2025-11-28 03:28:01 +00:00
fvOptions/constraints/fixedValueConstraint: Replacement for the nonsensical ExplicitSetValue
Description
Constrain the field values within a specified region.
For example to set the turbulence properties within a porous region:
\verbatim
porosityTurbulence
{
type scalarFixedValueConstraint;
active yes;
scalarFixedValueConstraintCoeffs
{
selectionMode cellZone;
cellZone porosity;
fieldValues
{
k 30.7;
epsilon 1.5;
}
}
}
\endverbatim
See tutorials/compressible/rhoSimpleFoam/angledDuctExplicitFixedCoeff
constant/fvOptions for an example of this fvOption in action.
This commit is contained in:
@ -15,22 +15,7 @@ FoamFile
|
||||
}
|
||||
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
|
||||
|
||||
fixedTemperaure1
|
||||
{
|
||||
type fixedTemperatureConstraint;
|
||||
active yes;
|
||||
|
||||
fixedTemperatureConstraintCoeffs
|
||||
{
|
||||
selectionMode cellZone;
|
||||
cellZone porosity;
|
||||
mode uniform;
|
||||
temperature 350;
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
porosity1
|
||||
porosity
|
||||
{
|
||||
type explicitPorositySource;
|
||||
active yes;
|
||||
@ -65,4 +50,37 @@ porosity1
|
||||
}
|
||||
|
||||
|
||||
fixedTemperature
|
||||
{
|
||||
type fixedTemperatureConstraint;
|
||||
active yes;
|
||||
|
||||
fixedTemperatureConstraintCoeffs
|
||||
{
|
||||
selectionMode cellZone;
|
||||
cellZone porosity;
|
||||
mode uniform;
|
||||
temperature 350;
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
porosityTurbulence
|
||||
{
|
||||
type scalarFixedValueConstraint;
|
||||
active yes;
|
||||
|
||||
scalarFixedValueConstraintCoeffs
|
||||
{
|
||||
selectionMode cellZone;
|
||||
cellZone porosity;
|
||||
fieldValues
|
||||
{
|
||||
k 1;
|
||||
epsilon 150;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
// ************************************************************************* //
|
||||
|
||||
Reference in New Issue
Block a user