Mixed boundary condition for temperature, to be used in the flow and pyrolysis regions when a film region model is used. More...
Public Types | |
typedef Foam::regionModels::surfaceFilmModels::thermoSingleLayer | filmModelType |
typedef Foam::regionModels::pyrolysisModels::pyrolysisModel | pyrolysisModelType |
typedef filmPyrolysisRadiativeCoupledMixedFvPatchScalarField | myType |
Public Types inherited from temperatureCoupledBase | |
enum | KMethodType { mtFluidThermo, mtSolidThermo, mtDirectionalSolidThermo, mtLookup, mtFunction } |
Type of supplied Kappa. More... | |
Public Member Functions | |
TypeName ("filmPyrolysisRadiativeCoupledMixed") | |
Runtime type information. More... | |
filmPyrolysisRadiativeCoupledMixedFvPatchScalarField (const fvPatch &, const DimensionedField< scalar, volMesh > &) | |
Construct from patch and internal field. More... | |
filmPyrolysisRadiativeCoupledMixedFvPatchScalarField (const fvPatch &, const DimensionedField< scalar, volMesh > &, const dictionary &) | |
Construct from patch, internal field and dictionary. More... | |
filmPyrolysisRadiativeCoupledMixedFvPatchScalarField (const filmPyrolysisRadiativeCoupledMixedFvPatchScalarField &, const fvPatch &, const DimensionedField< scalar, volMesh > &, const fvPatchFieldMapper &) | |
Construct by mapping given. More... | |
filmPyrolysisRadiativeCoupledMixedFvPatchScalarField (const filmPyrolysisRadiativeCoupledMixedFvPatchScalarField &, 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 | 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... | |
tmp< scalarField > | K () const |
Get corresponding K field. 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 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 > | kappa (const scalarField &Tp) const |
Given patch temperature calculate corresponding K 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... | |
Additional Inherited Members | |
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... | |
Static Protected Attributes inherited from temperatureCoupledBase | |
static const Enum< KMethodType > | KMethodTypeNames_ |
Mixed boundary condition for temperature, to be used in the flow and pyrolysis regions when a film region model is used.
myInterfacePatchName { type filmPyrolysisRadiativeCoupledMixed; Tnbr T; kappaMethod fluidThermo; kappa none; qr qr; filmDeltaDry 0.0; filmDeltaWet 3e-4; value $internalField; }
Needs to be on underlying mapped(Wall)FvPatch. It calculates local field as:
ratio = (filmDelta - filmDeltaDry)/(filmDeltaWet - filmDeltaDry)
when ratio = 1 is considered wet and the film temperature is fixed at the wall. If ratio = 0 (dry) it emulates the normal radiative solid BC.
In between ratio 0 and 1 the gradient and value contributions are weighted using the ratio field in the following way:
qConv = ratio*htcwfilm*(Tfilm - *this); qRad = (1.0 - ratio)*qr;
Then the solid can gain or loose energy through radiation or conduction towards the film.
Notes:
kappaMethod
and kappa
are inherited from temperatureCoupledBase.Definition at line 95 of file filmPyrolysisRadiativeCoupledMixedFvPatchScalarField.H.
Definition at line 103 of file filmPyrolysisRadiativeCoupledMixedFvPatchScalarField.H.
Definition at line 106 of file filmPyrolysisRadiativeCoupledMixedFvPatchScalarField.H.
Definition at line 108 of file filmPyrolysisRadiativeCoupledMixedFvPatchScalarField.H.
filmPyrolysisRadiativeCoupledMixedFvPatchScalarField | ( | const fvPatch & | p, |
const DimensionedField< scalar, volMesh > & | iF | ||
) |
Construct from patch and internal field.
Definition at line 104 of file filmPyrolysisRadiativeCoupledMixedFvPatchScalarField.C.
filmPyrolysisRadiativeCoupledMixedFvPatchScalarField | ( | const fvPatch & | p, |
const DimensionedField< scalar, volMesh > & | iF, | ||
const dictionary & | dict | ||
) |
Construct from patch, internal field and dictionary.
Definition at line 148 of file filmPyrolysisRadiativeCoupledMixedFvPatchScalarField.C.
References dict, Foam::exit(), Foam::FatalError, FatalErrorInFunction, IOobjectOption::MUST_READ, IOobject::name(), p, and Foam::foamVersion::patch.
filmPyrolysisRadiativeCoupledMixedFvPatchScalarField | ( | const filmPyrolysisRadiativeCoupledMixedFvPatchScalarField & | psf, |
const fvPatch & | p, | ||
const DimensionedField< scalar, volMesh > & | iF, | ||
const fvPatchFieldMapper & | mapper | ||
) |
Construct by mapping given.
turbulentTemperatureCoupledBaffleMixedFvPatchScalarField onto a new patch
Definition at line 127 of file filmPyrolysisRadiativeCoupledMixedFvPatchScalarField.C.
filmPyrolysisRadiativeCoupledMixedFvPatchScalarField | ( | const filmPyrolysisRadiativeCoupledMixedFvPatchScalarField & | psf, |
const DimensionedField< scalar, volMesh > & | iF | ||
) |
Construct as copy setting internal field reference.
Definition at line 198 of file filmPyrolysisRadiativeCoupledMixedFvPatchScalarField.C.
TypeName | ( | "filmPyrolysisRadiativeCoupledMixed" | ) |
Runtime type information.
|
inlinevirtual |
Return a clone.
Definition at line 220 of file filmPyrolysisRadiativeCoupledMixedFvPatchScalarField.H.
References fvPatchField< Type >::Clone().
|
inlinevirtual |
Clone with an internal field reference.
Definition at line 229 of file filmPyrolysisRadiativeCoupledMixedFvPatchScalarField.H.
References fvPatchField< Type >::Clone().
|
virtual |
Map (and resize as needed) from self given a mapping object.
Implements temperatureCoupledBase.
Definition at line 218 of file filmPyrolysisRadiativeCoupledMixedFvPatchScalarField.C.
References temperatureCoupledBase::autoMap().
|
virtual |
Reverse map the given fvPatchField onto this fvPatchField.
Implements temperatureCoupledBase.
Definition at line 228 of file filmPyrolysisRadiativeCoupledMixedFvPatchScalarField.C.
References temperatureCoupledBase::rmap().
tmp<scalarField> K | ( | ) | const |
Get corresponding K field.
Referenced by filmPyrolysisRadiativeCoupledMixedFvPatchScalarField::updateCoeffs().
|
virtual |
Update the coefficients associated with the patch field.
Definition at line 241 of file filmPyrolysisRadiativeCoupledMixedFvPatchScalarField.C.
References temperatureCoupledBase::alpha(), boundary, GeometricField< Type, PatchField, GeoMesh >::boundaryField(), Foam::ensightOutput::debug, kinematicSingleLayer::delta(), fvPatch::deltaCoeffs(), Foam::endl(), Foam::exit(), Foam::FatalError, FatalErrorInFunction, Foam::gAverage(), Foam::gMax(), Foam::gMin(), Foam::gSum(), heatTransferModel::h(), thermoSingleLayer::htcw(), fvPatch::index(), Foam::Info, filmPyrolysisRadiativeCoupledMixedFvPatchScalarField::K(), temperatureCoupledBase::kappa(), fvPatch::lookupPatchField(), regionModel::mapRegionPatchField(), Foam::max(), mesh, Foam::min(), fvPatch::name(), fvMesh::name(), IOobject::name(), regionModel::nbrCoupledPatchID(), Foam::nl, Foam::foamVersion::patch, regionModel::primaryMesh(), regionModel::toPrimary(), thermoSingleLayer::Ts(), Foam::type(), and Foam::Zero.
|
virtual |
Write.
Definition at line 421 of file filmPyrolysisRadiativeCoupledMixedFvPatchScalarField.C.
References os(), temperatureCoupledBase::write(), mixedFvPatchField< Type >::write(), Ostream::writeEntry(), and Ostream::writeEntryIfDifferent().