Mixed boundary condition for temperature and radiation heat transfer, suitable for multiregion cases. The optional specification of thin thermal layer resistances can be made using the entries thicknessLayers and kappaLayers.
More...
#include <turbulentTemperatureRadCoupledMixedFvPatchScalarField.H>


Public Member Functions | |
| TypeName ("compressible::turbulentTemperatureRadCoupledMixed") | |
| Runtime type information. | |
| turbulentTemperatureRadCoupledMixedFvPatchScalarField (const fvPatch &, const DimensionedField< scalar, volMesh > &) | |
| Construct from patch and internal field. | |
| turbulentTemperatureRadCoupledMixedFvPatchScalarField (const fvPatch &, const DimensionedField< scalar, volMesh > &, const dictionary &) | |
| Construct from patch, internal field and dictionary. | |
| turbulentTemperatureRadCoupledMixedFvPatchScalarField (const turbulentTemperatureRadCoupledMixedFvPatchScalarField &, const fvPatch &, const DimensionedField< scalar, volMesh > &, const fvPatchFieldMapper &) | |
| Construct by mapping given turbulentTemperatureCoupledBaffleMixedFvPatchScalarField onto a new patch. | |
| turbulentTemperatureRadCoupledMixedFvPatchScalarField (const turbulentTemperatureRadCoupledMixedFvPatchScalarField &) | |
| Construct as copy. | |
| turbulentTemperatureRadCoupledMixedFvPatchScalarField (const turbulentTemperatureRadCoupledMixedFvPatchScalarField &, const DimensionedField< scalar, volMesh > &) | |
| Construct as copy setting internal field reference. | |
| virtual tmp< fvPatchField< scalar > > | clone () const |
| Return a clone. | |
| virtual tmp< fvPatchField< scalar > > | clone (const DimensionedField< scalar, volMesh > &iF) const |
| Clone with an internal field reference. | |
| virtual void | autoMap (const fvPatchFieldMapper &) |
| Map (and resize as needed) from self given a mapping object. | |
| virtual void | rmap (const fvPatchField< scalar > &, const labelList &) |
| Reverse map the given fvPatchField onto this fvPatchField. | |
| 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. | |
| virtual void | updateCoeffs () |
| Update the coefficients associated with the patch field. | |
| virtual void | manipulateMatrix (fvMatrix< scalar > &m, const label iMatrix, const direction cmpt) |
| Manipulate matrix. | |
| virtual void | write (Ostream &os) const |
| Write. | |
| 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. | |
| temperatureCoupledBase (const fvPatch &patch, const KMethodType method, const word &kappaName, const word &alphaName, const word &alphaAniName) | |
| Construct from patch, method type and field names. | |
| temperatureCoupledBase (const fvPatch &patch, const dictionary &dict) | |
| Construct from patch and dictionary. | |
| temperatureCoupledBase (const fvPatch &patch, const temperatureCoupledBase &base) | |
| Construct from patch and temperatureCoupledBase. | |
| temperatureCoupledBase (const temperatureCoupledBase &base) | |
| Copy construct. | |
| virtual | ~temperatureCoupledBase ()=default |
| Destructor. | |
| word | KMethod () const |
| Method to obtain K. | |
| const word & | kappaName () const noexcept |
| Name of thermal conductivity field. | |
| const word & | alphaName () const noexcept |
| Name of thermal diffusivity field. | |
| virtual tmp< scalarField > | alpha (const scalarField &Tp) const |
| Given patch temperature calculate corresponding alphaEff field. | |
| void | write (Ostream &os) const |
| Write. | |
| Public Member Functions inherited from mappedPatchFieldBase< scalar > | |
| const Foam::GeometricField< Type2, Foam::fvPatchField, Foam::volMesh > & | sampleField (const word &fieldName) const |
| mappedPatchFieldBase (const mappedPatchBase &mapper, const fvPatchField< scalar > &patchField, const word &fieldName, const bool setAverage, const scalar average, const word &interpolationScheme) | |
| Construct from components. | |
| virtual | ~mappedPatchFieldBase ()=default |
| Destructor. | |
| virtual tmp< Field< scalar > > | mappedField () const |
| Map sampleField onto *this patch. | |
| virtual tmp< Field< scalar > > | mappedInternalField () const |
| Map internal of sampleField onto *this patch. | |
| virtual tmp< scalarField > | mappedWeightField () const |
| Map optional weightField onto *this patch. Default is deltaCoeffs. | |
| void | distribute (const word &fieldName, Field< T > &newValues) const |
| Wrapper for mapDistribute::distribute that knows about dabase mapping. | |
| Public Member Functions inherited from writeFile | |
| writeFile (const objectRegistry &obr, const fileName &prefix, const word &name="undefined", const bool writeToFile=true, const string &ext=".dat") | |
| Construct from objectRegistry, prefix, fileName. | |
| writeFile (const objectRegistry &obr, const fileName &prefix, const word &name, const dictionary &dict, const bool writeToFile=true, const string &ext=".dat") | |
| Construct from objectRegistry, prefix, fileName and read options from dictionary. | |
| writeFile (const writeFile &wf) | |
| Construct copy. | |
| virtual | ~writeFile ()=default |
| Destructor. | |
| virtual bool | read (const dictionary &dict) |
| Read. | |
| virtual const string & | setExt (const string &ext) |
| Set extension. | |
| virtual OFstream & | file () |
| Return access to the file (if only 1). | |
| virtual bool | writeToFile () const |
| Flag to allow writing to file. | |
| virtual bool | canWriteToFile () const |
| Flag to allow writing to the file. | |
| virtual bool | canResetFile () const |
| Flag to allow resetting the file. | |
| virtual bool | canWriteHeader () const |
| Flag to allow writing the header. | |
| virtual label | charWidth () const |
| Return width of character stream output. | |
| virtual void | writeCommented (Ostream &os, const string &str) const |
| Write a commented string to stream. | |
| virtual void | writeTabbed (Ostream &os, const string &str) const |
| Write a tabbed string to stream. | |
| virtual void | writeHeader (Ostream &os, const string &str) const |
| Write a commented header to stream. | |
| virtual void | writeCurrentTime (Ostream &os) const |
| Write the current time to stream. | |
| virtual void | writeBreak (Ostream &os) const |
| Write a break marker to the stream. | |
| template<class Type> | |
| void | writeHeaderValue (Ostream &os, const string &property, const Type &value) const |
| Write a (commented) header property and value pair. | |
| template<class Type> | |
| void | writeValue (Ostream &os, const Type &val) const |
| Write a given value to stream with the space delimiter. | |
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. | |
| Static Public Attributes inherited from writeFile | |
| static label | addChars = 8 |
| Additional characters for writing. | |
| 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. | |
| 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. | |
| 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. | |
| 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. | |
| Protected Member Functions inherited from writeFile | |
| void | initStream (Ostream &os) const |
| Initialise the output stream for writing. | |
| fileName | baseFileDir () const |
| Return the base directory for output. | |
| fileName | baseTimeDir () const |
| Return the base directory for the current time value. | |
| fileName | filePath (const fileName &fName) const |
| Return the full path for the supplied file name. | |
| virtual autoPtr< OFstream > | newFile (const fileName &fName) const |
| Return autoPtr to a new file using file name. | |
| virtual autoPtr< OFstream > | newFileAtTime (const word &name, scalar timeValue) const |
| Return autoPtr to a new file for a given time. | |
| virtual autoPtr< OFstream > | newFileAtStartTime (const word &name) const |
| Return autoPtr to a new file using the simulation start time. | |
| virtual void | resetFile (const word &name) |
| Reset internal file pointer to new file with new name. | |
| Omanip< int > | valueWidth (const label offset=0) const |
| Return the value width when writing to stream with optional offset. | |
| void | operator= (const writeFile &)=delete |
| No copy assignment. | |
| virtual autoPtr< OFstream > | createFile (const word &name, scalar timeValue) const |
| Deprecated(2022-09) Return autoPtr to a new file for a given time. | |
| virtual autoPtr< OFstream > | createFile (const word &name) const |
| Deprecated(2022-09) Return autoPtr to a new file using the simulation start time. | |
| Protected Attributes inherited from temperatureCoupledBase | |
| const fvPatch & | patch_ |
| Underlying patch. | |
| const KMethodType | method_ |
| How to get K. | |
| const word | kappaName_ |
| Name of thermal conductivity field (if looked up from database). | |
| const word | alphaName_ |
| Name of thermal diffusivity. | |
| const word | alphaAniName_ |
| Name of the non-isotropic alpha (for directional solidThermo). | |
| autoPtr< PatchFunction1< scalar > > | kappaFunction1_ |
| Function1 for kappa. | |
| autoPtr< PatchFunction1< scalar > > | alphaFunction1_ |
| Function1 for alpha. | |
| Protected Attributes inherited from mappedPatchFieldBase< scalar > | |
| const mappedPatchBase & | mapper_ |
| Mapping engine. | |
| const fvPatchField< scalar > & | patchField_ |
| Underlying patch field. | |
| word | fieldName_ |
| Name of field to sample. | |
| const bool | setAverage_ |
| If true adjust the mapped field to maintain average value average_. | |
| const scalar | average_ |
| Average value the mapped field is adjusted to maintain if setAverage_ is set true. | |
| word | interpolationScheme_ |
| Interpolation scheme to use for nearestcell mode. | |
| Protected Attributes inherited from writeFile | |
| const objectRegistry & | fileObr_ |
| Reference to the region objectRegistry. | |
| const fileName | prefix_ |
| Prefix. | |
| word | fileName_ |
| Name of file. | |
| autoPtr< OFstream > | filePtr_ |
| File pointer. | |
| label | writePrecision_ |
| Write precision. | |
| bool | writeToFile_ |
| Flag to enable/disable writing to file. | |
| bool | updateHeader_ |
| Flag to update the header, e.g. on mesh changes. Default is true. | |
| bool | writtenHeader_ |
| Flag to identify whether the header has been written. | |
| bool | useUserTime_ |
| Flag to use the specified user time, e.g. CA deg instead of seconds. Default = true. | |
| scalar | startTime_ |
| Start time value. | |
| string | ext_ |
| File extension; default = .dat. | |
| Static Protected Attributes inherited from temperatureCoupledBase | |
| static const Enum< KMethodType > | KMethodTypeNames_ |
Mixed boundary condition for temperature and radiation heat transfer, suitable for multiregion cases. The optional specification of thin thermal layer resistances can be made using the entries thicknessLayers and kappaLayers.
The thermal conductivity kappa can be obtained from a variety of sources, as explained in the temperatureCoupledBase class.
<patchName>
{
// Mandatory entries
type compressible::turbulentTemperatureRadCoupledMixed;
// Optional entries
Tnbr <word>;
qrNbr <word>;
qr <word>;
logInterval <scalar>;
thermalInertia <bool>;
verbose <bool>;
prefix <word>;
// Conditional entries
// Option-1
thicknessLayers <scalarList>;
kappaLayers <scalarList>;
// Option-2
thicknessLayer <PatchFunction1<scalar>>;
kappaLayer <PatchFunction1<scalar>>;
// Inherited entries
kappaMethod <word>;
kappa <word>;
...
}
For example:
<patchName>
{
type compressible::turbulentTemperatureRadCoupledMixed;
Tnbr T;
qrNbr qr; // or none. Name of qr field on neighbour region
qr qr; // or none. Name of qr field on this region
thicknessLayers (0.1 0.2 0.3 0.4);
kappaLayers (1 2 3 4);
thermalInertia false/true;
kappaMethod lookup;
kappa kappa;
value uniform 300;
}
where the entries mean:
| Property | Description | Type | Reqd | Deflt |
|---|---|---|---|---|
type | Type name: compressible::turbulentTemperatureRadCoupledMixed | word | yes | - |
Tnbr | Name of the nbr temperature field | word | no | T |
qrNbr | Name of the radiative flux in the nbr region | word | no | none |
qr | Name of the radiative flux in this region | word | no | none |
logInterval | Log-file output frequency [s] | scalar | no | -1 |
thermalInertia | Flag to add thermal inertia to wall node | bool | no | false |
verbose | Flag to enable verbose output with extra fields | bool | no | false |
prefix | Name of output-field prefix (in verbose mode) | word | no | multiWorld |
thicknessLayers | List of thicknesses per layer [m] | scalarList | choice | - |
kappaLayers | List of thermal conductivites per layer [W/m/K] | scalarList | choice | - |
thicknessLayer | Single thickness of layer [m] | PatchFunction1<scalar> | choice | - |
kappaLayer | Corresponding thermal conductivity [W/m/K] | PatchFunction1<scalar> | choice | - |
The inherited entries are elaborated in:
mapped(Wall)FvPatch.Definition at line 238 of file turbulentTemperatureRadCoupledMixedFvPatchScalarField.H.
| turbulentTemperatureRadCoupledMixedFvPatchScalarField | ( | const fvPatch & | p, |
| const DimensionedField< scalar, volMesh > & | iF ) |
Construct from patch and internal field.
Definition at line 117 of file turbulentTemperatureRadCoupledMixedFvPatchScalarField.C.
References mappedPatchFieldBase< scalar >::mappedPatchFieldBase(), mappedPatchFieldBase< scalar >::mapper(), p, temperatureCoupledBase::temperatureCoupledBase(), and Foam::Zero.
Referenced by rmap(), turbulentTemperatureRadCoupledMixedFvPatchScalarField(), turbulentTemperatureRadCoupledMixedFvPatchScalarField(), turbulentTemperatureRadCoupledMixedFvPatchScalarField(), TypeName(), and updateCoeffs().


| turbulentTemperatureRadCoupledMixedFvPatchScalarField | ( | const fvPatch & | p, |
| const DimensionedField< scalar, volMesh > & | iF, | ||
| const dictionary & | dict ) |
Construct from patch, internal field and dictionary.
Definition at line 187 of file turbulentTemperatureRadCoupledMixedFvPatchScalarField.C.
References dict, Foam::exit(), Foam::FatalError, FatalErrorInFunction, if(), Foam::isA(), mappedPatchFieldBase< scalar >::mappedPatchFieldBase(), mappedPatchFieldBase< scalar >::mapper(), IOobjectOption::MUST_READ, Foam::name(), PatchFunction1< Type >::NewIfPresent(), p, temperatureCoupledBase::temperatureCoupledBase(), and Foam::Zero.

| turbulentTemperatureRadCoupledMixedFvPatchScalarField | ( | const turbulentTemperatureRadCoupledMixedFvPatchScalarField & | psf, |
| const fvPatch & | p, | ||
| const DimensionedField< scalar, volMesh > & | iF, | ||
| const fvPatchFieldMapper & | mapper ) |
Construct by mapping given turbulentTemperatureCoupledBaffleMixedFvPatchScalarField onto a new patch.
Definition at line 154 of file turbulentTemperatureRadCoupledMixedFvPatchScalarField.C.
References clone(), mappedPatchFieldBase< scalar >::mappedPatchFieldBase(), mappedPatchFieldBase< scalar >::mapper(), p, temperatureCoupledBase::temperatureCoupledBase(), and turbulentTemperatureRadCoupledMixedFvPatchScalarField().

| turbulentTemperatureRadCoupledMixedFvPatchScalarField | ( | const turbulentTemperatureRadCoupledMixedFvPatchScalarField & | psf | ) |
Construct as copy.
Definition at line 355 of file turbulentTemperatureRadCoupledMixedFvPatchScalarField.C.
References clone(), mappedPatchFieldBase< scalar >::mappedPatchFieldBase(), mappedPatchFieldBase< scalar >::mapper(), temperatureCoupledBase::temperatureCoupledBase(), and turbulentTemperatureRadCoupledMixedFvPatchScalarField().

| turbulentTemperatureRadCoupledMixedFvPatchScalarField | ( | const turbulentTemperatureRadCoupledMixedFvPatchScalarField & | psf, |
| const DimensionedField< scalar, volMesh > & | iF ) |
Construct as copy setting internal field reference.
Definition at line 324 of file turbulentTemperatureRadCoupledMixedFvPatchScalarField.C.
References clone(), mappedPatchFieldBase< scalar >::mappedPatchFieldBase(), mappedPatchFieldBase< scalar >::mapper(), temperatureCoupledBase::temperatureCoupledBase(), and turbulentTemperatureRadCoupledMixedFvPatchScalarField().

| TypeName | ( | "compressible::turbulentTemperatureRadCoupledMixed" | ) |
Runtime type information.
References turbulentTemperatureRadCoupledMixedFvPatchScalarField().

|
inlinevirtual |
Return a clone.
Reimplemented in thermalBaffleFvPatchScalarField.
Definition at line 420 of file turbulentTemperatureRadCoupledMixedFvPatchScalarField.H.
References fvPatchField< Type >::Clone().
Referenced by turbulentTemperatureRadCoupledMixedFvPatchScalarField(), turbulentTemperatureRadCoupledMixedFvPatchScalarField(), and turbulentTemperatureRadCoupledMixedFvPatchScalarField().


|
inlinevirtual |
Clone with an internal field reference.
Reimplemented in thermalBaffleFvPatchScalarField.
Definition at line 428 of file turbulentTemperatureRadCoupledMixedFvPatchScalarField.H.
References fvPatchField< Type >::Clone().

|
virtual |
Map (and resize as needed) from self given a mapping object.
Implements temperatureCoupledBase.
Definition at line 387 of file turbulentTemperatureRadCoupledMixedFvPatchScalarField.C.
References temperatureCoupledBase::autoMap(), and mappedPatchFieldBase< scalar >::mapper().

|
virtual |
Reverse map the given fvPatchField onto this fvPatchField.
Implements temperatureCoupledBase.
Definition at line 403 of file turbulentTemperatureRadCoupledMixedFvPatchScalarField.C.
References Foam::refCast(), temperatureCoupledBase::rmap(), and turbulentTemperatureRadCoupledMixedFvPatchScalarField().

|
virtual |
Given patch temperature calculate corresponding K field. Override temperatureCoupledBase::kappa to includes effect of any explicit kappaThickness.
Reimplemented from temperatureCoupledBase.
Definition at line 428 of file turbulentTemperatureRadCoupledMixedFvPatchScalarField.C.
References temperatureCoupledBase::kappa().
Referenced by updateCoeffs().


|
virtual |
Update the coefficients associated with the patch field.
Reimplemented in thermalBaffleFvPatchScalarField.
Definition at line 440 of file turbulentTemperatureRadCoupledMixedFvPatchScalarField.C.
References alpha, temperatureCoupledBase::alpha(), writeFile::canResetFile(), writeFile::canWriteHeader(), writeFile::canWriteToFile(), fvPatch::deltaCoeffs(), basicThermo::dictName, mappedPatchBase::distribute(), mappedPatchFieldBase< scalar >::distribute(), Foam::endl(), Foam::exit(), Foam::FatalError, FatalErrorInFunction, writeFile::file(), objectRegistry::findObject(), forAll, Foam::gAverage(), Foam::gMinMax(), Foam::gSum(), Foam::gWeightedAverage(), UPstream::incrMsgType(), patchIdentifier::index(), Foam::Info, kappa(), fvPatch::lookupPatchField(), Foam::mag(), mappedPatchFieldBase< Type >::mapper(), Foam::max(), MinMax< T >::max(), mesh, MinMax< T >::min(), UPstream::msgType(), name, Foam::nl, pp(), Foam::refCast(), writeFile::resetFile(), mappedPatchBase::sameWorld(), mappedPatchBase::sampleMesh(), mappedPatchBase::samplePatch(), mappedPatchBase::samplePolyPatch(), mappedPatchBase::sampleRegion(), List< T >::setSize(), UList< T >::size(), Foam::T(), token::TAB, turbulentTemperatureRadCoupledMixedFvPatchScalarField(), and Foam::Zero.
Referenced by thermalBaffleFvPatchScalarField::updateCoeffs().


Manipulate matrix.
Definition at line 771 of file turbulentTemperatureRadCoupledMixedFvPatchScalarField.C.
References Foam::abort(), Foam::FatalError, and FatalErrorInFunction.

|
virtual |
Write.
Reimplemented from mappedPatchFieldBase< scalar >.
Reimplemented in thermalBaffleFvPatchScalarField.
Definition at line 949 of file turbulentTemperatureRadCoupledMixedFvPatchScalarField.C.
References os(), writeFile::updateHeader_, writeFile::useUserTime_, mappedPatchFieldBase< Type >::write(), mixedFvPatchField< Type >::write(), temperatureCoupledBase::write(), writeFile::writePrecision_, and writeFile::writeToFile_.
Referenced by thermalBaffleFvPatchScalarField::write().

