This boundary condition provides a coupled temperature condition between multiple mesh regions. More...
Public Member Functions | |
TypeName ("compressible::thermalBaffle") | |
Runtime type information. More... | |
thermalBaffleFvPatchScalarField (const fvPatch &, const DimensionedField< scalar, volMesh > &) | |
Construct from patch and internal field. More... | |
thermalBaffleFvPatchScalarField (const fvPatch &, const DimensionedField< scalar, volMesh > &, const dictionary &) | |
Construct from patch, internal field and dictionary. More... | |
thermalBaffleFvPatchScalarField (const thermalBaffleFvPatchScalarField &, const fvPatch &, const DimensionedField< scalar, volMesh > &, const fvPatchFieldMapper &) | |
Construct by mapping given. More... | |
thermalBaffleFvPatchScalarField (const thermalBaffleFvPatchScalarField &, const DimensionedField< scalar, volMesh > &) | |
Construct as copy setting internal field reference. More... | |
virtual tmp< fvPatchField< scalar > > | clone () const |
Return a clone. More... | |
virtual tmp< fvPatchField< scalar > > | clone (const DimensionedField< scalar, volMesh > &iF) const |
Clone with an 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 turbulentTemperatureRadCoupledMixedFvPatchScalarField | |
TypeName ("compressible::turbulentTemperatureRadCoupledMixed") | |
Runtime type information. More... | |
turbulentTemperatureRadCoupledMixedFvPatchScalarField (const fvPatch &, const DimensionedField< scalar, volMesh > &) | |
Construct from patch and internal field. More... | |
turbulentTemperatureRadCoupledMixedFvPatchScalarField (const fvPatch &, const DimensionedField< scalar, volMesh > &, const dictionary &) | |
Construct from patch, internal field and dictionary. More... | |
turbulentTemperatureRadCoupledMixedFvPatchScalarField (const turbulentTemperatureRadCoupledMixedFvPatchScalarField &, const fvPatch &, const DimensionedField< scalar, volMesh > &, const fvPatchFieldMapper &) | |
Construct by mapping given turbulentTemperatureCoupledBaffleMixedFvPatchScalarField onto a new patch. More... | |
turbulentTemperatureRadCoupledMixedFvPatchScalarField (const turbulentTemperatureRadCoupledMixedFvPatchScalarField &) | |
Construct as copy. More... | |
turbulentTemperatureRadCoupledMixedFvPatchScalarField (const turbulentTemperatureRadCoupledMixedFvPatchScalarField &, const DimensionedField< scalar, volMesh > &) | |
Construct as copy setting internal field reference. More... | |
virtual void | autoMap (const fvPatchFieldMapper &) |
Map (and resize as needed) from self given a mapping object. More... | |
virtual void | rmap (const fvPatchField< scalar > &, const labelList &) |
Reverse map the given fvPatchField onto this fvPatchField. More... | |
virtual tmp< scalarField > | kappa (const scalarField &Tp) const |
Given patch temperature calculate corresponding K field. Override temperatureCoupledBase::kappa to includes effect of any explicit kappaThickness. More... | |
virtual void | manipulateMatrix (fvMatrix< scalar > &m, const label iMatrix, const direction cmpt) |
Manipulate matrix. More... | |
Public Member Functions inherited from temperatureCoupledBase | |
temperatureCoupledBase (const fvPatch &patch, const KMethodType method=KMethodType::mtFluidThermo) | |
Default construct from patch, using fluidThermo (default) or specified method. More... | |
temperatureCoupledBase (const fvPatch &patch, const KMethodType method, const word &kappaName, const word &alphaName, const word &alphaAniName) | |
Construct from patch, method type and field names. 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... | |
temperatureCoupledBase (const temperatureCoupledBase &base) | |
Copy construct. More... | |
virtual | ~temperatureCoupledBase ()=default |
Destructor. More... | |
word | KMethod () const |
Method to obtain K. More... | |
const word & | kappaName () const noexcept |
Name of thermal conductivity field. More... | |
const word & | alphaName () const noexcept |
Name of thermal diffusivity field. More... | |
virtual tmp< scalarField > | alpha (const scalarField &Tp) const |
Given patch temperature calculate corresponding alphaEff field. More... | |
void | write (Ostream &os) const |
Write. More... | |
Public Member Functions inherited from mappedPatchFieldBase< scalar > | |
mappedPatchFieldBase (const mappedPatchBase &mapper, const fvPatchField< scalar > &patchField, const word &fieldName, const bool setAverage, const scalar average, const word &interpolationScheme) | |
Construct from components. More... | |
mappedPatchFieldBase (const mappedPatchBase &mapper, const fvPatchField< scalar > &patchField, const dictionary &dict) | |
Construct from dictionary. More... | |
mappedPatchFieldBase (const mappedPatchBase &mapper, const fvPatchField< scalar > &patchField, const dictionary &dict, const Field< scalar > &fld) | |
Construct from dictionary and initial field value. More... | |
mappedPatchFieldBase (const mappedPatchBase &mapper, const fvPatchField< scalar > &patchField) | |
Construct empty. More... | |
mappedPatchFieldBase (const mappedPatchFieldBase< scalar > &mapper) | |
Construct copy. More... | |
mappedPatchFieldBase (const mappedPatchBase &mapper, const fvPatchField< scalar > &patchField, const mappedPatchFieldBase< scalar > &base) | |
Construct copy, resetting patch and field. More... | |
virtual | ~mappedPatchFieldBase ()=default |
Destructor. More... | |
const GeometricField< T, fvPatchField, volMesh > & | sampleField (const word &fieldName) const |
Field to sample. Either on my or nbr mesh. More... | |
const GeometricField< scalar, fvPatchField, volMesh > & | sampleField () const |
Field to sample. Either on my or nbr mesh. More... | |
const Foam::GeometricField< Type2, Foam::fvPatchField, Foam::volMesh > & | sampleField (const word &fieldName) const |
virtual tmp< Field< scalar > > | mappedField () const |
Map sampleField onto *this patch. More... | |
virtual tmp< Field< scalar > > | mappedInternalField () const |
Map internal of sampleField onto *this patch. More... | |
virtual tmp< scalarField > | mappedWeightField () const |
Map optional weightField onto *this patch. Default is deltaCoeffs. More... | |
virtual void | mappedWeightField (const word &weightFieldName, tmp< scalarField > &thisWeights, tmp< scalarField > &nbrWeights) const |
Map optional weightField (given by name) onto *this patch. More... | |
void | distribute (const word &fieldName, Field< T > &newValues) const |
Wrapper for mapDistribute::distribute that knows about dabase mapping. More... | |
Public Member Functions inherited from writeFile | |
writeFile (const objectRegistry &obr, const fileName &prefix, const word &name="undefined", const bool writeToFile=true) | |
Construct from objectRegistry, prefix, fileName. More... | |
writeFile (const objectRegistry &obr, const fileName &prefix, const word &name, const dictionary &dict, const bool writeToFile=true) | |
Construct from objectRegistry, prefix, fileName and read options from dictionary. More... | |
writeFile (const writeFile &wf) | |
Construct copy. More... | |
virtual | ~writeFile ()=default |
Destructor. More... | |
virtual bool | read (const dictionary &dict) |
Read. More... | |
virtual OFstream & | file () |
Return access to the file (if only 1) More... | |
virtual bool | writeToFile () const |
Flag to allow writing to file. More... | |
virtual bool | canWriteToFile () const |
Flag to allow writing to the file. More... | |
virtual bool | canResetFile () const |
Flag to allow resetting the file. More... | |
virtual bool | canWriteHeader () const |
Flag to allow writing the header. More... | |
virtual label | charWidth () const |
Return width of character stream output. More... | |
virtual void | writeCommented (Ostream &os, const string &str) const |
Write a commented string to stream. More... | |
virtual void | writeTabbed (Ostream &os, const string &str) const |
Write a tabbed string to stream. More... | |
virtual void | writeHeader (Ostream &os, const string &str) const |
Write a commented header to stream. More... | |
virtual void | writeCurrentTime (Ostream &os) const |
Write the current time to stream. More... | |
virtual void | writeBreak (Ostream &os) const |
Write a break marker to the stream. More... | |
template<class Type > | |
void | writeHeaderValue (Ostream &os, const string &property, const Type &value) const |
Write a (commented) header property and value pair. More... | |
template<class Type > | |
void | writeValue (Ostream &os, const Type &val) const |
Write a given value to stream with the space delimiter. More... | |
Additional Inherited Members | |
Public Types inherited from temperatureCoupledBase | |
enum | KMethodType { mtFluidThermo, mtSolidThermo, mtDirectionalSolidThermo, mtLookup, mtFunction } |
Type of supplied Kappa. More... | |
Static Public Member Functions inherited from mappedPatchFieldBase< scalar > | |
static const mappedPatchBase & | mapper (const fvPatch &p, const DimensionedField< scalar, volMesh > &iF) |
Check that patch is of correct type. More... | |
Static Public Attributes inherited from writeFile | |
static label | addChars = 8 |
Additional characters for writing. More... | |
Protected Member Functions inherited from mappedPatchFieldBase< scalar > | |
void | initRetrieveField (const objectRegistry &obr, const word ®ion, const word &patch, const labelListList &map, const word &fieldName, const Field< T > &fld) const |
Construct field from registered elements. More... | |
void | initRetrieveField (const word &fieldName, const Field< T > &fld) const |
Initialise field to retrieve (e.g. when value read from dictionary) More... | |
bool | storeAndRetrieveField (const word &fieldName, const label myComm, const labelListList &subMap, const label constructSize, const labelListList &constructMap, const labelListList &address, const scalarListList &weights, Field< T > &fld) const |
Helper : storeField and retrieveField and interpolate. Leaves fld. More... | |
void | storeField (const objectRegistry &obr, const word ®ion, const word &patch, const label myComm, const labelListList &procToMap, const word &fieldName, const Field< T > &fld) const |
Store elements of field onto (sub) registry. More... | |
bool | retrieveField (const bool allowUnset, const objectRegistry &obr, const word ®ion, const word &patch, const label myComm, const labelListList &procToMap, const word &fieldName, Field< T > &fld) const |
Construct field from registered elements. More... | |
Protected Member Functions inherited from writeFile | |
void | initStream (Ostream &os) const |
Initialise the output stream for writing. More... | |
fileName | baseFileDir () const |
Return the base directory for output. More... | |
fileName | baseTimeDir () const |
Return the base directory for the current time value. More... | |
fileName | filePath (const fileName &fName) const |
Return the full path for the supplied file name. More... | |
virtual autoPtr< OFstream > | newFile (const fileName &fName) const |
Return autoPtr to a new file using file name. More... | |
virtual autoPtr< OFstream > | newFileAtTime (const word &name, scalar timeValue) const |
Return autoPtr to a new file for a given time. More... | |
virtual autoPtr< OFstream > | newFileAtStartTime (const word &name) const |
Return autoPtr to a new file using the simulation start time. More... | |
virtual void | resetFile (const word &name) |
Reset internal file pointer to new file with new name. More... | |
Omanip< int > | valueWidth (const label offset=0) const |
Return the value width when writing to stream with optional offset. More... | |
void | operator= (const writeFile &)=delete |
No copy assignment. More... | |
virtual autoPtr< OFstream > | createFile (const word &name, scalar timeValue) const |
Deprecated(2022-09) Return autoPtr to a new file for a given time. More... | |
virtual autoPtr< OFstream > | createFile (const word &name) const |
Deprecated(2022-09) Return autoPtr to a new file using the simulation start time. 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 | alphaName_ |
Name of thermal diffusivity. More... | |
const word | alphaAniName_ |
Name of the non-isotropic alpha (for directional solidThermo) More... | |
autoPtr< PatchFunction1< scalar > > | kappaFunction1_ |
Function1 for kappa. More... | |
autoPtr< PatchFunction1< scalar > > | alphaFunction1_ |
Function1 for alpha. More... | |
Protected Attributes inherited from mappedPatchFieldBase< scalar > | |
const mappedPatchBase & | mapper_ |
Mapping engine. More... | |
const fvPatchField< scalar > & | patchField_ |
Underlying patch field. More... | |
word | fieldName_ |
Name of field to sample. More... | |
const bool | setAverage_ |
If true adjust the mapped field to maintain average value average_. More... | |
const scalar | average_ |
Average value the mapped field is adjusted to maintain if setAverage_ is set true. More... | |
word | interpolationScheme_ |
Interpolation scheme to use for nearestcell mode. More... | |
Protected Attributes inherited from writeFile | |
const objectRegistry & | fileObr_ |
Reference to the region objectRegistry. More... | |
const fileName | prefix_ |
Prefix. More... | |
word | fileName_ |
Name of file. More... | |
autoPtr< OFstream > | filePtr_ |
File pointer. More... | |
label | writePrecision_ |
Write precision. More... | |
bool | writeToFile_ |
Flag to enable/disable writing to file. More... | |
bool | updateHeader_ |
Flag to update the header, e.g. on mesh changes. Default is true. More... | |
bool | writtenHeader_ |
Flag to identify whether the header has been written. More... | |
bool | useUserTime_ |
Flag to use the specified user time, e.g. CA deg instead of seconds. Default = true. More... | |
scalar | startTime_ |
Start time value. More... | |
Static Protected Attributes inherited from temperatureCoupledBase | |
static const Enum< KMethodType > | KMethodTypeNames_ |
This boundary condition provides a coupled temperature condition between multiple mesh regions.
The regions are generally referred to as the:
The primary region creates the baffle region and evolves its energy equation either:
The thermodynamic properties of the baffle material are specified via dictionary entries on the master patch.
The underlying polyPatch on the primary region needs to be defined as a complete mappedWall. i.e:
type mappedWall; sampleMode nearestPatchFace; samplePatch <patchName>; sampleRegion <regionName>; coupleGroup <coupleGroupName>;
The /keyword{internal} is true when the thermal baffle is used on internal faces and the baffle is coupled on both sides (bottom and top).
If this baffle is used on a patch set internal = false. By default is true.
Property | Description | Required | Default value |
---|---|---|---|
Tnbr | name of the field | no | T |
qrNbr | name of the radiative flux in the nbr region | no | none |
qr | name of the radiative flux in this region | no | none |
thicknessLayers | inherited from temperatureCoupledBase | inherited | |
kappaLayers | inherited from temperatureCoupledBase | inherited | |
kappaMethod | inherited from temperatureCoupledBase | inherited | |
kappa | inherited from temperatureCoupledBase | inherited | |
thermalInertia | Add thermal inertia to wall node | no | false |
region | Name of the solid region | yes | |
active | Active | yes | |
internal | Is the baffle an internal regiion | no | true |
thermoType | Solid thermo type | yes | |
mixture | Mixture solid | yes | |
radiation | Radiation model in the solid | yes | |
extrudeModel | Extrude model | yes | |
nLayers | Number of cell across the ragion | yes | |
expansionRatio | Expansion ratio for the solid region | yes | |
columnCells | true for 1D or false for 3D region | yes | |
<masterPatchName> { type compressible::thermalBaffle; // Underlying coupled boundary condition Tnbr T; kappaMethod fluidThermo; // or solidThermo kappa none; qrNbr qr;//or none.Name of qr field on neighbourregion qr none;// or none.Name of qr field on localregion value uniform 300; // Baffle region name region baffleRegion; active yes; internal yes; // Solid thermo in solid region thermoType { type heSolidThermo; mixture pureMixture; transport constIso; thermo hConst; equationOfState rhoConst; specie specie; energy sensibleEnthalpy; } mixture { specie { molWeight 20; } transport { kappa 0.01; } thermodynamics { Hf 0; Cp 15; } density { rho 80; } } radiation { radiationModel opaqueSolid; absorptionEmissionModel none; scatterModel none; } // Extrude model for new region extrudeModel linearNormal; nLayers 50; expansionRatio 1; columnCells false; //3D or 1D linearNormalCoeffs { thickness 0.02; } }
If the thermal baffle is used on internal faces of the primary region, then the slave in this region is defined as :
Slave patch on primary region:
<slavePatchName> { type compressible::thermalBaffle; kappaMethod fluidThermo; kappa none; value uniform 300;
Patches on baffle region:
bottom { type compressible::thermalBaffle; kappaMethod solidThermo; kappa none; value uniform 300; } top { type compressible::thermalBaffle; kappaMethod solidThermo; kappa none; value uniform 300; }
Definition at line 306 of file thermalBaffleFvPatchScalarField.H.
thermalBaffleFvPatchScalarField | ( | const fvPatch & | p, |
const DimensionedField< scalar, volMesh > & | iF | ||
) |
Construct from patch and internal field.
Definition at line 37 of file thermalBaffleFvPatchScalarField.C.
thermalBaffleFvPatchScalarField | ( | const fvPatch & | p, |
const DimensionedField< scalar, volMesh > & | iF, | ||
const dictionary & | dict | ||
) |
Construct from patch, internal field and dictionary.
Definition at line 75 of file thermalBaffleFvPatchScalarField.C.
References dict, objectRegistry::foundObject(), Foam::New(), Foam::foamVersion::patch, regionName, and fvMesh::time().
thermalBaffleFvPatchScalarField | ( | const thermalBaffleFvPatchScalarField & | ptf, |
const fvPatch & | p, | ||
const DimensionedField< scalar, volMesh > & | iF, | ||
const fvPatchFieldMapper & | mapper | ||
) |
Construct by mapping given.
thermalBaffleFvPatchScalarField onto a new patch
Definition at line 52 of file thermalBaffleFvPatchScalarField.C.
thermalBaffleFvPatchScalarField | ( | const thermalBaffleFvPatchScalarField & | ptf, |
const DimensionedField< scalar, volMesh > & | iF | ||
) |
Construct as copy setting internal field reference.
Definition at line 117 of file thermalBaffleFvPatchScalarField.C.
TypeName | ( | "compressible::thermalBaffle" | ) |
Runtime type information.
|
inlinevirtual |
Return a clone.
Reimplemented from turbulentTemperatureRadCoupledMixedFvPatchScalarField.
Definition at line 419 of file thermalBaffleFvPatchScalarField.H.
References fvPatchField< Type >::Clone().
|
inlinevirtual |
Clone with an internal field reference.
Reimplemented from turbulentTemperatureRadCoupledMixedFvPatchScalarField.
Definition at line 428 of file thermalBaffleFvPatchScalarField.H.
References fvPatchField< Type >::Clone().
|
virtual |
Update the coefficients associated with the patch field.
Reimplemented from turbulentTemperatureRadCoupledMixedFvPatchScalarField.
Definition at line 229 of file thermalBaffleFvPatchScalarField.C.
References turbulentTemperatureRadCoupledMixedFvPatchScalarField::updateCoeffs().
|
virtual |
Write.
Reimplemented from turbulentTemperatureRadCoupledMixedFvPatchScalarField.
Definition at line 245 of file thermalBaffleFvPatchScalarField.C.
References dictionary::get(), os(), dictionary::subDict(), turbulentTemperatureRadCoupledMixedFvPatchScalarField::write(), and dictionary::writeEntry().