Skip to main content

uniformMixed

Description

The uniformMixed is a mixed-type boundary condition that mix a uniform fixed value and a niform patch-normal gradient condition. The term "uniform" is a legacy name since the prescribed values were previously spatially uniform across that patch.

Usage

The condition requires entries in both the boundary and field files.

Boundary file

<patchName>
{
type patch;
...
}

Field file

<patchName>
{
// Mandatory entries
type uniformMixed;

// Optional entries
uniformValue <PatchFunction1<Type>>;
uniformGradient <PatchFunction1<Type>>;

// Conditional entries

// if both 'uniformValue' and 'uniformGradient' entries are set
uniformValueFraction <PatchFunction1<Type>>;

// Inherited entries
...
}

where:

PropertyDescriptionTypeRequiredDefault
typeType name: uniformMixedwordyes-
uniformValueUniform fixed valuesPatchFunction1<Type>no-
uniformGradientUniform gradient valuesPatchFunction1<Type>no-
uniformValueFractionFraction valuesPatchFunction1<Type>conditional-

The inherited entries are elaborated in:

  • mixedFvPatchField.H
  • PatchFunction1.H

Further information

Tutorial:

Source code:

API:

History: Introduced in version v2306