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, 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< fvPatchScalarField > | clone (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... | |
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 |
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.
Definition at line 131 of file coupledTemperatureFvPatchScalarField.H.
| coupledTemperatureFvPatchScalarField | ( | const fvPatch & | p, |
| const DimensionedField< scalar, fvMesh > & | iF, | ||
| const dictionary & | dict | ||
| ) |
Construct from patch, internal field and dictionary.
Definition at line 107 of file coupledTemperatureFvPatchScalarField.C.
References dict, mappedPatchBaseBase::from::differentPatch, DimensionedField< Type, GeoMesh, PrimitiveField >::dimensions(), Foam::dimLength, Foam::dimPower, Foam::dimTime, Foam::exit(), Foam::FatalIOError, FatalIOErrorInFunction, Foam::units::fraction, Foam::gSum(), fvPatchField< Type >::operator, p, and mappedPatchBaseBase::validateMapForField().

| 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().

| coupledTemperatureFvPatchScalarField | ( | const coupledTemperatureFvPatchScalarField & | psf, |
| const DimensionedField< scalar, fvMesh > & | iF | ||
| ) |
Construct as copy setting internal field reference.
Definition at line 236 of file coupledTemperatureFvPatchScalarField.C.
|
virtual |
Destructor.
Definition at line 278 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 ubCoupledTemperatureFvPatchScalarField, and multiphaseCoupledTemperatureFvPatchScalarField.
Definition at line 34 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 ubCoupledTemperatureFvPatchScalarField, and multiphaseCoupledTemperatureFvPatchScalarField.
Definition at line 62 of file coupledTemperatureFvPatchScalarField.C.
References thermophysicalTransportModel::kappaEff(), and thermophysicalTransportModel::qCorr().
Referenced by coupledTemperatureFvPatchScalarField::updateCoeffs().


|
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().

| TypeName | ( | "coupledTemperature" | ) |
Runtime type information.
|
virtual |
Construct and return a clone setting internal field reference.
Reimplemented in ubCoupledTemperatureFvPatchScalarField, and multiphaseCoupledTemperatureFvPatchScalarField.
Definition at line 264 of file coupledTemperatureFvPatchScalarField.C.
| 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().

|
virtual |
Map the given fvPatchField onto this fvPatchField.
Definition at line 305 of file coupledTemperatureFvPatchScalarField.C.
References fieldMapper::direct().

|
virtual |
Reset the fvPatchField to the given fvPatchField.
Used for mesh to mesh mapping
Definition at line 320 of file coupledTemperatureFvPatchScalarField.C.
|
virtual |
Update the coefficients associated with the patch field.
Definition at line 342 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(), tmp< T >::ref(), Foam::fvc::snGrad(), Foam::typeName(), and tmp< T >::valid().

|
virtual |
Write.
Definition at line 502 of file coupledTemperatureFvPatchScalarField.C.
References Foam::vtkWriteOps::write(), and Foam::writeEntry().
