alphatWallBoilingWallFunctionFvPatchScalarField Class Reference

A thermal wall function for simulation of subcooled nucleate wall boiling with runtime selectable submodels for: More...

Inheritance diagram for alphatWallBoilingWallFunctionFvPatchScalarField:
Collaboration diagram for alphatWallBoilingWallFunctionFvPatchScalarField:

Public Types

enum  phaseType { vaporPhase, liquidPhase }
 Enumeration listing the possible operational modes. More...
 

Public Member Functions

 TypeName ("compressible::alphatWallBoilingWallFunction")
 Runtime type information. More...
 
 alphatWallBoilingWallFunctionFvPatchScalarField (const fvPatch &, const DimensionedField< scalar, volMesh > &)
 Construct from patch and internal field. More...
 
 alphatWallBoilingWallFunctionFvPatchScalarField (const fvPatch &, const DimensionedField< scalar, volMesh > &, const dictionary &)
 Construct from patch, internal field and dictionary. More...
 
 alphatWallBoilingWallFunctionFvPatchScalarField (const alphatWallBoilingWallFunctionFvPatchScalarField &, const fvPatch &, const DimensionedField< scalar, volMesh > &, const fvPatchFieldMapper &)
 Construct by mapping given. More...
 
 alphatWallBoilingWallFunctionFvPatchScalarField (const alphatWallBoilingWallFunctionFvPatchScalarField &)=delete
 Disallow copy without setting internal field reference. More...
 
 alphatWallBoilingWallFunctionFvPatchScalarField (const alphatWallBoilingWallFunctionFvPatchScalarField &, const DimensionedField< scalar, volMesh > &)
 Copy constructor setting internal field reference. More...
 
virtual tmp< fvPatchScalarFieldclone (const DimensionedField< scalar, volMesh > &iF) const
 Construct and return a clone setting internal field reference. More...
 
const scalarFielddDeparture () const
 Return the departure diameter field. More...
 
virtual void autoMap (const fvPatchFieldMapper &)
 Map (and resize as needed) from self given a mapping object. More...
 
virtual void rmap (const fvPatchScalarField &, const labelList &)
 Reverse map the given fvPatchField onto this fvPatchField. 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 &)=delete
 Disallow copy without setting internal field reference. More...
 
 alphatPhaseChangeWallFunctionFvPatchScalarField (const alphatPhaseChangeWallFunctionFvPatchScalarField &, const DimensionedField< scalar, volMesh > &)
 Copy constructor setting internal field reference. More...
 
bool activePhasePair (const phasePairKey &) const
 Is there phase change mass transfer for this phasePair. More...
 
const scalarFielddmdtf () const
 Return the rate of phase-change. More...
 
const scalarFielddmdtf (const phasePairKey &) const
 Return the rate of phase-change for specific phase pair. More...
 
- Public Member Functions inherited from alphatPhaseJayatillekeWallFunctionFvPatchScalarField
 TypeName ("compressible::alphatPhaseJayatillekeWallFunction")
 Runtime type information. More...
 
 alphatPhaseJayatillekeWallFunctionFvPatchScalarField (const fvPatch &, const DimensionedField< scalar, volMesh > &)
 Construct from patch and internal field. More...
 
 alphatPhaseJayatillekeWallFunctionFvPatchScalarField (const fvPatch &, const DimensionedField< scalar, volMesh > &, const dictionary &)
 Construct from patch, internal field and dictionary. More...
 
 alphatPhaseJayatillekeWallFunctionFvPatchScalarField (const alphatPhaseJayatillekeWallFunctionFvPatchScalarField &, const fvPatch &, const DimensionedField< scalar, volMesh > &, const fvPatchFieldMapper &)
 Construct by mapping given. More...
 
 alphatPhaseJayatillekeWallFunctionFvPatchScalarField (const alphatPhaseJayatillekeWallFunctionFvPatchScalarField &)=delete
 Disallow copy without setting internal field reference. More...
 
 alphatPhaseJayatillekeWallFunctionFvPatchScalarField (const alphatPhaseJayatillekeWallFunctionFvPatchScalarField &, const DimensionedField< scalar, volMesh > &)
 Copy constructor setting internal field reference. More...
 
tmp< scalarFieldcalcAlphat (const scalarField &prevAlphat) const
 Evaluate the turbulent thermal diffusivity. More...
 

Static Public Attributes

static const NamedEnum< phaseType, 2 > phaseTypeNames_
 Heat source type names. More...
 

Additional Inherited Members

- Protected Member Functions inherited from alphatPhaseJayatillekeWallFunctionFvPatchScalarField
tmp< scalarFieldPsmooth (const scalarField &Prat) const
 'P' function More...
 
tmp< scalarFieldyPlusTherm (const nutWallFunctionFvPatchScalarField &nutw, const scalarField &P, const scalarField &Prat) const
 Calculate y+ at the edge of the thermal laminar sublayer. More...
 
- Protected Attributes inherited from alphatPhaseChangeWallFunctionFvPatchScalarField
const word otherPhaseName_
 Name of the other phase. More...
 
const scalar relax_
 Relaxation factor. More...
 
scalarField dmdtf_
 Rate of phase-change. More...
 
- Protected Attributes inherited from alphatPhaseJayatillekeWallFunctionFvPatchScalarField
scalar Prt_
 Turbulent Prandtl number. More...
 
- Static Protected Attributes inherited from alphatPhaseJayatillekeWallFunctionFvPatchScalarField
static scalar maxExp_
 
static scalar tolerance_
 
static label maxIters_
 

Detailed Description

A thermal wall function for simulation of subcooled nucleate wall boiling with runtime selectable submodels for:

- wall heat flux partitioning model

  • nucleation site density
  • bubble departure frequency
  • bubble departure diameter

Implements a version of the well-known RPI wall boiling model (Kurul & Podowski, 1991). The model implementation based on implementation described in Peltola et al. (2019) and is similar to the model described by Peltola & Pättikangas (2012). The present implementation includes simplified support for presence of non-volatile components in addition to a single volatile component.

References:

    Kurul, N., & Podowski, M.Z. (1991).
    On the modeling of multidimensional effects in boiling channels.
    ANS. Proc. National Heat Transfer Con. Minneapolis, Minnesota, USA,
    1991.
    ISBN: 0-89448-162-1, pp. 30-40.
    Peltola, J., Pättikangas, T., Bainbridge, W., Lehnigk, R., Schlegel, F.
    (2019).
    On Development and validation of subcooled nucleate boiling models for
    OpenFOAM Foundation Release.
    NURETH-18 Conference Proceedings, Portland, Oregon, United States, 2019.
    Peltola, J., & Pättikangas, T.J.H. (2012).
    Development and validation of a boiling model for OpenFOAM multiphase
    solver.
    CFD4NRS-4 Conference Proceedings, Daejeon, Korea, 2012.
    paper 59.
Usage
Property Description Required Default value
phaseType 'vapor' or 'liquid' yes
relax wall boiling model relaxation yes
Prt inherited from alphatPhaseChangeJayatillekeWallFunction yes
Cmu inherited from alphatPhaseChangeJayatillekeWallFunction yes
kappa inherited from alphatPhaseChangeJayatillekeWallFunction yes
E inherited from alphatPhaseChangeJayatillekeWallFunction yes
dmdt phase change mass flux yes
value initial alphat value yes

if phaseType 'vapor':

partitioningModel yes

if phaseType 'liquid':

partitioningModel yes
nucleationSiteModel yes
departureDiamModel yes
departureFreqModel yes

NOTE: Runtime selectable submodels may require model specific entries

Example usage:

    hotWall
    {
        type            compressible::alphatWallBoiling2WallFunction;
        phaseType       liquid;
        Prt             0.85;
        Cmu             0.09;
        kappa           0.41;
        E               9.8;
        relax           0.1;
        dmdt            uniform 0;
        partitioningModel
        {
            type        Lavieville;
            alphaCrit   0.2;
        }
        nucleationSiteModel
        {
            type        LemmertChawla;
        }
        departureDiamModel
        {
            type        TolubinskiKostanchuk;
        }
        departureFreqModel
        {
            type        Cole;
        }
        value           uniform 0.01;
See also
Foam::alphatPhaseChangeJayatillekeWallFunctionFvPatchField
Source files

Definition at line 224 of file alphatWallBoilingWallFunctionFvPatchScalarField.H.

Member Enumeration Documentation

◆ phaseType

enum phaseType

Enumeration listing the possible operational modes.

Enumerator
vaporPhase 
liquidPhase 

Definition at line 233 of file alphatWallBoilingWallFunctionFvPatchScalarField.H.

Constructor & Destructor Documentation

◆ alphatWallBoilingWallFunctionFvPatchScalarField() [1/5]

Construct from patch and internal field.

Referenced by alphatWallBoilingWallFunctionFvPatchScalarField::clone().

Here is the caller graph for this function:

◆ alphatWallBoilingWallFunctionFvPatchScalarField() [2/5]

alphatWallBoilingWallFunctionFvPatchScalarField ( const fvPatch ,
const DimensionedField< scalar, volMesh > &  ,
const dictionary  
)

Construct from patch, internal field and dictionary.

◆ alphatWallBoilingWallFunctionFvPatchScalarField() [3/5]

◆ alphatWallBoilingWallFunctionFvPatchScalarField() [4/5]

Disallow copy without setting internal field reference.

◆ alphatWallBoilingWallFunctionFvPatchScalarField() [5/5]

Copy constructor setting internal field reference.

Member Function Documentation

◆ TypeName()

TypeName ( "compressible::alphatWallBoilingWallFunction"  )

Runtime type information.

◆ clone()

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

Construct and return a clone setting internal field reference.

Reimplemented from alphatPhaseJayatillekeWallFunctionFvPatchScalarField.

Definition at line 328 of file alphatWallBoilingWallFunctionFvPatchScalarField.H.

References alphatWallBoilingWallFunctionFvPatchScalarField::alphatWallBoilingWallFunctionFvPatchScalarField().

Here is the call graph for this function:

◆ dDeparture()

◆ autoMap()

virtual void autoMap ( const fvPatchFieldMapper )
virtual

Map (and resize as needed) from self given a mapping object.

Used to update fields following mesh topology change

Reimplemented from alphatPhaseChangeWallFunctionFvPatchScalarField.

Referenced by alphatWallBoilingWallFunctionFvPatchScalarField::dDeparture().

Here is the caller graph for this function:

◆ rmap()

virtual void rmap ( const fvPatchScalarField ,
const labelList  
)
virtual

Reverse map the given fvPatchField onto this fvPatchField.

Used to reconstruct fields

Reimplemented from alphatPhaseChangeWallFunctionFvPatchScalarField.

Referenced by alphatWallBoilingWallFunctionFvPatchScalarField::dDeparture().

Here is the caller graph for this function:

◆ updateCoeffs()

virtual void updateCoeffs ( )
virtual

Update the coefficients associated with the patch field.

Implements alphatPhaseChangeWallFunctionFvPatchScalarField.

Referenced by alphatWallBoilingWallFunctionFvPatchScalarField::dDeparture().

Here is the caller graph for this function:

◆ write()

virtual void write ( Ostream ) const
virtual

Write.

Reimplemented from alphatPhaseChangeWallFunctionFvPatchScalarField.

Referenced by alphatWallBoilingWallFunctionFvPatchScalarField::dDeparture().

Here is the caller graph for this function:

Member Data Documentation

◆ phaseTypeNames_

const NamedEnum<phaseType, 2> phaseTypeNames_
static

Heat source type names.

Definition at line 240 of file alphatWallBoilingWallFunctionFvPatchScalarField.H.


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