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.

Usage

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

Boundary file

<patchName>
{
type patch;
...
}

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 patch used when the active baffle is openwordyes-
orientationOrientation (1 or -1) of the active baffle patchlabelyes-
openFractionCurrent fraction of the active baffle which is openscalaryes-
openingTimeTime taken for the active baffle to openscalaryes-
maxOpenFractionDeltaMaximum fractional change to the active baffle openness per time stepscalaryes-
pName of pressure fieldwordnop

The inherited entries are elaborated in:

  • fixedValueFvPatchField.H

  • The orientation is used to change the direction of opening without the need for reordering the patch faces.

Method

It is determined 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)dtDT x = x_{old} + sign(F_{net})\frac{dt}{DT}

where:

PropertyDescription
xxBaffle open fraction [0-1]
xoldx_{old}Baffle open fraction on previous evaluation
dtdtSimulation time step
DTDTTime taken to open the baffle
FnetF_{net}Net force across the baffle

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

Further information

Tutorial:

  • N/A

Source code:

API:

History: Introduced in version 1.5