The fact that these names refer to constraints is clear in context, so the name does not need to contain 'Constraint'. Having 'Constraint' in the name is a historic convention that dates back to when fvConstraints and fvModels were combined in a single fvOptions interface. In this interface, disambiguation between sources and constraints was necessary. This change has been applied to the 'fixedValue' and 'fixedTemperature' constraints, which were formerly named 'fixedValueConstraint' and 'fixedTemperatureConstraint', respectively. The old names are still available for backwards compatibility.
50 lines
1.0 KiB
C++
50 lines
1.0 KiB
C++
/*--------------------------------*- C++ -*----------------------------------*\
|
|
========= |
|
|
\\ / F ield | OpenFOAM: The Open Source CFD Toolbox
|
|
\\ / O peration | Website: https://openfoam.org
|
|
\\ / A nd | Version: dev
|
|
\\/ M anipulation |
|
|
\*---------------------------------------------------------------------------*/
|
|
FoamFile
|
|
{
|
|
format ascii;
|
|
class dictionary;
|
|
location "system";
|
|
object fvConstraints;
|
|
}
|
|
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
|
|
|
|
limitp
|
|
{
|
|
type limitPressure;
|
|
|
|
minFactor 0.4;
|
|
maxFactor 1.5;
|
|
}
|
|
|
|
fixedTemperature
|
|
{
|
|
type fixedTemperature;
|
|
|
|
cellZone porosity;
|
|
|
|
mode uniform;
|
|
temperature 350;
|
|
}
|
|
|
|
porosityTurbulence
|
|
{
|
|
type fixedValue;
|
|
|
|
cellZone porosity;
|
|
|
|
fieldValues
|
|
{
|
|
k 1;
|
|
epsilon 150;
|
|
}
|
|
}
|
|
|
|
|
|
// ************************************************************************* //
|