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...
#include <turbulentTemperatureCoupledBaffleMixedFvPatchScalarField.H>


Public Member Functions | |
| TypeName ("compressible::turbulentTemperatureCoupledBaffleMixed") | |
| Runtime type information. | |
| turbulentTemperatureCoupledBaffleMixedFvPatchScalarField (const fvPatch &, const DimensionedField< scalar, volMesh > &) | |
| Construct from patch and internal field. | |
| turbulentTemperatureCoupledBaffleMixedFvPatchScalarField (const fvPatch &, const DimensionedField< scalar, volMesh > &, const dictionary &) | |
| Construct from patch, internal field and dictionary. | |
| turbulentTemperatureCoupledBaffleMixedFvPatchScalarField (const turbulentTemperatureCoupledBaffleMixedFvPatchScalarField &, const fvPatch &, const DimensionedField< scalar, volMesh > &, const fvPatchFieldMapper &) | |
| Construct by mapping given. | |
| turbulentTemperatureCoupledBaffleMixedFvPatchScalarField (const turbulentTemperatureCoupledBaffleMixedFvPatchScalarField &) | |
| Construct as copy setting internal field reference. | |
| turbulentTemperatureCoupledBaffleMixedFvPatchScalarField (const turbulentTemperatureCoupledBaffleMixedFvPatchScalarField &, 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. | |
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. | |
| 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 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. | |
| Static Protected Attributes inherited from temperatureCoupledBase | |
| static const Enum< KMethodType > | KMethodTypeNames_ |
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
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 | |
thicknessLayer | single thickness of layer [m] | no | |
kappaLayer | corresponding thermal conductivity [W/m/K] | no | |
kappaMethod | inherited from temperatureCoupledBase | inherited | |
kappa | inherited from temperatureCoupledBase | inherited |
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);
kappaMethod lookup;
kappa kappa;
value uniform 300;
}
Needs to be on underlying mapped(Wall)FvPatch.
Definition at line 136 of file turbulentTemperatureCoupledBaffleMixedFvPatchScalarField.H.
| turbulentTemperatureCoupledBaffleMixedFvPatchScalarField | ( | const fvPatch & | p, |
| const DimensionedField< scalar, volMesh > & | iF ) |
Construct from patch and internal field.
Definition at line 37 of file turbulentTemperatureCoupledBaffleMixedFvPatchScalarField.C.
References mappedPatchFieldBase< scalar >::mappedPatchFieldBase(), mappedPatchFieldBase< scalar >::mapper(), p, temperatureCoupledBase::temperatureCoupledBase(), and Foam::Zero.
Referenced by rmap(), turbulentTemperatureCoupledBaffleMixedFvPatchScalarField(), turbulentTemperatureCoupledBaffleMixedFvPatchScalarField(), turbulentTemperatureCoupledBaffleMixedFvPatchScalarField(), TypeName(), and updateCoeffs().


| turbulentTemperatureCoupledBaffleMixedFvPatchScalarField | ( | const fvPatch & | p, |
| const DimensionedField< scalar, volMesh > & | iF, | ||
| const dictionary & | dict ) |
Construct from patch, internal field and dictionary.
// Store patch value as initial guess when running in database mode mappedPatchFieldBase<scalar>::initRetrieveField ( this->internalField().name(), *this ); mappedPatchFieldBase<scalar>::initRetrieveField ( this->internalField().name() + "_weights", this->patch().deltaCoeffs() );
Definition at line 84 of file turbulentTemperatureCoupledBaffleMixedFvPatchScalarField.C.
References dict, Foam::endl(), Foam::exit(), Foam::FatalError, FatalErrorInFunction, if(), Foam::isA(), mappedPatchFieldBase< scalar >::mappedPatchFieldBase(), mappedPatchFieldBase< scalar >::mapper(), IOobjectOption::MUST_READ, PatchFunction1< Type >::NewIfPresent(), p, temperatureCoupledBase::temperatureCoupledBase(), WarningInFunction, and Foam::Zero.

| 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 59 of file turbulentTemperatureCoupledBaffleMixedFvPatchScalarField.C.
References clone(), mappedPatchFieldBase< scalar >::mappedPatchFieldBase(), mappedPatchFieldBase< scalar >::mapper(), p, temperatureCoupledBase::temperatureCoupledBase(), and turbulentTemperatureCoupledBaffleMixedFvPatchScalarField().

| turbulentTemperatureCoupledBaffleMixedFvPatchScalarField | ( | const turbulentTemperatureCoupledBaffleMixedFvPatchScalarField & | wtcsf | ) |
Construct as copy setting internal field reference.
Definition at line 192 of file turbulentTemperatureCoupledBaffleMixedFvPatchScalarField.C.
References clone(), mappedPatchFieldBase< scalar >::mappedPatchFieldBase(), mappedPatchFieldBase< scalar >::mapper(), temperatureCoupledBase::temperatureCoupledBase(), and turbulentTemperatureCoupledBaffleMixedFvPatchScalarField().

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

| TypeName | ( | "compressible::turbulentTemperatureCoupledBaffleMixed" | ) |
Runtime type information.
References turbulentTemperatureCoupledBaffleMixedFvPatchScalarField().

|
inlinevirtual |
Return a clone.
Definition at line 238 of file turbulentTemperatureCoupledBaffleMixedFvPatchScalarField.H.
References fvPatchField< Type >::Clone().
Referenced by turbulentTemperatureCoupledBaffleMixedFvPatchScalarField(), turbulentTemperatureCoupledBaffleMixedFvPatchScalarField(), and turbulentTemperatureCoupledBaffleMixedFvPatchScalarField().


|
inlinevirtual |
Clone with an internal field reference.
Definition at line 246 of file turbulentTemperatureCoupledBaffleMixedFvPatchScalarField.H.
References fvPatchField< Type >::Clone().

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

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

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


|
virtual |
Update the coefficients associated with the patch field.
Definition at line 298 of file turbulentTemperatureCoupledBaffleMixedFvPatchScalarField.C.
References mappedPatchFieldBase< scalar >::distribute(), Foam::endl(), Foam::gAverage(), Foam::gMinMax(), Foam::gSum(), UPstream::incrMsgType(), patchIdentifier::index(), Foam::Info, kappa(), limits, mappedPatchFieldBase< Type >::mapper(), UPstream::msgType(), name, tmp< T >::ref(), Foam::refCast(), mappedPatchBase::sameWorld(), mappedPatchBase::sampleMesh(), mappedPatchBase::samplePatch(), mappedPatchBase::samplePolyPatch(), mappedPatchBase::sampleRegion(), turbulentTemperatureCoupledBaffleMixedFvPatchScalarField(), and Foam::Zero.

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

|
virtual |
Write.
Reimplemented from mappedPatchFieldBase< scalar >.
Definition at line 437 of file turbulentTemperatureCoupledBaffleMixedFvPatchScalarField.C.
References os(), mappedPatchFieldBase< Type >::write(), mixedFvPatchField< Type >::write(), and temperatureCoupledBase::write().
