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...
Public Member Functions | |
TypeName ("coupledTemperature") | |
Runtime type information. More... | |
coupledTemperatureFvPatchScalarField (const fvPatch &, const DimensionedField< scalar, volMesh > &, const dictionary &) | |
Construct from patch, internal field and dictionary. More... | |
coupledTemperatureFvPatchScalarField (const coupledTemperatureFvPatchScalarField &, const fvPatch &, const DimensionedField< scalar, volMesh > &, const fieldMapper &) | |
Construct by mapping given. More... | |
coupledTemperatureFvPatchScalarField (const coupledTemperatureFvPatchScalarField &, const DimensionedField< scalar, volMesh > &) | |
Construct as copy setting internal field reference. More... | |
virtual tmp< fvPatchScalarField > | clone (const DimensionedField< scalar, volMesh > &iF) const |
Construct and return a clone setting internal field reference. 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... | |
virtual void | getNbr (tmp< scalarField > &TwNbr, tmp< scalarField > &qNbr) const |
Get the neighbour patch wall temperature and heat-flux. More... | |
void | add (tmp< scalarField > &result, const tmp< scalarField > &field) const |
Add field to result which may have not been previously set. More... | |
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:
where kappaByDelta is heat-transfer coefficient kappa*deltaCoeffs and qs is the optional source heat flux.
Property | Description | Required | Default value |
---|---|---|---|
Tnbr | name of the field | no | T |
thicknessLayers | list of thicknesses per layer [m] | no | |
kappaLayers | list of thermal conductivities per layer [W/m/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 |
Example of the boundary condition specification:
<patchName> { type coupledTemperature; thicknessLayers (0.1 0.2 0.3 0.4); // Optional wall layer thicknesses kappaLayers (1 2 3 4); // Optional wall layer conductivities qs uniform 100; // Optional source heat flux [W/m^2] 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.
Definition at line 134 of file coupledTemperatureFvPatchScalarField.H.
coupledTemperatureFvPatchScalarField | ( | const fvPatch & | p, |
const DimensionedField< scalar, volMesh > & | iF, | ||
const dictionary & | dict | ||
) |
Construct from patch, internal field and dictionary.
Definition at line 130 of file coupledTemperatureFvPatchScalarField.C.
References dict, mappedPatchBaseBase::from::differentPatch, DimensionedField< Type, GeoMesh >::dimensions(), Foam::dimLength, Foam::dimPower, Foam::dimTime, Foam::exit(), Foam::FatalIOError, FatalIOErrorInFunction, forAll, Foam::gSum(), fvPatchField< Type >::operator, p, List< T >::size(), Foam::unitFraction, and mappedPatchBaseBase::validateMapForField().
coupledTemperatureFvPatchScalarField | ( | const coupledTemperatureFvPatchScalarField & | psf, |
const fvPatch & | p, | ||
const DimensionedField< scalar, volMesh > & | iF, | ||
const fieldMapper & | mapper | ||
) |
Construct by mapping given.
coupledTemperatureFvPatchScalarField onto a new patch
Definition at line 219 of file coupledTemperatureFvPatchScalarField.C.
References coupledTemperatureFvPatchScalarField::map().
coupledTemperatureFvPatchScalarField | ( | const coupledTemperatureFvPatchScalarField & | psf, |
const DimensionedField< scalar, volMesh > & | iF | ||
) |
Construct as copy setting internal field reference.
Definition at line 242 of file coupledTemperatureFvPatchScalarField.C.
|
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 coupledMultiphaseTemperatureFvPatchScalarField.
Definition at line 35 of file coupledTemperatureFvPatchScalarField.C.
References Foam::constant::electromagnetic::kappa, thermophysicalTransportModel::kappaEff(), thermophysicalTransportModel::qCorr(), and tmp< T >::valid().
|
protectedvirtual |
Get the neighbour patch kappa*Tc/delta and kappa/delta.
and the heat-flux correction
Reimplemented in coupledMultiphaseTemperatureFvPatchScalarField.
Definition at line 63 of file coupledTemperatureFvPatchScalarField.C.
References thermophysicalTransportModel::kappaEff(), and thermophysicalTransportModel::qCorr().
Referenced by coupledTemperatureFvPatchScalarField::updateCoeffs().
|
protectedvirtual |
Get the neighbour patch wall temperature and heat-flux.
when wall thermal resistance is specified
Reimplemented in coupledMultiphaseTemperatureFvPatchScalarField.
Definition at line 82 of file coupledTemperatureFvPatchScalarField.C.
References thermophysicalTransportModel::qCorr().
|
protected |
Add field to result which may have not been previously set.
Definition at line 104 of file coupledTemperatureFvPatchScalarField.C.
References tmp< T >::isTmp(), tmp< T >::ref(), and tmp< T >::valid().
TypeName | ( | "coupledTemperature" | ) |
Runtime type information.
|
inlinevirtual |
Construct and return a clone setting internal field reference.
Reimplemented in coupledMultiphaseTemperatureFvPatchScalarField.
Definition at line 240 of file coupledTemperatureFvPatchScalarField.H.
void map | ( | const coupledTemperatureFvPatchScalarField & | ptf, |
const fieldMapper & | mapper | ||
) |
Map the given fvPatchField onto this fvPatchField.
Definition at line 263 of file coupledTemperatureFvPatchScalarField.C.
Referenced by coupledTemperatureFvPatchScalarField::coupledTemperatureFvPatchScalarField().
|
virtual |
Map the given fvPatchField onto this fvPatchField.
Definition at line 283 of file coupledTemperatureFvPatchScalarField.C.
|
virtual |
Reset the fvPatchField to the given fvPatchField.
Used for mesh to mesh mapping
Definition at line 293 of file coupledTemperatureFvPatchScalarField.C.
|
virtual |
Update the coefficients associated with the patch field.
Definition at line 310 of file coupledTemperatureFvPatchScalarField.C.
References Foam::add(), Foam::endl(), Foam::exit(), Foam::FatalError, FatalErrorInFunction, Foam::gAverage(), mappedFvPatchBaseBase::getMap(), coupledTemperatureFvPatchScalarField::getNbr(), Foam::gMax(), Foam::gMin(), Foam::gSum(), Foam::Info, Foam::constant::electromagnetic::kappa, fvPatch::lookupPatchField(), UPstream::msgType(), fvMesh::name(), fvPatch::name(), IOstream::name(), mappedFvPatchBaseBase::nbrFvPatch(), mappedFvPatchBaseBase::nbrMesh(), Foam::fvc::snGrad(), and tmp< T >::valid().
|
virtual |
Write.
Definition at line 443 of file coupledTemperatureFvPatchScalarField.C.
References Foam::vtkWriteOps::write(), and Foam::writeEntry().