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... | |
virtual tmp< fvPatchScalarField > | clone () const |
Construct and return a clone. 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, const word &calculationMethod, const word &kappaName, const word &alphaAniName) | |
Construct from patch and K name. 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... | |
word | KMethod () const |
Method to obtain K. More... | |
const word & | kappaName () const |
Name of thermal conductivity field. More... | |
tmp< scalarField > | kappa (const scalarField &Tp) const |
Given patch temperature calculate corresponding K field. More... | |
void | write (Ostream &) const |
Write. More... | |
Additional Inherited Members | |
Public Types inherited from temperatureCoupledBase | |
enum | KMethodType { mtFluidThermo, mtSolidThermo, mtDirectionalSolidThermo, mtLookup } |
Type of supplied Kappa. More... | |
Protected Attributes inherited from temperatureCoupledBase | |
const fvPatch & | patch_ |
Underlying patch. More... | |
const KMethodType | method_ |
How to get K. More... | |
const word | kappaName_ |
Name of thermal conductivity field (if looked up from database) More... | |
const word | alphaAniName_ |
Name of the non-Isotropic alpha (default: Anialpha) More... | |
Static Protected Attributes inherited from temperatureCoupledBase | |
static const NamedEnum < KMethodType, 4 > | KMethodTypeNames_ |
Detailed Description
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.
The thermal conductivity, kappa
, can either be retrieved from the mesh database using the lookup
option, or from a solidThermo
or fluidThermo
thermophysical package.
Specifies gradient and temperature such that the equations are the same on both sides:
- refGradient = zero gradient
- refValue = neighbour value
- mixFraction = nbrKDelta / (nbrKDelta + myKDelta())
where KDelta is heat-transfer coefficient K * deltaCoeffs
Patch usage
Property | Description | Required | Default value |
---|---|---|---|
kappa | thermal conductivity option | yes | |
kappaName | name of thermal conductivity field | no | |
Tnbr | name of the field | no | T |
thicknessLayers | list of thicknesses per layer [m] | no | |
kappaLayers | list of thermal conductivites per layer [W/m/K] | no |
Example of the boundary condition specification:
myPatch { type compressible::turbulentTemperatureCoupledBaffleMixed; Tnbr T; kappa lookup; KappaName kappa; thicknessLayers (0.1 0.2 0.3 0.4); kappaLayers (1 2 3 4) value uniform 300; }
Needs to be on underlying mapped(Wall)FvPatch.
Note: kappa : heat conduction at patch. Gets supplied how to lookup calculate kappa:
- 'lookup' : lookup volScalarField (or volSymmTensorField) with name
- 'fluidThermo' : use fluidThermo and compressible::RASmodel to calculate kappa
- 'solidThermo' : use solidThermo kappa()
- 'directionalSolidThermo' directionalKappa()
- Source files
Definition at line 134 of file turbulentTemperatureCoupledBaffleMixedFvPatchScalarField.H.
Constructor & Destructor Documentation
turbulentTemperatureCoupledBaffleMixedFvPatchScalarField | ( | const fvPatch & | p, |
const DimensionedField< scalar, volMesh > & | iF | ||
) |
Construct from patch and internal field.
Definition at line 43 of file turbulentTemperatureCoupledBaffleMixedFvPatchScalarField.C.
turbulentTemperatureCoupledBaffleMixedFvPatchScalarField | ( | const fvPatch & | p, |
const DimensionedField< scalar, volMesh > & | iF, | ||
const dictionary & | dict | ||
) |
Construct from patch, internal field and dictionary.
Definition at line 81 of file turbulentTemperatureCoupledBaffleMixedFvPatchScalarField.C.
References dimensionedInternalField(), Foam::exit(), Foam::FatalError, FatalErrorIn, forAll, dictionary::found(), dictionary::lookup(), fvPatch::name(), fvPatchField< Type >::operator=(), and fvPatch::size().
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 63 of file turbulentTemperatureCoupledBaffleMixedFvPatchScalarField.C.
turbulentTemperatureCoupledBaffleMixedFvPatchScalarField | ( | const turbulentTemperatureCoupledBaffleMixedFvPatchScalarField & | wtcsf, |
const DimensionedField< scalar, volMesh > & | iF | ||
) |
Construct as copy setting internal field reference.
Definition at line 150 of file turbulentTemperatureCoupledBaffleMixedFvPatchScalarField.C.
Member Function Documentation
TypeName | ( | "compressible::turbulentTemperatureCoupledBaffleMixed" | ) |
Runtime type information.
|
inlinevirtual |
Construct and return a clone.
Definition at line 189 of file turbulentTemperatureCoupledBaffleMixedFvPatchScalarField.H.
|
inlinevirtual |
Construct and return a clone setting internal field reference.
Definition at line 209 of file turbulentTemperatureCoupledBaffleMixedFvPatchScalarField.H.
|
virtual |
Update the coefficients associated with the patch field.
Definition at line 166 of file turbulentTemperatureCoupledBaffleMixedFvPatchScalarField.C.
References boundary(), fvPatch::deltaCoeffs(), dimensionedInternalField(), mappedPatchBase::distribute(), Foam::endl(), Foam::gAverage(), Foam::gMax(), Foam::gMin(), Foam::gSum(), patchIdentifier::index(), Foam::Info, temperatureCoupledBase::kappa(), fvPatch::lookupPatchField(), UPstream::msgType(), fvPatch::name(), Foam::refCast(), mappedPatchBase::sampleMesh(), mappedPatchBase::samplePolyPatch(), and Foam::fvc::snGrad().
|
virtual |
Write.
Definition at line 267 of file turbulentTemperatureCoupledBaffleMixedFvPatchScalarField.C.
References token::END_STATEMENT, Foam::nl, write(), temperatureCoupledBase::write(), and Ostream::writeKeyword().
The documentation for this class was generated from the following files:
- src/TurbulenceModels/compressible/turbulentFluidThermoModels/derivedFvPatchFields/turbulentTemperatureCoupledBaffleMixed/turbulentTemperatureCoupledBaffleMixedFvPatchScalarField.H
- src/TurbulenceModels/compressible/turbulentFluidThermoModels/derivedFvPatchFields/turbulentTemperatureCoupledBaffleMixed/turbulentTemperatureCoupledBaffleMixedFvPatchScalarField.C