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 > &)
 Construct from patch and internal field. 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. 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 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 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>;

    samplePatch     <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>;

    samplePatch     <masterPatchName>;

    qr              none;
    relaxation      1;

    value           uniform 300;
}
Source files

Definition at line 109 of file thermalBaffle1DFvPatchScalarField.H.

Constructor & Destructor Documentation

◆ thermalBaffle1DFvPatchScalarField() [1/5]

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

Construct from patch and internal field.

Definition at line 44 of file thermalBaffle1DFvPatchScalarField.C.

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

Here is the caller graph for this function:

◆ thermalBaffle1DFvPatchScalarField() [2/5]

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

◆ thermalBaffle1DFvPatchScalarField() [3/5]

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 133 of file thermalBaffle1DFvPatchScalarField.C.

References thermalBaffle1DFvPatchScalarField< solidType >::thermalBaffle1DFvPatchScalarField().

Here is the call graph for this function:

◆ thermalBaffle1DFvPatchScalarField() [4/5]

Disallow copy without setting internal field reference.

◆ thermalBaffle1DFvPatchScalarField() [5/5]

Member Function Documentation

◆ TypeName()

TypeName ( "compressible::thermalBaffle1D"  )

Runtime type information.

◆ clone()

◆ 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 290 of file thermalBaffle1DFvPatchScalarField.C.

References thermalBaffle1DFvPatchScalarField< solidType >::rmap().

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

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

◆ rmap()

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

◆ reset()

◆ updateCoeffs()

void updateCoeffs ( )
virtual

Update the coefficients associated with the patch field.

Definition at line 344 of file thermalBaffle1DFvPatchScalarField.C.

References alpha(), mappedPatchBase::distribute(), Foam::endl(), forAll, Foam::gAverage(), Foam::gMax(), Foam::gMin(), Foam::constant::atomic::group, IOobject::groupName(), Foam::Info, thermophysicalTransportModel::kappaEff(), UPstream::msgType(), Foam::fvc::snGrad(), and Foam::Zero.

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

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

◆ write()

void write ( Ostream os) const
virtual

Write.

Definition at line 437 of file thermalBaffle1DFvPatchScalarField.C.

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

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

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

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