thermalBaffle1DFvPatchScalarField< solidType > Class Template Reference

This BC solves a steady 1D thermal baffle. More...

Inheritance diagram for thermalBaffle1DFvPatchScalarField< solidType >:
Collaboration diagram for thermalBaffle1DFvPatchScalarField< solidType >:

Public Member Functions

 TypeName ("compressible::thermalBaffle1D")
 Runtime type information. More...
 
 thermalBaffle1DFvPatchScalarField (const fvPatch &, const DimensionedField< scalar, volMesh > &, const dictionary &)
 Construct from patch, internal field and dictionary. More...
 
 thermalBaffle1DFvPatchScalarField (const thermalBaffle1DFvPatchScalarField &, const fvPatch &, const DimensionedField< scalar, volMesh > &, const fvPatchFieldMapper &)
 Construct by mapping given thermalBaffle1DFvPatchScalarField. More...
 
 thermalBaffle1DFvPatchScalarField (const thermalBaffle1DFvPatchScalarField &)=delete
 Disallow copy without setting internal field reference. More...
 
 thermalBaffle1DFvPatchScalarField (const thermalBaffle1DFvPatchScalarField &, 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...
 
virtual void map (const fvPatchScalarField &, const fvPatchFieldMapper &)
 Map the given fvPatchField onto this fvPatchField. More...
 
virtual void reset (const fvPatchScalarField &)
 Reset the fvPatchField to the given fvPatchField. More...
 
virtual void updateCoeffs ()
 Update the coefficients associated with the patch field. More...
 
virtual void write (Ostream &) const
 Write. More...
 

Detailed Description

template<class solidType>
class Foam::compressible::thermalBaffle1DFvPatchScalarField< solidType >

This BC solves a steady 1D thermal baffle.

The solid properties are specify as dictionary. Optionally radiative heat flux (qr) can be incorporated into the balance. Some under-relaxation might be needed on qr. Baffle and solid properties need to be specified on the master side of the baffle.

Usage
Example of the boundary condition specification using constant solid thermo :
<masterPatchName>
{
    type   compressible::thermalBaffle1D<eConstSolidThermoPhysics>;

    neighbourPatch  <slavePatchName>;

    thickness       uniform 0.005;  // Thickness [m]
    qs              uniform 100;    // Source heat flux [W/m^2]

    qr              none;
    qrRelaxation    1;

    // Solid thermo
    specie
    {
        molWeight       20;
    }
    transport
    {
        kappa           1;
    }
    thermodynamics
    {
        Hf              0;
        Cv              10;
    }
    equationOfState
    {
        rho             10;
    }

    value           uniform 300;
}

<slavePatchName>
{
    type   compressible::thermalBaffle1D<eConstSolidThermoPhysics>;

    neighbourPatch  <masterPatchName>;

    qr              none;
    relaxation      1;

    value           uniform 300;
}
Source files

Definition at line 109 of file thermalBaffle1DFvPatchScalarField.H.

Constructor & Destructor Documentation

◆ thermalBaffle1DFvPatchScalarField() [1/4]

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

Construct from patch, internal field and dictionary.

Definition at line 42 of file thermalBaffle1DFvPatchScalarField.C.

References dict, mappedPatchBase::from::differentPatch, fvPatchField< Type >::operator=(), p, mappedPatchBase::from::sameRegion, and mappedPatchBase::validateMapForField().

Referenced by thermalBaffle1DFvPatchScalarField< solidType >::clone().

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

◆ thermalBaffle1DFvPatchScalarField() [2/4]

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

Construct by mapping given thermalBaffle1DFvPatchScalarField.

onto a new patch

Definition at line 109 of file thermalBaffle1DFvPatchScalarField.C.

◆ thermalBaffle1DFvPatchScalarField() [3/4]

Disallow copy without setting internal field reference.

◆ thermalBaffle1DFvPatchScalarField() [4/4]

thermalBaffle1DFvPatchScalarField ( const thermalBaffle1DFvPatchScalarField< solidType > &  ptf,
const DimensionedField< scalar, volMesh > &  iF 
)

Copy constructor setting internal field reference.

Definition at line 132 of file thermalBaffle1DFvPatchScalarField.C.

Member Function Documentation

◆ TypeName()

TypeName ( "compressible::thermalBaffle1D"  )

Runtime type information.

◆ clone()

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

Construct and return a clone setting internal field reference.

Definition at line 201 of file thermalBaffle1DFvPatchScalarField.H.

References thermalBaffle1DFvPatchScalarField< solidType >::thermalBaffle1DFvPatchScalarField().

Here is the call graph for this function:

◆ map()

void map ( const fvPatchScalarField ptf,
const fvPatchFieldMapper mapper 
)
virtual

Map the given fvPatchField onto this fvPatchField.

Definition at line 242 of file thermalBaffle1DFvPatchScalarField.C.

◆ reset()

void reset ( const fvPatchScalarField ptf)
virtual

Reset the fvPatchField to the given fvPatchField.

Used for mesh to mesh mapping

Definition at line 262 of file thermalBaffle1DFvPatchScalarField.C.

◆ updateCoeffs()

◆ write()

void write ( Ostream os) const
virtual

Write.

Definition at line 372 of file thermalBaffle1DFvPatchScalarField.C.

References Foam::vtkWriteOps::write(), and Foam::writeEntry().

Here is the call graph for this function:

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