This is a mass-fraction boundary condition for a semi-permeable baffle. More...
This is 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, semiPermeableBaffleVelocityFvPatchVectorField.
The mass flux of a species is calculated as a coefficient multiplied by the difference in mass fraction across the baffle.
where
![]() | = | flux of the permeable species [kg/s] |
![]() | = | transfer coefficient [kg/m2/s] |
![]() | = | patch face area [m2] |
![]() | = | mass fraction on the patch [] |
![]() | = | mass fraction on the neighbour patch [] |
A species that the baffle is permable 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 consition 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.
Property | Description | Req'd? | Default |
---|---|---|---|
c | Transfer coefficient | no | 0 |
phi | Name of the flux field | no | phi |
Definition at line 123 of file semiPermeableBaffleMassFractionFvPatchScalarField.H.
semiPermeableBaffleMassFractionFvPatchScalarField | ( | const fvPatch & | p, |
const DimensionedField< scalar, volMesh > & | iF | ||
) |
Definition at line 33 of file semiPermeableBaffleMassFractionFvPatchScalarField.C.
References Foam::Zero.
Referenced by semiPermeableBaffleMassFractionFvPatchScalarField::clone().
semiPermeableBaffleMassFractionFvPatchScalarField | ( | const fvPatch & | p, |
const DimensionedField< scalar, volMesh > & | iF, | ||
const dictionary & | dict | ||
) |
Definition at line 51 of file semiPermeableBaffleMassFractionFvPatchScalarField.C.
References dict, p, and Foam::Zero.
semiPermeableBaffleMassFractionFvPatchScalarField | ( | const semiPermeableBaffleMassFractionFvPatchScalarField & | ptf, |
const fvPatch & | p, | ||
const DimensionedField< scalar, volMesh > & | iF, | ||
const fvPatchFieldMapper & | mapper | ||
) |
Definition at line 72 of file semiPermeableBaffleMassFractionFvPatchScalarField.C.
semiPermeableBaffleMassFractionFvPatchScalarField | ( | const semiPermeableBaffleMassFractionFvPatchScalarField & | ptf | ) |
Definition at line 88 of file semiPermeableBaffleMassFractionFvPatchScalarField.C.
semiPermeableBaffleMassFractionFvPatchScalarField | ( | const semiPermeableBaffleMassFractionFvPatchScalarField & | ptf, |
const DimensionedField< scalar, volMesh > & | iF | ||
) |
Definition at line 101 of file semiPermeableBaffleMassFractionFvPatchScalarField.C.
TypeName | ( | "semiPermeableBaffleMassFraction" | ) |
|
inlinevirtual |
Definition at line 177 of file semiPermeableBaffleMassFractionFvPatchScalarField.H.
References semiPermeableBaffleMassFractionFvPatchScalarField::semiPermeableBaffleMassFractionFvPatchScalarField().
|
inlinevirtual |
Definition at line 194 of file semiPermeableBaffleMassFractionFvPatchScalarField.H.
Foam::tmp< Foam::scalarField > phiY | ( | ) | const |
Definition at line 116 of file semiPermeableBaffleMassFractionFvPatchScalarField.C.
References mapDistribute::distribute(), patchIdentifier::index(), fvPatch::lookupPatchField(), mappedPatchBase::map(), tmp::New(), Foam::foamVersion::patch, fvPatchField::patchInternalField(), mappedPatchBase::samplePolyPatch(), and Foam::Zero.
|
virtual |
Definition at line 137 of file semiPermeableBaffleMassFractionFvPatchScalarField.C.
References Foam::foamVersion::patch, and turbulenceModel::propertiesName.
|
virtual |
Reimplemented from mappedPatchBase.
Definition at line 163 of file semiPermeableBaffleMassFractionFvPatchScalarField.C.
References os(), fvPatchField::write(), mappedPatchBase::write(), and Ostream::writeEntryIfDifferent().
Copyright © 2011-2018 OpenFOAM | OPENFOAM® is a registered trademark of OpenCFD Ltd.