Loading...
Searching...
No Matches
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...

#include <alphatPhaseChangeJayatillekeWallFunctionFvPatchScalarField.H>

Inheritance diagram for alphatPhaseChangeJayatillekeWallFunctionFvPatchScalarField:
Collaboration diagram for alphatPhaseChangeJayatillekeWallFunctionFvPatchScalarField:

Public Member Functions

 TypeName ("compressible::alphatPhaseChangeJayatillekeWallFunction")
 Runtime type information.
 alphatPhaseChangeJayatillekeWallFunctionFvPatchScalarField (const fvPatch &, const DimensionedField< scalar, volMesh > &)
 Construct from patch and internal field.
 alphatPhaseChangeJayatillekeWallFunctionFvPatchScalarField (const fvPatch &, const DimensionedField< scalar, volMesh > &, const dictionary &)
 Construct from patch, internal field and dictionary.
 alphatPhaseChangeJayatillekeWallFunctionFvPatchScalarField (const alphatPhaseChangeJayatillekeWallFunctionFvPatchScalarField &, const fvPatch &, const DimensionedField< scalar, volMesh > &, const fvPatchFieldMapper &)
 Construct by mapping given alphatPhaseChangeJayatillekeWallFunctionFvPatchScalarField onto a new patch.
 alphatPhaseChangeJayatillekeWallFunctionFvPatchScalarField (const alphatPhaseChangeJayatillekeWallFunctionFvPatchScalarField &)
 Construct as copy.
 alphatPhaseChangeJayatillekeWallFunctionFvPatchScalarField (const alphatPhaseChangeJayatillekeWallFunctionFvPatchScalarField &, const DimensionedField< scalar, volMesh > &)
 Construct as copy setting internal field reference.
virtual tmp< fvPatchField< scalar > > clone () const
 Return a clone.
virtual tmp< fvPatchField< scalar > > clone (const DimensionedField< scalar, volMesh > &iF) const
 Clone with an internal field reference.
virtual void updateCoeffs ()
 Update the coefficients associated with the patch field.
virtual void write (Ostream &) const
 Write.
Public Member Functions inherited from alphatPhaseChangeWallFunctionFvPatchScalarField
 TypeName ("compressible::alphatPhaseChangeWallFunction")
 Runtime type information.
 alphatPhaseChangeWallFunctionFvPatchScalarField (const fvPatch &, const DimensionedField< scalar, volMesh > &)
 Construct from patch and internal field.
 alphatPhaseChangeWallFunctionFvPatchScalarField (const fvPatch &, const DimensionedField< scalar, volMesh > &, const dictionary &)
 Construct from patch, internal field and dictionary.
 alphatPhaseChangeWallFunctionFvPatchScalarField (const alphatPhaseChangeWallFunctionFvPatchScalarField &, const fvPatch &, const DimensionedField< scalar, volMesh > &, const fvPatchFieldMapper &)
 Construct by mapping given alphatPhaseChangeWallFunctionFvPatchScalarField onto a new patch.
 alphatPhaseChangeWallFunctionFvPatchScalarField (const alphatPhaseChangeWallFunctionFvPatchScalarField &)
 Construct as copy.
 alphatPhaseChangeWallFunctionFvPatchScalarField (const alphatPhaseChangeWallFunctionFvPatchScalarField &, const DimensionedField< scalar, volMesh > &)
 Construct as copy setting internal field reference.
virtual const scalarFielddmdt () const
 Return the rate of phase-change.
virtual const scalarFieldmDotL () const
 Return the enthalpy source due to phase-change.
virtual bool activePhasePair (const phasePairKey &) const
 Is there phase change mass transfer for this phasePair.
virtual const scalarFielddmdt (const phasePairKey &) const
 Return the rate of phase-change for specific phase pair.
virtual const scalarFieldmDotL (const phasePairKey &) const
 Return the rate of phase-change for specific phase pair.
virtual scalarField dmdt (const word &) const
 Return the rate of phase-change for specific phase.
virtual scalarField mDotL (const word &) const
 Return the enthalpy source due to phase-change for specific phase.

Protected Member Functions

void checkType ()
 Check the type of the patch.
tmp< scalarFieldPsmooth (const scalarField &Prat) const
 'P' function
tmp< scalarFieldyPlusTherm (const scalarField &P, const scalarField &Prat) const
 Calculate y+ at the edge of the thermal laminar sublayer.
tmp< scalarFieldcalcAlphat (const scalarField &prevAlphat) const
 Update turbulent thermal diffusivity.

Protected Attributes

scalar Prt_
 Turbulent Prandtl number.
scalar Cmu_
 Empirical model coefficient.
scalar kappa_
 Von Karman constant.
scalar E_
 Wall roughness parameter.
Protected Attributes inherited from alphatPhaseChangeWallFunctionFvPatchScalarField
scalarField dmdt_
 Rate of phase-change.
scalarField mDotL_
 Latent heat of the phase-change.

Static Protected Attributes

static scalar tolerance_ = 0.01
 Absolute tolerance.
static label maxIters_ = 10
 Maximum number of iterations.

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 128 of file alphatPhaseChangeJayatillekeWallFunctionFvPatchScalarField.H.

Constructor & Destructor Documentation

◆ alphatPhaseChangeJayatillekeWallFunctionFvPatchScalarField() [1/5]

alphatPhaseChangeJayatillekeWallFunctionFvPatchScalarField ( const fvPatch & p,
const DimensionedField< scalar, volMesh > & iF )

Construct from patch and internal field.

Definition at line 214 of file alphatPhaseChangeJayatillekeWallFunctionFvPatchScalarField.C.

References alphatPhaseChangeWallFunctionFvPatchScalarField::alphatPhaseChangeWallFunctionFvPatchScalarField(), checkType(), Cmu_, E_, kappa_, p, and Prt_.

Referenced by alphatFixedDmdtWallBoilingWallFunctionFvPatchScalarField::alphatFixedDmdtWallBoilingWallFunctionFvPatchScalarField(), alphatFixedDmdtWallBoilingWallFunctionFvPatchScalarField::alphatFixedDmdtWallBoilingWallFunctionFvPatchScalarField(), alphatFixedDmdtWallBoilingWallFunctionFvPatchScalarField::alphatFixedDmdtWallBoilingWallFunctionFvPatchScalarField(), alphatFixedDmdtWallBoilingWallFunctionFvPatchScalarField::alphatFixedDmdtWallBoilingWallFunctionFvPatchScalarField(), alphatFixedDmdtWallBoilingWallFunctionFvPatchScalarField::alphatFixedDmdtWallBoilingWallFunctionFvPatchScalarField(), alphatPhaseChangeJayatillekeWallFunctionFvPatchScalarField(), alphatPhaseChangeJayatillekeWallFunctionFvPatchScalarField(), alphatPhaseChangeJayatillekeWallFunctionFvPatchScalarField(), alphatWallBoilingWallFunctionFvPatchScalarField::alphatWallBoilingWallFunctionFvPatchScalarField(), alphatWallBoilingWallFunctionFvPatchScalarField::alphatWallBoilingWallFunctionFvPatchScalarField(), alphatWallBoilingWallFunctionFvPatchScalarField::alphatWallBoilingWallFunctionFvPatchScalarField(), alphatWallBoilingWallFunctionFvPatchScalarField::alphatWallBoilingWallFunctionFvPatchScalarField(), alphatWallBoilingWallFunctionFvPatchScalarField::alphatWallBoilingWallFunctionFvPatchScalarField(), and TypeName().

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

◆ alphatPhaseChangeJayatillekeWallFunctionFvPatchScalarField() [2/5]

alphatPhaseChangeJayatillekeWallFunctionFvPatchScalarField ( const fvPatch & p,
const DimensionedField< scalar, volMesh > & iF,
const dictionary & dict )

Construct from patch, internal field and dictionary.

Definition at line 231 of file alphatPhaseChangeJayatillekeWallFunctionFvPatchScalarField.C.

References alphatPhaseChangeWallFunctionFvPatchScalarField::alphatPhaseChangeWallFunctionFvPatchScalarField(), Cmu_, dict, E_, kappa_, p, and Prt_.

Here is the call graph for this function:

◆ alphatPhaseChangeJayatillekeWallFunctionFvPatchScalarField() [3/5]

alphatPhaseChangeJayatillekeWallFunctionFvPatchScalarField ( const alphatPhaseChangeJayatillekeWallFunctionFvPatchScalarField & ptf,
const fvPatch & p,
const DimensionedField< scalar, volMesh > & iF,
const fvPatchFieldMapper & mapper )

◆ alphatPhaseChangeJayatillekeWallFunctionFvPatchScalarField() [4/5]

alphatPhaseChangeJayatillekeWallFunctionFvPatchScalarField ( const alphatPhaseChangeJayatillekeWallFunctionFvPatchScalarField & awfpsf)

◆ alphatPhaseChangeJayatillekeWallFunctionFvPatchScalarField() [5/5]

alphatPhaseChangeJayatillekeWallFunctionFvPatchScalarField ( const alphatPhaseChangeJayatillekeWallFunctionFvPatchScalarField & awfpsf,
const DimensionedField< scalar, volMesh > & iF )

Member Function Documentation

◆ checkType()

void checkType ( )
protected

◆ Psmooth()

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

'P' function

Definition at line 61 of file alphatPhaseChangeJayatillekeWallFunctionFvPatchScalarField.C.

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

Referenced by calcAlphat(), and alphatWallBoilingWallFunctionFvPatchScalarField::updateCoeffs().

Here is the call graph for this function:
Here is the caller 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 71 of file alphatPhaseChangeJayatillekeWallFunctionFvPatchScalarField.C.

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

Referenced by calcAlphat(), and alphatWallBoilingWallFunctionFvPatchScalarField::updateCoeffs().

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

◆ calcAlphat()

◆ TypeName()

TypeName ( "compressible::alphatPhaseChangeJayatillekeWallFunction" )

Runtime type information.

References alphatPhaseChangeJayatillekeWallFunctionFvPatchScalarField().

Here is the call graph for this function:

◆ clone() [1/2]

virtual tmp< fvPatchField< scalar > > clone ( ) const
inlinevirtual

◆ clone() [2/2]

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

Clone with an internal field reference.

Reimplemented in alphatFixedDmdtWallBoilingWallFunctionFvPatchScalarField, and alphatWallBoilingWallFunctionFvPatchScalarField.

Definition at line 269 of file alphatPhaseChangeJayatillekeWallFunctionFvPatchScalarField.H.

References fvPatchField< Type >::Clone().

Here is the call graph for this function:

◆ updateCoeffs()

void updateCoeffs ( )
virtual

Update the coefficients associated with the patch field.

Implements alphatPhaseChangeWallFunctionFvPatchScalarField.

Reimplemented in alphatFixedDmdtWallBoilingWallFunctionFvPatchScalarField, and alphatWallBoilingWallFunctionFvPatchScalarField.

Definition at line 295 of file alphatPhaseChangeJayatillekeWallFunctionFvPatchScalarField.C.

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

Here is the call graph for this function:

◆ write()

Member Data Documentation

◆ Prt_

◆ Cmu_

◆ kappa_

◆ E_

◆ tolerance_

scalar tolerance_ = 0.01
staticprotected

Absolute tolerance.

Definition at line 161 of file alphatPhaseChangeJayatillekeWallFunctionFvPatchScalarField.H.

Referenced by yPlusTherm().

◆ maxIters_

label maxIters_ = 10
staticprotected

Maximum number of iterations.

Definition at line 166 of file alphatPhaseChangeJayatillekeWallFunctionFvPatchScalarField.H.

Referenced by yPlusTherm().


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