This boundary condition provides a thermal wall function for turbulent thermal diffusivity (usuallyalphat
) based on the Jayatilleke model for the Eulerian multiphase solvers.
More...
Public Member Functions | |
TypeName ("compressible::alphatPhaseChangeJayatillekeWallFunction") | |
Runtime type information. More... | |
alphatPhaseChangeJayatillekeWallFunctionFvPatchScalarField (const fvPatch &, const DimensionedField< scalar, volMesh > &) | |
Construct from patch and internal field. More... | |
alphatPhaseChangeJayatillekeWallFunctionFvPatchScalarField (const fvPatch &, const DimensionedField< scalar, volMesh > &, const dictionary &) | |
Construct from patch, internal field and dictionary. More... | |
alphatPhaseChangeJayatillekeWallFunctionFvPatchScalarField (const alphatPhaseChangeJayatillekeWallFunctionFvPatchScalarField &, const fvPatch &, const DimensionedField< scalar, volMesh > &, const fvPatchFieldMapper &) | |
Construct by mapping given. More... | |
alphatPhaseChangeJayatillekeWallFunctionFvPatchScalarField (const alphatPhaseChangeJayatillekeWallFunctionFvPatchScalarField &) | |
Construct as copy. More... | |
virtual tmp< fvPatchScalarField > | clone () const |
Construct and return a clone. More... | |
alphatPhaseChangeJayatillekeWallFunctionFvPatchScalarField (const alphatPhaseChangeJayatillekeWallFunctionFvPatchScalarField &, const DimensionedField< scalar, volMesh > &) | |
Construct as copy setting internal field reference. More... | |
virtual tmp< fvPatchScalarField > | clone (const DimensionedField< scalar, volMesh > &iF) const |
Construct and return a clone setting internal field reference. More... | |
virtual void | updateCoeffs () |
Update the coefficients associated with the patch field. More... | |
virtual void | write (Ostream &) const |
Write. More... | |
Public Member Functions inherited from alphatPhaseChangeWallFunctionFvPatchScalarField | |
TypeName ("compressible::alphatPhaseChangeWallFunction") | |
Runtime type information. More... | |
alphatPhaseChangeWallFunctionFvPatchScalarField (const fvPatch &, const DimensionedField< scalar, volMesh > &) | |
Construct from patch and internal field. More... | |
alphatPhaseChangeWallFunctionFvPatchScalarField (const fvPatch &, const DimensionedField< scalar, volMesh > &, const dictionary &) | |
Construct from patch, internal field and dictionary. More... | |
alphatPhaseChangeWallFunctionFvPatchScalarField (const alphatPhaseChangeWallFunctionFvPatchScalarField &, const fvPatch &, const DimensionedField< scalar, volMesh > &, const fvPatchFieldMapper &) | |
Construct by mapping given. More... | |
alphatPhaseChangeWallFunctionFvPatchScalarField (const alphatPhaseChangeWallFunctionFvPatchScalarField &) | |
Construct as copy. More... | |
alphatPhaseChangeWallFunctionFvPatchScalarField (const alphatPhaseChangeWallFunctionFvPatchScalarField &, const DimensionedField< scalar, volMesh > &) | |
Construct as copy setting internal field reference. More... | |
virtual const scalarField & | dmdt () const |
Return the rate of phase-change. More... | |
virtual const scalarField & | mDotL () const |
Return the enthalpy source due to phase-change. More... | |
virtual bool | activePhasePair (const phasePairKey &) const |
Is there phase change mass transfer for this phasePair. More... | |
virtual const scalarField & | dmdt (const phasePairKey &) const |
Return the rate of phase-change for specific phase pair. More... | |
virtual const scalarField & | mDotL (const phasePairKey &) const |
Return the rate of phase-change for specific phase pair. More... | |
virtual scalarField | dmdt (const word &) const |
Return the rate of phase-change for specific phase. More... | |
virtual scalarField | mDotL (const word &) const |
Return the enthalpy source due to phase-change for specific phase. More... | |
Protected Member Functions | |
void | checkType () |
Check the type of the patch. More... | |
tmp< scalarField > | Psmooth (const scalarField &Prat) const |
'P' function More... | |
tmp< scalarField > | yPlusTherm (const scalarField &P, const scalarField &Prat) const |
Calculate y+ at the edge of the thermal laminar sublayer. More... | |
tmp< scalarField > | calcAlphat (const scalarField &prevAlphat) const |
Update turbulent thermal diffusivity. More... | |
Protected Attributes | |
scalar | Prt_ |
Turbulent Prandtl number. More... | |
scalar | Cmu_ |
Cmu coefficient. More... | |
scalar | kappa_ |
Von Karman constant. More... | |
scalar | E_ |
E coefficient. More... | |
Protected Attributes inherited from alphatPhaseChangeWallFunctionFvPatchScalarField | |
scalarField | dmdt_ |
Rate of phase-change. More... | |
scalarField | mDotL_ |
Latent heat of the phase-change. More... | |
Static Protected Attributes | |
static scalar | maxExp_ = 50.0 |
static scalar | tolerance_ = 0.01 |
static label | maxIters_ = 10 |
This boundary condition provides a thermal wall function for turbulent thermal diffusivity (usuallyalphat
) based on the Jayatilleke model for the Eulerian multiphase solvers.
Property | Description | Required | Default value |
---|---|---|---|
Prt | Turbulent Prandtl number | no | 0.85 |
Cmu | Model coefficient | no | 0.09 |
kappa | von Karman constant | no | 0.41 |
E | Model coefficient | no | 9.8 |
Example of the boundary condition specification:
<patchName> { type alphatPhaseChangeJayatillekeWallFunction; Prt 0.85; kappa 0.41; E 9.8; value uniform 0; // optional value entry }
Definition at line 103 of file alphatPhaseChangeJayatillekeWallFunctionFvPatchScalarField.H.
alphatPhaseChangeJayatillekeWallFunctionFvPatchScalarField | ( | const fvPatch & | p, |
const DimensionedField< scalar, volMesh > & | iF | ||
) |
Construct from patch and internal field.
Definition at line 231 of file alphatPhaseChangeJayatillekeWallFunctionFvPatchScalarField.C.
alphatPhaseChangeJayatillekeWallFunctionFvPatchScalarField | ( | const fvPatch & | p, |
const DimensionedField< scalar, volMesh > & | iF, | ||
const dictionary & | dict | ||
) |
Construct from patch, internal field and dictionary.
Definition at line 248 of file alphatPhaseChangeJayatillekeWallFunctionFvPatchScalarField.C.
alphatPhaseChangeJayatillekeWallFunctionFvPatchScalarField | ( | const alphatPhaseChangeJayatillekeWallFunctionFvPatchScalarField & | ptf, |
const fvPatch & | p, | ||
const DimensionedField< scalar, volMesh > & | iF, | ||
const fvPatchFieldMapper & | mapper | ||
) |
Construct by mapping given.
alphatPhaseChangeJayatillekeWallFunctionFvPatchScalarField onto a new patch
Definition at line 264 of file alphatPhaseChangeJayatillekeWallFunctionFvPatchScalarField.C.
alphatPhaseChangeJayatillekeWallFunctionFvPatchScalarField | ( | const alphatPhaseChangeJayatillekeWallFunctionFvPatchScalarField & | awfpsf | ) |
Construct as copy.
Definition at line 281 of file alphatPhaseChangeJayatillekeWallFunctionFvPatchScalarField.C.
alphatPhaseChangeJayatillekeWallFunctionFvPatchScalarField | ( | const alphatPhaseChangeJayatillekeWallFunctionFvPatchScalarField & | awfpsf, |
const DimensionedField< scalar, volMesh > & | iF | ||
) |
Construct as copy setting internal field reference.
Definition at line 295 of file alphatPhaseChangeJayatillekeWallFunctionFvPatchScalarField.C.
|
protected |
Check the type of the patch.
Definition at line 57 of file alphatPhaseChangeJayatillekeWallFunctionFvPatchScalarField.C.
References Foam::exit(), Foam::FatalError, FatalErrorInFunction, Foam::nl, and Foam::foamVersion::patch.
|
protected |
'P' function
Definition at line 71 of file alphatPhaseChangeJayatillekeWallFunctionFvPatchScalarField.C.
References Foam::exp(), and Foam::pow().
|
protected |
Calculate y+ at the edge of the thermal laminar sublayer.
Definition at line 81 of file alphatPhaseChangeJayatillekeWallFunctionFvPatchScalarField.C.
References f(), forAll, Foam::log(), Foam::mag(), and tmp< T >::ref().
|
protected |
Update turbulent thermal diffusivity.
Definition at line 121 of file alphatPhaseChangeJayatillekeWallFunctionFvPatchScalarField.C.
References A, alphaEff(), B, GeometricField< Type, PatchField, GeoMesh >::boundaryField(), fluid, forAll, IOobject::groupName(), k, Foam::log(), Foam::mag(), magUp, Foam::max(), phase::name(), Foam::foamVersion::patch, fvPatchField< Type >::patchInternalField(), Foam::pow025(), Pr(), turbulenceModel::propertiesName, tmp< T >::ref(), fvPatchField< Type >::snGrad(), Foam::sqr(), Foam::sqrt(), GeometricField< Type, PatchField, GeoMesh >::T(), uTau, y, and yPlus.
Referenced by alphatFixedDmdtWallBoilingWallFunctionFvPatchScalarField::updateCoeffs(), and alphatPhaseChangeJayatillekeWallFunctionFvPatchScalarField::updateCoeffs().
TypeName | ( | "compressible::alphatPhaseChangeJayatillekeWallFunction" | ) |
Runtime type information.
|
inlinevirtual |
Construct and return a clone.
Reimplemented in alphatWallBoilingWallFunctionFvPatchScalarField, and alphatFixedDmdtWallBoilingWallFunctionFvPatchScalarField.
Definition at line 194 of file alphatPhaseChangeJayatillekeWallFunctionFvPatchScalarField.H.
|
inlinevirtual |
Construct and return a clone setting internal field reference.
Reimplemented in alphatWallBoilingWallFunctionFvPatchScalarField, and alphatFixedDmdtWallBoilingWallFunctionFvPatchScalarField.
Definition at line 214 of file alphatPhaseChangeJayatillekeWallFunctionFvPatchScalarField.H.
|
virtual |
Update the coefficients associated with the patch field.
Implements alphatPhaseChangeWallFunctionFvPatchScalarField.
Reimplemented in alphatWallBoilingWallFunctionFvPatchScalarField, and alphatFixedDmdtWallBoilingWallFunctionFvPatchScalarField.
Definition at line 310 of file alphatPhaseChangeJayatillekeWallFunctionFvPatchScalarField.C.
References alphatPhaseChangeJayatillekeWallFunctionFvPatchScalarField::calcAlphat(), and Foam::operator==().
|
virtual |
Write.
Reimplemented from alphatPhaseChangeWallFunctionFvPatchScalarField.
Reimplemented in alphatWallBoilingWallFunctionFvPatchScalarField, and alphatFixedDmdtWallBoilingWallFunctionFvPatchScalarField.
Definition at line 324 of file alphatPhaseChangeJayatillekeWallFunctionFvPatchScalarField.C.
References fvPatchField< Type >::write(), and Ostream::writeEntry().
|
protected |
Turbulent Prandtl number.
Definition at line 113 of file alphatPhaseChangeJayatillekeWallFunctionFvPatchScalarField.H.
|
protected |
Cmu coefficient.
Definition at line 116 of file alphatPhaseChangeJayatillekeWallFunctionFvPatchScalarField.H.
|
protected |
Von Karman constant.
Definition at line 119 of file alphatPhaseChangeJayatillekeWallFunctionFvPatchScalarField.H.
|
protected |
E coefficient.
Definition at line 122 of file alphatPhaseChangeJayatillekeWallFunctionFvPatchScalarField.H.
|
staticprotected |
Definition at line 126 of file alphatPhaseChangeJayatillekeWallFunctionFvPatchScalarField.H.
|
staticprotected |
Definition at line 127 of file alphatPhaseChangeJayatillekeWallFunctionFvPatchScalarField.H.
|
staticprotected |
Definition at line 128 of file alphatPhaseChangeJayatillekeWallFunctionFvPatchScalarField.H.