alphatPhaseChangeJayatillekeWallFunctionFvPatchScalarField Class Reference

This boundary condition provides a thermal wall function for turbulent thermal diffusivity (usuallyalphat) based on the Jayatilleke model for the Eulerian multiphase solvers. More...

Inheritance diagram for alphatPhaseChangeJayatillekeWallFunctionFvPatchScalarField:
[legend]
Collaboration diagram for alphatPhaseChangeJayatillekeWallFunctionFvPatchScalarField:
[legend]

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 &)
 
 alphatPhaseChangeJayatillekeWallFunctionFvPatchScalarField (const alphatPhaseChangeJayatillekeWallFunctionFvPatchScalarField &)
 Construct as copy. More...
 
virtual tmp< fvPatchScalarFieldclone () const
 Construct and return a clone. More...
 
 alphatPhaseChangeJayatillekeWallFunctionFvPatchScalarField (const alphatPhaseChangeJayatillekeWallFunctionFvPatchScalarField &, const DimensionedField< scalar, volMesh > &)
 Construct as copy setting internal field reference. More...
 
virtual tmp< fvPatchScalarFieldclone (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 &)
 
 alphatPhaseChangeWallFunctionFvPatchScalarField (const alphatPhaseChangeWallFunctionFvPatchScalarField &)
 Construct as copy. More...
 
 alphatPhaseChangeWallFunctionFvPatchScalarField (const alphatPhaseChangeWallFunctionFvPatchScalarField &, const DimensionedField< scalar, volMesh > &)
 Construct as copy setting internal field reference. More...
 
virtual const scalarFielddmdt () const
 Return the rate of phase-change. More...
 
virtual const scalarFieldmDotL () 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 scalarFielddmdt (const phasePairKey &) const
 Return the rate of phase-change for specific phase pair. More...
 
virtual const scalarFieldmDotL (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< scalarFieldPsmooth (const scalarField &Prat) const
 'P' function More...
 
tmp< scalarFieldyPlusTherm (const scalarField &P, const scalarField &Prat) const
 Calculate y+ at the edge of the thermal laminar sublayer. More...
 
tmp< scalarFieldcalcAlphat (const scalarField &prevAlphat) const
 Update turbulent thermal diffusivity. More...
 

Protected Attributes

scalar Prt_
 Turbulent Prandtl number. More...
 
scalar Cmu_
 Empirical model coefficient. More...
 
scalar kappa_
 Von Karman constant. More...
 
scalar E_
 Wall roughness parameter. 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 tolerance_ = 0.01
 Absolute tolerance. More...
 
static label maxIters_ = 10
 Maximum number of iterations. More...
 

Detailed Description

This boundary condition provides a thermal wall function for turbulent thermal diffusivity (usuallyalphat) based on the Jayatilleke model for the Eulerian multiphase solvers.

Usage
Example of the boundary condition specification:
<patchName>
{
    // Mandatory entries
    type            alphatPhaseChangeJayatillekeWallFunction;

    // Optional entries
    Prt             <scalar>;
    Cmu             <scalar>;
    kappa           <scalar>;
    E               <scalar>;

    // Inherited entries
    ...
}

where the entries mean:

Property Description Type Reqd Deflt
type Type name: compressible::alphatPhaseChangeJayatillekeWallFunction word yes -
Prt Turbulent Prandtl number scalar no 0.85
Cmu Empirical model coefficient scalar no 0.09
kappa Von Karman constant scalar no 0.41
E Wall roughness parameter scalar no 9.8

The inherited entries are elaborated in:

See also
Foam::compressible::alphatPhaseChangeWallFunctionFvPatchScalarField
Source files

Definition at line 132 of file alphatPhaseChangeJayatillekeWallFunctionFvPatchScalarField.H.

Constructor & Destructor Documentation

◆ alphatPhaseChangeJayatillekeWallFunctionFvPatchScalarField() [1/5]

Construct from patch and internal field.

Definition at line 223 of file alphatPhaseChangeJayatillekeWallFunctionFvPatchScalarField.C.

◆ alphatPhaseChangeJayatillekeWallFunctionFvPatchScalarField() [2/5]

Construct from patch, internal field and dictionary.

Definition at line 240 of file alphatPhaseChangeJayatillekeWallFunctionFvPatchScalarField.C.

◆ alphatPhaseChangeJayatillekeWallFunctionFvPatchScalarField() [3/5]

◆ alphatPhaseChangeJayatillekeWallFunctionFvPatchScalarField() [4/5]

◆ alphatPhaseChangeJayatillekeWallFunctionFvPatchScalarField() [5/5]

Construct as copy setting internal field reference.

Definition at line 287 of file alphatPhaseChangeJayatillekeWallFunctionFvPatchScalarField.C.

Member Function Documentation

◆ checkType()

void checkType ( )
protected

Check the type of the patch.

Definition at line 55 of file alphatPhaseChangeJayatillekeWallFunctionFvPatchScalarField.C.

References Foam::exit(), Foam::FatalError, FatalErrorInFunction, Foam::nl, and Foam::foamVersion::patch.

Here is the call graph for this function:

◆ Psmooth()

tmp< scalarField > Psmooth ( const scalarField Prat) const
protected

'P' function

Definition at line 69 of file alphatPhaseChangeJayatillekeWallFunctionFvPatchScalarField.C.

References Foam::exp(), and Foam::pow().

Here is the call graph for this function:

◆ yPlusTherm()

tmp< scalarField > yPlusTherm ( const scalarField P,
const scalarField Prat 
) const
protected

Calculate y+ at the edge of the thermal laminar sublayer.

Definition at line 79 of file alphatPhaseChangeJayatillekeWallFunctionFvPatchScalarField.C.

References f(), forAll, Foam::log(), Foam::mag(), and tmp< T >::New().

Here is the call graph for this function:

◆ calcAlphat()

tmp< scalarField > calcAlphat ( const scalarField prevAlphat) const
protected

Update turbulent thermal diffusivity.

Definition at line 120 of file alphatPhaseChangeJayatillekeWallFunctionFvPatchScalarField.C.

References A, alphaEff(), B, GeometricField< Type, PatchField, GeoMesh >::boundaryField(), tmp< T >::cref(), fluid, forAll, IOobject::groupName(), k, Foam::log(), Foam::mag(), magUp, Foam::max(), phase::name(), tmp< T >::New(), Foam::foamVersion::patch, fvPatchField< Type >::patchInternalField(), Foam::pow025(), Pr(), turbulenceModel::propertiesName, fvPatchField< Type >::snGrad(), Foam::sqr(), Foam::sqrt(), uTau, y, and yPlus.

Referenced by alphatFixedDmdtWallBoilingWallFunctionFvPatchScalarField::updateCoeffs(), and alphatPhaseChangeJayatillekeWallFunctionFvPatchScalarField::updateCoeffs().

Here is the call graph for this function:
Here is the caller graph for this function:

◆ TypeName()

TypeName ( "compressible::alphatPhaseChangeJayatillekeWallFunction"  )

Runtime type information.

◆ clone() [1/2]

virtual tmp<fvPatchScalarField> clone ( ) const
inlinevirtual

◆ clone() [2/2]

virtual tmp<fvPatchScalarField> clone ( const DimensionedField< scalar, volMesh > &  iF) const
inlinevirtual

Construct and return a clone setting internal field reference.

Reimplemented in alphatWallBoilingWallFunctionFvPatchScalarField, and alphatFixedDmdtWallBoilingWallFunctionFvPatchScalarField.

Definition at line 244 of file alphatPhaseChangeJayatillekeWallFunctionFvPatchScalarField.H.

◆ updateCoeffs()

void updateCoeffs ( )
virtual

Update the coefficients associated with the patch field.

Implements alphatPhaseChangeWallFunctionFvPatchScalarField.

Reimplemented in alphatWallBoilingWallFunctionFvPatchScalarField, and alphatFixedDmdtWallBoilingWallFunctionFvPatchScalarField.

Definition at line 302 of file alphatPhaseChangeJayatillekeWallFunctionFvPatchScalarField.C.

References alphatPhaseChangeJayatillekeWallFunctionFvPatchScalarField::calcAlphat(), and Foam::operator==().

Here is the call graph for this function:

◆ write()

void write ( Ostream os) const
virtual

Write.

Reimplemented from alphatPhaseChangeWallFunctionFvPatchScalarField.

Reimplemented in alphatWallBoilingWallFunctionFvPatchScalarField, and alphatFixedDmdtWallBoilingWallFunctionFvPatchScalarField.

Definition at line 316 of file alphatPhaseChangeJayatillekeWallFunctionFvPatchScalarField.C.

References os(), and fvPatchField< Type >::write().

Here is the call graph for this function:

Member Data Documentation

◆ Prt_

scalar Prt_
protected

Turbulent Prandtl number.

Definition at line 141 of file alphatPhaseChangeJayatillekeWallFunctionFvPatchScalarField.H.

◆ Cmu_

scalar Cmu_
protected

Empirical model coefficient.

Definition at line 144 of file alphatPhaseChangeJayatillekeWallFunctionFvPatchScalarField.H.

◆ kappa_

scalar kappa_
protected

Von Karman constant.

Definition at line 147 of file alphatPhaseChangeJayatillekeWallFunctionFvPatchScalarField.H.

◆ E_

scalar E_
protected

Wall roughness parameter.

Definition at line 150 of file alphatPhaseChangeJayatillekeWallFunctionFvPatchScalarField.H.

◆ tolerance_

scalar tolerance_ = 0.01
staticprotected

Absolute tolerance.

Definition at line 155 of file alphatPhaseChangeJayatillekeWallFunctionFvPatchScalarField.H.

◆ maxIters_

label maxIters_ = 10
staticprotected

Maximum number of iterations.

Definition at line 158 of file alphatPhaseChangeJayatillekeWallFunctionFvPatchScalarField.H.


The documentation for this class was generated from the following files: