coupledTemperatureFvPatchScalarField Class Reference

Mixed boundary condition for temperature, to be used for heat-transfer with another region in a CHT case. Optional thin wall material layer resistances can be specified through thicknessLayers and kappaLayers entries. More...

Inheritance diagram for coupledTemperatureFvPatchScalarField:
Collaboration diagram for coupledTemperatureFvPatchScalarField:

Public Member Functions

 TypeName ("coupledTemperature")
 Runtime type information. More...
 
 coupledTemperatureFvPatchScalarField (const fvPatch &, const DimensionedField< scalar, fvMesh > &, const dictionary &)
 Construct from patch, internal field and dictionary. More...
 
 coupledTemperatureFvPatchScalarField (const coupledTemperatureFvPatchScalarField &, const fvPatch &, const DimensionedField< scalar, fvMesh > &, const fieldMapper &)
 Construct by mapping given. More...
 
 coupledTemperatureFvPatchScalarField (const coupledTemperatureFvPatchScalarField &, const DimensionedField< scalar, fvMesh > &)
 Construct as copy setting internal field reference. More...
 
virtual tmp< fvPatchScalarFieldclone (const DimensionedField< scalar, fvMesh > &iF) const
 Construct and return a clone setting internal field reference. More...
 
virtual ~coupledTemperatureFvPatchScalarField ()
 Destructor. More...
 
void map (const coupledTemperatureFvPatchScalarField &, const fieldMapper &)
 Map the given fvPatchField onto this fvPatchField. More...
 
virtual void map (const fvPatchScalarField &, const fieldMapper &)
 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...
 

Protected Member Functions

virtual void getThis (tmp< scalarField > &kappa, tmp< scalarField > &sumKappaTByDelta, tmp< scalarField > &sumKappaByDelta, scalarField &qTot, tmp< scalarField > &qByKappa) const
 Get the patch kappa, kappa*Tc/delta and kappa/delta and also the. More...
 
virtual void getNbr (tmp< scalarField > &sumKappaTByDeltaNbr, tmp< scalarField > &sumKappaByDeltaNbr, tmp< scalarField > &qNbr) const
 Get the neighbour patch kappa*Tc/delta and kappa/delta. More...
 
void add (tmp< scalarField > &result, const tmp< scalarField > &field) const
 Add field to result which may have not been previously set. More...
 

Detailed Description

Mixed boundary condition for temperature, to be used for heat-transfer with another region in a CHT case. Optional thin wall material layer resistances can be specified through thicknessLayers and kappaLayers entries.

Specifies gradient and temperature such that the equations are the same on both sides:

  • refGradient = qs_/kappa
  • refValue = neighbour value
  • valueFraction = kappaByDeltaNbr/(kappaByDeltaNbr + kappaByDelta)

where kappaByDelta is heat-transfer coefficient kappa*deltaCoeffs and qs is the optional source heat flux.

Usage
Property Description Required Default value
Tnbr name of the field no T
h Heat transfer coefficient of insulation layer [W/m^2/K] no
qs Optional source heat flux [W/m^2] no 0
Qs Optional heat source [W] no 0
qrNbr name of the radiative flux in the nbr region no none
qr name of the radiative flux in this region no none
qrRelaxation Relaxation factor for radiative field no 1

Example of the boundary condition specification:

    <patchName>
    {
        type            coupledTemperature;
        value           uniform 300;
    }

Needs to be on underlying mapped(Wall)FvPatch.

The patch thermal conductivity kappa is obtained from the region thermophysicalTransportModel so that this boundary condition can be applied directly to either fluid or solid regions.

Note that in order to provide an optional heat source either qs or Qs should be specified, not both.

Source files

Definition at line 131 of file coupledTemperatureFvPatchScalarField.H.

Constructor & Destructor Documentation

◆ coupledTemperatureFvPatchScalarField() [1/3]

◆ coupledTemperatureFvPatchScalarField() [2/3]

coupledTemperatureFvPatchScalarField ( const coupledTemperatureFvPatchScalarField psf,
const fvPatch p,
const DimensionedField< scalar, fvMesh > &  iF,
const fieldMapper mapper 
)

Construct by mapping given.

coupledTemperatureFvPatchScalarField onto a new patch

Definition at line 199 of file coupledTemperatureFvPatchScalarField.C.

References coupledTemperatureFvPatchScalarField::map().

Here is the call graph for this function:

◆ coupledTemperatureFvPatchScalarField() [3/3]

Construct as copy setting internal field reference.

Definition at line 236 of file coupledTemperatureFvPatchScalarField.C.

◆ ~coupledTemperatureFvPatchScalarField()

Destructor.

Definition at line 278 of file coupledTemperatureFvPatchScalarField.C.

Member Function Documentation

◆ getThis()

void getThis ( tmp< scalarField > &  kappa,
tmp< scalarField > &  sumKappaTByDelta,
tmp< scalarField > &  sumKappaByDelta,
scalarField qTot,
tmp< scalarField > &  qByKappa 
) const
protectedvirtual

Get the patch kappa, kappa*Tc/delta and kappa/delta and also the.

heat-flux obtained from the sum heat-flux provided

Reimplemented in ubCoupledTemperatureFvPatchScalarField, and multiphaseCoupledTemperatureFvPatchScalarField.

Definition at line 34 of file coupledTemperatureFvPatchScalarField.C.

References Foam::constant::electromagnetic::kappa, thermophysicalTransportModel::kappaEff(), thermophysicalTransportModel::qCorr(), and tmp< T >::valid().

Here is the call graph for this function:

◆ getNbr()

void getNbr ( tmp< scalarField > &  sumKappaTByDeltaNbr,
tmp< scalarField > &  sumKappaByDeltaNbr,
tmp< scalarField > &  qNbr 
) const
protectedvirtual

Get the neighbour patch kappa*Tc/delta and kappa/delta.

and the heat-flux correction

Reimplemented in ubCoupledTemperatureFvPatchScalarField, and multiphaseCoupledTemperatureFvPatchScalarField.

Definition at line 62 of file coupledTemperatureFvPatchScalarField.C.

References thermophysicalTransportModel::kappaEff(), and thermophysicalTransportModel::qCorr().

Referenced by coupledTemperatureFvPatchScalarField::updateCoeffs().

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

◆ add()

void add ( tmp< scalarField > &  result,
const tmp< scalarField > &  field 
) const
protected

Add field to result which may have not been previously set.

Definition at line 81 of file coupledTemperatureFvPatchScalarField.C.

References tmp< T >::isTmp(), tmp< T >::ref(), and tmp< T >::valid().

Here is the call graph for this function:

◆ TypeName()

TypeName ( "coupledTemperature"  )

Runtime type information.

◆ clone()

Foam::tmp< Foam::fvPatchScalarField > clone ( const DimensionedField< scalar, fvMesh > &  iF) const
virtual

Construct and return a clone setting internal field reference.

Reimplemented in ubCoupledTemperatureFvPatchScalarField, and multiphaseCoupledTemperatureFvPatchScalarField.

Definition at line 264 of file coupledTemperatureFvPatchScalarField.C.

◆ map() [1/2]

void map ( const coupledTemperatureFvPatchScalarField ptf,
const fieldMapper mapper 
)

Map the given fvPatchField onto this fvPatchField.

Definition at line 285 of file coupledTemperatureFvPatchScalarField.C.

Referenced by coupledTemperatureFvPatchScalarField::coupledTemperatureFvPatchScalarField().

Here is the caller graph for this function:

◆ map() [2/2]

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

Map the given fvPatchField onto this fvPatchField.

Definition at line 305 of file coupledTemperatureFvPatchScalarField.C.

References fieldMapper::direct().

Here is the call graph for this function:

◆ reset()

void reset ( const fvPatchScalarField ptf)
virtual

Reset the fvPatchField to the given fvPatchField.

Used for mesh to mesh mapping

Definition at line 320 of file coupledTemperatureFvPatchScalarField.C.

◆ updateCoeffs()

◆ write()

void write ( Ostream os) const
virtual

Write.

Definition at line 502 of file coupledTemperatureFvPatchScalarField.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: