44 wallAbsorptionEmissionModel,
54 const Foam::fvMesh& Foam::radiation::solidAbsorption::nbrRegion()
const 56 const mappedPatchBase& mpp = refCast<const mappedPatchBase>(
pp_);
57 return (refCast<const fvMesh>(mpp.sampleMesh()));
61 Foam::label Foam::radiation::solidAbsorption::nbrPatchIndex()
const 63 const mappedPatchBase& mpp = refCast<const mappedPatchBase>(pp_);
64 return (mpp.samplePolyPatch().index());
78 if (!isA<mappedPatchBase>(
pp))
81 <<
"\n patch type '" <<
pp.type()
82 <<
"' not type '" << mappedPatchBase::typeName <<
"'" 83 <<
"\n for patch " <<
pp.name()
108 const fvMesh& nbrMesh = nbrRegion();
113 "radiationProperties" 145 return a(bandI,
nullptr,
nullptr)()[faceI];
160 const fvMesh& nbrMesh = nbrRegion();
165 "radiationProperties" 197 return e(bandI,
nullptr,
nullptr)()[faceI];
203 const fvMesh& nbrMesh = nbrRegion();
208 "radiationProperties" 211 return (
radiation.absorptionEmission().nBands());
Based class for wall absorption emission models.
const Type & lookupObject(const word &name, const bool recursive=false) const
Lookup and return const reference to the object of the given Type. Fatal if not found or the wrong ty...
tmp< scalarField > a(const label bandI=0, const vectorField *incomingDirection=nullptr, const scalarField *T=nullptr) const
absorptivity coefficient
static int incrMsgType(int val=1) noexcept
Increment the message tag for standard messages.
virtual ~solidAbsorption()
Destructor.
A list of keyword definitions, which are a keyword followed by a number of values (eg...
#define FatalErrorInFunction
Report an error message using Foam::FatalError.
defineTypeNameAndDebug(cloudAbsorptionEmission, 0)
static int & msgType() noexcept
Message tag of standard messages.
solidAbsorption(const dictionary &dict, const polyPatch &pp)
Construct from components.
Macros for easy insertion into run-time selection tables.
label nBands() const
Number of bands.
const dimensionedScalar e
Elementary charge.
static tmp< T > New(Args &&... args)
Construct tmp with forwarding arguments.
Determines a mapping between patch face centres and mesh cell or face centres and processors they're ...
Top level model for radiation modelling.
errorManip< error > abort(error &err)
A Vector of values with scalar precision, where scalar is float/double depending on the compilation f...
const polyPatch & pp_
Reference to the polyPatch.
void T(FieldField< Field, Type > &f1, const FieldField< Field, Type > &f2)
tmp< scalarField > e(const label bandI=0, const vectorField *incomingDirection=nullptr, const scalarField *T=nullptr) const
Return emission coefficient.
void distribute(List< Type > &lst) const
Wrapper around map/interpolate data distribution.
Mesh data needed to do the Finite Volume discretisation.
addToRunTimeSelectionTable(absorptionEmissionModel, cloudAbsorptionEmission, dictionary)
A class for managing temporary objects.
A patch is a list of labels that address the faces in the global face list.
autoPtr< radiation::radiationModel > radiation(radiation::radiationModel::New(T))
uindirectPrimitivePatch pp(UIndirectList< face >(mesh.faces(), faceLabels), mesh.points())
IOerror FatalIOError
Error stream (stdout output on all processes), with additional 'FOAM FATAL IO ERROR' header text and ...