Properties

  • Wrapper around the fixedValue condition
  • Sets the field to a uniform value
  • Applicable to all variable types

Usage

The condition is specified in the field file using:

<patchName>
{
    type            uniformFixedValue;
    uniformValue    <Function1>;
}

The uniformValue is a Foam::Function1 type, allowing the value to be prescribed as a function of time. For example, to ramp vector values from (0 0 0) to (10 0 0) over 5 seconds:

<patchName>
{
    type            uniformFixedValue;
    uniformValue    table
    (
        (0   (0 0 0))
        (5   (10 0 0))
    );
}

Further information

Source code:

Related: