Mixed boundary condition for temperature, to be used for heat-transfer on back-to-back baffles. Optional thin thermal layer resistances can be specified through thicknessLayers and kappaLayers entries. More...
Public Member Functions | |
TypeName ("compressible::turbulentTemperatureCoupledBaffleMixed") | |
Runtime type information. More... | |
turbulentTemperatureCoupledBaffleMixedFvPatchScalarField (const fvPatch &, const DimensionedField< scalar, volMesh > &) | |
Construct from patch and internal field. More... | |
turbulentTemperatureCoupledBaffleMixedFvPatchScalarField (const fvPatch &, const DimensionedField< scalar, volMesh > &, const dictionary &) | |
Construct from patch, internal field and dictionary. More... | |
turbulentTemperatureCoupledBaffleMixedFvPatchScalarField (const turbulentTemperatureCoupledBaffleMixedFvPatchScalarField &, const fvPatch &, const DimensionedField< scalar, volMesh > &, const fvPatchFieldMapper &) | |
Construct by mapping given. More... | |
turbulentTemperatureCoupledBaffleMixedFvPatchScalarField (const turbulentTemperatureCoupledBaffleMixedFvPatchScalarField &, 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... | |
virtual void | updateCoeffs () |
Update the coefficients associated with the patch field. More... | |
virtual void | write (Ostream &) const |
Write. More... | |
Public Member Functions inherited from temperatureCoupledBase | |
temperatureCoupledBase (const fvPatch &patch) | |
Construct from patch. More... | |
temperatureCoupledBase (const fvPatch &patch, const dictionary &dict) | |
Construct from patch and dictionary. More... | |
temperatureCoupledBase (const fvPatch &patch, const temperatureCoupledBase &base) | |
Construct from patch and temperatureCoupledBase. More... | |
tmp< scalarField > | kappa (const fvPatchScalarField &Tp) const |
Given patch temperature calculate corresponding K field. More... | |
void | write (Ostream &) const |
Write. More... | |
Mixed boundary condition for temperature, to be used for heat-transfer on back-to-back baffles. Optional thin thermal 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 KDelta is heat-transfer coefficient K*deltaCoeffs and qs is the optional source heat flux.
The thermal conductivity kappa
can either be retrieved from various possible sources, as detailed in the class temperatureCoupledBase.
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 |
Example of the boundary condition specification:
<patchName> { type compressible::turbulentTemperatureCoupledBaffleMixed; Tnbr T; thicknessLayers (0.1 0.2 0.3 0.4); kappaLayers (1 2 3 4); qs uniform 100; // Optional source heat flux [W/m^2] value uniform 300; }
Needs to be on underlying mapped(Wall)FvPatch.
Note that in order to provide an optional heat source either qs or Qs should be specified, not both.
Definition at line 127 of file turbulentTemperatureCoupledBaffleMixedFvPatchScalarField.H.
turbulentTemperatureCoupledBaffleMixedFvPatchScalarField | ( | const fvPatch & | p, |
const DimensionedField< scalar, volMesh > & | iF | ||
) |
Construct from patch and internal field.
Definition at line 43 of file turbulentTemperatureCoupledBaffleMixedFvPatchScalarField.C.
Referenced by turbulentTemperatureCoupledBaffleMixedFvPatchScalarField::clone(), and turbulentTemperatureCoupledBaffleMixedFvPatchScalarField::turbulentTemperatureCoupledBaffleMixedFvPatchScalarField().
turbulentTemperatureCoupledBaffleMixedFvPatchScalarField | ( | const fvPatch & | p, |
const DimensionedField< scalar, volMesh > & | iF, | ||
const dictionary & | dict | ||
) |
Construct from patch, internal field and dictionary.
Definition at line 64 of file turbulentTemperatureCoupledBaffleMixedFvPatchScalarField.C.
References Foam::exit(), Foam::FatalError, FatalErrorInFunction, Foam::FatalIOError, FatalIOErrorInFunction, forAll, dictionary::found(), Foam::gSum(), dictionary::lookup(), fvPatch::name(), fvPatchField< Type >::operator=(), fvPatch::size(), and turbulentTemperatureCoupledBaffleMixedFvPatchScalarField::turbulentTemperatureCoupledBaffleMixedFvPatchScalarField().
turbulentTemperatureCoupledBaffleMixedFvPatchScalarField | ( | const turbulentTemperatureCoupledBaffleMixedFvPatchScalarField & | ptf, |
const fvPatch & | p, | ||
const DimensionedField< scalar, volMesh > & | iF, | ||
const fvPatchFieldMapper & | mapper | ||
) |
Construct by mapping given.
turbulentTemperatureCoupledBaffleMixedFvPatchScalarField onto a new patch
Definition at line 145 of file turbulentTemperatureCoupledBaffleMixedFvPatchScalarField.C.
turbulentTemperatureCoupledBaffleMixedFvPatchScalarField | ( | const turbulentTemperatureCoupledBaffleMixedFvPatchScalarField & | ptf, |
const DimensionedField< scalar, volMesh > & | iF | ||
) |
Construct as copy setting internal field reference.
Definition at line 164 of file turbulentTemperatureCoupledBaffleMixedFvPatchScalarField.C.
TypeName | ( | "compressible::turbulentTemperatureCoupledBaffleMixed" | ) |
Runtime type information.
|
inlinevirtual |
Construct and return a clone setting internal field reference.
Definition at line 193 of file turbulentTemperatureCoupledBaffleMixedFvPatchScalarField.H.
References turbulentTemperatureCoupledBaffleMixedFvPatchScalarField::turbulentTemperatureCoupledBaffleMixedFvPatchScalarField(), turbulentTemperatureCoupledBaffleMixedFvPatchScalarField::updateCoeffs(), and turbulentTemperatureCoupledBaffleMixedFvPatchScalarField::write().
|
virtual |
Update the coefficients associated with the patch field.
Definition at line 181 of file turbulentTemperatureCoupledBaffleMixedFvPatchScalarField.C.
References boundary(), fvPatch::deltaCoeffs(), mappedPatchBase::distribute(), Foam::endl(), Foam::exit(), Foam::FatalError, FatalErrorInFunction, Foam::gAverage(), Foam::gMax(), Foam::gMin(), Foam::gSum(), patchIdentifier::index(), Foam::Info, temperatureCoupledBase::kappa(), fvPatch::lookupPatchField(), UPstream::msgType(), fvPatch::name(), tmp< T >::ref(), mappedPatchBase::sampleMesh(), mappedPatchBase::samplePolyPatch(), Foam::fvc::snGrad(), and turbulentTemperatureCoupledBaffleMixedFvPatchScalarField::write().
Referenced by turbulentTemperatureCoupledBaffleMixedFvPatchScalarField::clone().
|
virtual |
Write.
Definition at line 286 of file turbulentTemperatureCoupledBaffleMixedFvPatchScalarField.C.
References Foam::compressible::makePatchTypeField(), Foam::vtkWriteOps::write(), temperatureCoupledBase::write(), and Foam::writeEntry().
Referenced by turbulentTemperatureCoupledBaffleMixedFvPatchScalarField::clone(), and turbulentTemperatureCoupledBaffleMixedFvPatchScalarField::updateCoeffs().