Skip to main content

semiPermeableBaffleMassFraction

Description

The semiPermeableBaffleMassFraction is a boundary condition that provides a mass-fraction boundary condition for a semi-permeable baffle.

This condition models a baffle which is permeable to a some species and impermeable to others. It must be used in conjunction with the corresponding velocity condition, semiPermeableBaffleVelocity.

The mass flux of a species is calculated as a coefficient multiplied by the difference in mass fraction across the baffle.

ϕYi=cA(YiYi,n) \phi_{Yi} = c A (Y_i - Y_{i,n})

where:

PropertyDescription
ϕYi\phi_{Yi}Flux of the permeable species [kg/s]
ccTransfer coefficient [kg/m^2/s]
AAPatch face area [m^2]
YiY_iMass fraction on the patch [-]
Yi,nY_{i,n}Mass fraction on the neighbour patch [-]

A species that the baffle is permeable to will, therefore, have a coefficient greater than zero, whilst a species that does not transfer will have a coefficient equal to zero.

This condition calculates the species flux. The fluxes are summed up by the velocity condition to generate the net mass transfer across the baffle. This mass-fraction condition then generates a corrective diffusive flux to ensure that the correct amounts of the permeable species are transferred.

Usage

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

Boundary file

<patchName>
{
type patch;
...
}

Field file

<patchName>
{
// Mandatory entries
type semiPermeableBaffleMassFraction;

// Optional entries
c <scalar>;
phi <word>;

// Inherited entries
...
}

where:

PropertyDescriptionTypeRequiredDefault
typeType name: semiPermeableBaffleMassFractionwordyes-
cTransfer coefficientscalarno0
phiName of flux fieldwordnophi

The inherited entries are elaborated in:

  • mappedPatchBase.H
  • mixedFvPatchFields.H

Further information

Tutorial:

  • N/A

Source code:

API:

History: Introduced in version v2206