Loading...
Searching...
No Matches
fixedMultiPhaseHeatFluxFvPatchScalarField Class Reference

Calculates a wall temperature that produces the specified overall wall heat flux across all the phases in an Eulerian multi-phase simulation. More...

#include <fixedMultiPhaseHeatFluxFvPatchScalarField.H>

Inheritance diagram for fixedMultiPhaseHeatFluxFvPatchScalarField:
Collaboration diagram for fixedMultiPhaseHeatFluxFvPatchScalarField:

Public Member Functions

 TypeName ("fixedMultiPhaseHeatFlux")
 Runtime type information.
 fixedMultiPhaseHeatFluxFvPatchScalarField (const fvPatch &, const DimensionedField< scalar, volMesh > &)
 Construct from patch and internal field.
 fixedMultiPhaseHeatFluxFvPatchScalarField (const fvPatch &, const DimensionedField< scalar, volMesh > &, const dictionary &)
 Construct from patch, internal field and dictionary.
 fixedMultiPhaseHeatFluxFvPatchScalarField (const fixedMultiPhaseHeatFluxFvPatchScalarField &, const fvPatch &, const DimensionedField< scalar, volMesh > &, const fvPatchFieldMapper &)
 Construct by mapping given fixedMultiPhaseHeatFluxFvPatchScalarField onto a new patch.
 fixedMultiPhaseHeatFluxFvPatchScalarField (const fixedMultiPhaseHeatFluxFvPatchScalarField &)
 Construct as copy.
 fixedMultiPhaseHeatFluxFvPatchScalarField (const fixedMultiPhaseHeatFluxFvPatchScalarField &, 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 autoMap (const fvPatchFieldMapper &)
 Map (and resize as needed) from self given a mapping object.
virtual void rmap (const fvPatchScalarField &, const labelList &)
 Reverse map the given fvPatchField onto this fvPatchField.
virtual void updateCoeffs ()
 Update the coefficients associated with the patch field.
virtual void write (Ostream &) const
 Write.

Detailed Description

Calculates a wall temperature that produces the specified overall wall heat flux across all the phases in an Eulerian multi-phase simulation.

Intended to be used with copiedFixedValue to ensure that phase wall temperature are consistent:

  • Set fixedMultiPhaseHeatFlux boundary for one of the phases
  • Use copiedFixedValue for all the other phases.
Usage
Example of the boundary condition specification:
<patchName>
{
    // Mandatory entries
    type            fixedMultiPhaseHeatFlux;
    q               <scalarField>;

    // Optional entries
    relax           <scalar>;
    Tmin            <scalar>;

    // Inherited entries
    ...
}

where the entries mean:

Property Description Type Reqd Deflt
type Type name: fixedMultiPhaseHeatFlux word yes -
q Heat power [W] or flux [W/m2] scalarField yes -
relax Relaxation factor scalar no 1.0
Tmin Minimum temperature limit [K] scalar no 273.0

The inherited entries are elaborated in:

See also
Foam::fixedValueFvPatchField
Source files

Definition at line 117 of file fixedMultiPhaseHeatFluxFvPatchScalarField.H.

Constructor & Destructor Documentation

◆ fixedMultiPhaseHeatFluxFvPatchScalarField() [1/5]

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

Construct from patch and internal field.

Definition at line 33 of file fixedMultiPhaseHeatFluxFvPatchScalarField.C.

References p, and Foam::Zero.

Referenced by fixedMultiPhaseHeatFluxFvPatchScalarField(), fixedMultiPhaseHeatFluxFvPatchScalarField(), fixedMultiPhaseHeatFluxFvPatchScalarField(), rmap(), and TypeName().

Here is the caller graph for this function:

◆ fixedMultiPhaseHeatFluxFvPatchScalarField() [2/5]

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

Construct from patch, internal field and dictionary.

Definition at line 47 of file fixedMultiPhaseHeatFluxFvPatchScalarField.C.

References dict, and p.

◆ fixedMultiPhaseHeatFluxFvPatchScalarField() [3/5]

fixedMultiPhaseHeatFluxFvPatchScalarField ( const fixedMultiPhaseHeatFluxFvPatchScalarField & psf,
const fvPatch & p,
const DimensionedField< scalar, volMesh > & iF,
const fvPatchFieldMapper & mapper )

Construct by mapping given fixedMultiPhaseHeatFluxFvPatchScalarField onto a new patch.

Definition at line 62 of file fixedMultiPhaseHeatFluxFvPatchScalarField.C.

References fixedMultiPhaseHeatFluxFvPatchScalarField(), and p.

Here is the call graph for this function:

◆ fixedMultiPhaseHeatFluxFvPatchScalarField() [4/5]

fixedMultiPhaseHeatFluxFvPatchScalarField ( const fixedMultiPhaseHeatFluxFvPatchScalarField & psf)

Construct as copy.

Definition at line 78 of file fixedMultiPhaseHeatFluxFvPatchScalarField.C.

References fixedMultiPhaseHeatFluxFvPatchScalarField().

Here is the call graph for this function:

◆ fixedMultiPhaseHeatFluxFvPatchScalarField() [5/5]

fixedMultiPhaseHeatFluxFvPatchScalarField ( const fixedMultiPhaseHeatFluxFvPatchScalarField & psf,
const DimensionedField< scalar, volMesh > & iF )

Construct as copy setting internal field reference.

Definition at line 91 of file fixedMultiPhaseHeatFluxFvPatchScalarField.C.

References fixedMultiPhaseHeatFluxFvPatchScalarField().

Here is the call graph for this function:

Member Function Documentation

◆ TypeName()

TypeName ( "fixedMultiPhaseHeatFlux" )

Runtime type information.

References fixedMultiPhaseHeatFluxFvPatchScalarField().

Here is the call graph for this function:

◆ clone() [1/2]

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

Return a clone.

Definition at line 201 of file fixedMultiPhaseHeatFluxFvPatchScalarField.H.

References fvPatchField< Type >::Clone().

Here is the call graph for this function:

◆ clone() [2/2]

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

Clone with an internal field reference.

Definition at line 209 of file fixedMultiPhaseHeatFluxFvPatchScalarField.H.

References fvPatchField< Type >::Clone().

Here is the call graph for this function:

◆ autoMap()

void autoMap ( const fvPatchFieldMapper & m)
virtual

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

Used to update fields following mesh topology change

Definition at line 169 of file fixedMultiPhaseHeatFluxFvPatchScalarField.C.

◆ rmap()

void rmap ( const fvPatchScalarField & ptf,
const labelList & addr )
virtual

Reverse map the given fvPatchField onto this fvPatchField.

Used to reconstruct fields

Definition at line 179 of file fixedMultiPhaseHeatFluxFvPatchScalarField.C.

References fixedMultiPhaseHeatFluxFvPatchScalarField(), and Foam::refCast().

Here is the call graph for this function:

◆ updateCoeffs()

void updateCoeffs ( )
virtual

Update the coefficients associated with the patch field.

Definition at line 108 of file fixedMultiPhaseHeatFluxFvPatchScalarField.C.

References A, alpha, B, GeometricField< Type, PatchField, GeoMesh >::boundaryField(), Foam::endl(), fluid, forAll, Foam::gMinMax(), Foam::gWeightedSum(), Foam::Info, kappaEff, limits, Foam::max(), phase::name(), Foam::operator==(), phasei, Foam::T(), and Foam::Zero.

Here is the call graph for this function:

◆ write()

void write ( Ostream & os) const
virtual

Write.

Definition at line 194 of file fixedMultiPhaseHeatFluxFvPatchScalarField.C.

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

Here is the call graph for this function:

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