limitField

Syntax

Defined in an fvOptions dictionary in the system folder of the CFD case. Can only be applied if the solver is able to handle fvOptions.

Examples

limitTurbulence
{
    type            limitField;

    selectionMode   all;

    limitFieldName  "body";
    limitBelowValue 0.1;
    limitAboveValue 0.6;

    fieldValues
    {
        k           1e-12;
        omega       1e-6;
    }
}

limitVelocity
{
    type            limitField;

    selectionMode   all;

    limitFieldName  "alpha.water";
    limitAboveValue 0.9;

    fieldValues
    {
        U           ( 0 0 2 );
    }
}
  • limitFieldName = the scalar field inidicating if fields are to be limited

  • limitBelowValue = limiter field value below which field values in cell will be set (default: -1e-12)

  • limitAboveValue = limiter field value above which field values in cell will be set (default: 1e12)

  • fieldValues = subDictionary listing all fields and the desired value to be set when limiter conditions are met

Description

Constrains fields when a (scalar) limiter field exceeds specified values.

The limiter field must be specified by the user using the limitFieldName keyword. In every cell where the value of limitFieldName is below limitBelowValue or above limitAboveValue, the field is set to the specified value.

The fieldValues subDict sets which fields are to be limited along with the actual field value to be set. Scalar and vector fields are allowed. Different field types may be mixed.

Restrictions

Only possible for solvers which call fvOptions for a scalar.

Note

The settings limitBelowValue and limitAboveValue are mututally exclusive and cannot be used at the same time. To limit a field in both directions, i.e. to a minimum and a maximum value, use two separate instances of this model.