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 |
![]() | |
enum | KMethodType { mtFluidThermo, mtSolidThermo, mtDirectionalSolidThermo, mtLookup, mtFunction } |
Additional Inherited Members | |
![]() | |
const fvPatch & | patch_ |
const KMethodType | method_ |
const word | kappaName_ |
const word | alphaAniName_ |
const word | alphaName_ |
autoPtr< PatchFunction1< scalar > > | kappaFunction1_ |
autoPtr< PatchFunction1< scalar > > | alphaFunction1_ |
![]() | |
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.
filmPyrolysisRadiativeCoupledMixedFvPatchScalarField | ( | const fvPatch & | p, |
const DimensionedField< scalar, volMesh > & | iF | ||
) |
Definition at line 98 of file filmPyrolysisRadiativeCoupledMixedFvPatchScalarField.C.
filmPyrolysisRadiativeCoupledMixedFvPatchScalarField | ( | const fvPatch & | p, |
const DimensionedField< scalar, volMesh > & | iF, | ||
const dictionary & | dict | ||
) |
Definition at line 149 of file filmPyrolysisRadiativeCoupledMixedFvPatchScalarField.C.
References dict, Foam::exit(), Foam::FatalError, FatalErrorInFunction, dictionary::found(), fvPatchField::operator=(), p, and Foam::foamVersion::patch.
filmPyrolysisRadiativeCoupledMixedFvPatchScalarField | ( | const filmPyrolysisRadiativeCoupledMixedFvPatchScalarField & | psf, |
const fvPatch & | p, | ||
const DimensionedField< scalar, volMesh > & | iF, | ||
const fvPatchFieldMapper & | mapper | ||
) |
Definition at line 128 of file filmPyrolysisRadiativeCoupledMixedFvPatchScalarField.C.
filmPyrolysisRadiativeCoupledMixedFvPatchScalarField | ( | const filmPyrolysisRadiativeCoupledMixedFvPatchScalarField & | psf, |
const DimensionedField< scalar, volMesh > & | iF | ||
) |
Definition at line 202 of file filmPyrolysisRadiativeCoupledMixedFvPatchScalarField.C.
TypeName | ( | "filmPyrolysisRadiativeCoupledMixed" | ) |
|
inlinevirtual |
Definition at line 177 of file filmPyrolysisRadiativeCoupledMixedFvPatchScalarField.H.
|
inlinevirtual |
Definition at line 197 of file filmPyrolysisRadiativeCoupledMixedFvPatchScalarField.H.
|
virtual |
Implements temperatureCoupledBase.
Definition at line 222 of file filmPyrolysisRadiativeCoupledMixedFvPatchScalarField.C.
References temperatureCoupledBase::autoMap().
|
virtual |
Implements temperatureCoupledBase.
Definition at line 232 of file filmPyrolysisRadiativeCoupledMixedFvPatchScalarField.C.
References Foam::refCast(), and temperatureCoupledBase::rmap().
tmp<scalarField> K | ( | ) | const |
Referenced by filmPyrolysisRadiativeCoupledMixedFvPatchScalarField::updateCoeffs().
|
virtual |
Definition at line 249 of file filmPyrolysisRadiativeCoupledMixedFvPatchScalarField.C.
References temperatureCoupledBase::alpha(), GeometricField::boundaryField(), Foam::expressions::patchExpr::debug, fvPatch::deltaCoeffs(), mappedPatchBase::distribute(), Foam::endl(), Foam::exit(), Foam::FatalError, FatalErrorInFunction, Foam::gAverage(), Foam::gMax(), Foam::gMin(), Foam::gSum(), heatTransferModel::h(), thermoSingleLayer::htcw(), patchIdentifier::index(), 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(), Foam::refCast(), mappedPatchBase::sampleMesh(), mappedPatchBase::samplePolyPatch(), regionModel::toPrimary(), thermoSingleLayer::Ts(), Foam::type(), and Foam::Zero.
|
virtual |
Definition at line 412 of file filmPyrolysisRadiativeCoupledMixedFvPatchScalarField.C.
References os(), Foam::vtk::write(), temperatureCoupledBase::write(), Ostream::writeEntry(), and Ostream::writeEntryIfDifferent().
Copyright © 2011-2018 OpenFOAM | OPENFOAM® is a registered trademark of OpenCFD Ltd.