Skip to main content

activeBaffleVelocity

Description

The activeBaffleVelocity is a velocity boundary condition that simulates the opening of a baffle due to local flow conditions, by merging the behaviours of wall and cyclic conditions. The baffle joins two mesh regions, where the open fraction determines the interpolation weights applied to each cyclic- and neighbour-patch contribution.

We determine whether the baffle is opening or closing from the sign of the net force across the baffle, from which the baffle open fraction is updated using:

x=xold+sign(Fnet)ΔtT x = x_{old} + \text{sign}(\vec{F}_{net}) \frac{\Delta t}{T}

where:

PropertyDescription
xxBaffle open fraction [0-1]
xoldx_{old}Baffle open fraction on previous evaluation [0-1]
Δt\Delta tSimulation time step [s]
TTTime taken to open the baffle [s]
Fnet\vec{F}_{net}Net force across the baffle [N]

The open fraction is then applied to scale the patch areas.

Usage

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

Boundary file

<patchName>
{
type wall;
...
}

Field file

<patchName>
{
// Mandatory entries
type activeBaffleVelocity;
cyclicPatch <word>;
orientation <label>;
openFraction <scalar>;
openingTime <scalar>;
maxOpenFractionDelta <scalar>;

// Optional entries
p <word>;

// Inherited entries
...
}

where:

PropertyDescriptionTypeRequiredDefault
typeType name: activeBaffleVelocitywordyes-
cyclicPatchName of cyclic patchwordyes-
orientationFlag to switch flow direction, either 1 or -1labelyes-
openFractionCurrent open fraction of patch [0-1]scalaryes-
openingTimeTime taken to open the bafflescalaryes-
maxOpenFractionDeltaMax open fraction change per timestepscalaryes-
pName of pressure fieldwordnop

The inherited entries are elaborated in:

  • fixedValueFvPatchField.H

Further information

Tutorial:

  • N/A

Source code:

API:

History: Introduced in version 1.6