# Fixed value boundary condition type¶

The fixed value boundary condition type prescribes the value of a field on a certain boundary of the domain. This value could be constant or dependent on time and/or space coordinates. Typical use cases are:

• Mechanical fixtures (screw holes, bearings etc.)

The displacement is normally set to zero.

• Inlets and walls (of pipes etc.)

The flow velocity is normally set to a known value. At walls, the velocity is usually set to 0. Also, turbulent quantities such as turbulent kinetic energy and dissipation rate can be set to fixed values which have to be estimated first.

• Outlets (of pipes etc.)

The pressure is often set to a known value on outlets. In incompressible simulations, it is common to use a value of 0 for the Gauge pressure.

• Thermal walls and insulation

Temperature or heat transfer rate are often set to known values.

## Fixed value boundary condition for OPENFOAM®¶

An example of a fixed value boundary condition for OPENFOAM® simulations where the flow velocity is set to zero.

The depicted boundary condition is a typical example for a wall which the fluid adheres to due to viscous effects. When converted to an OPENFOAM® input file, the relevant snippet will look similar to the following:

wall
{
type            fixedValue;
value           uniform (0 0 0);
}


Mathematically, the boundary condition can be formulated as

$\vec{U}_{\Gamma} = 0$

where $$\Gamma$$ represents the boundary. Additionally, the fixed value boundary condition allows to define the known value in form of a function:

The x value of the vector quantity is defined as a function of space coordinate X.

Alternatively, it is possible to set boundary values by uploading a CSV file. For this purpose, the user should choose File Upload as the Input Type. Correct dependencies should be chosen. In this case, the uploaded file contains values that are dependent on X, Y, and Z.