56 > Foam::radiationCoupledBase::emissivityMethodTypeNames_;
64 const word& calculationType,
69 method_(emissivityMethodTypeNames_[calculationType]),
70 emissivity_(emissivity)
77 const word& calculationType,
83 method_(emissivityMethodTypeNames_[calculationType]),
84 emissivity_(mapper(emissivity))
95 method_(emissivityMethodTypeNames_.
read(
dict.lookup(
"emissivityMode")))
137 "radiationProperties"
140 const fvMesh& nbrFvMesh = refCast<const fvMesh>(nbrMesh);
151 radiation.absorptionEmission().e()().boundaryField()
168 <<
"Unimplemented method " << method_ <<
endl
169 <<
"Please set 'emissivity' to one of "
170 << emissivityMethodTypeNames_.toc()
187 refCast<const radiationCoupledBase>(ptf);
199 refCast<const radiationCoupledBase>(ptf);
207 writeEntry(os,
"emissivityMode", emissivityMethodTypeNames_[method_]);
Initialise the NamedEnum HashTable from the static list of names.
An Ostream is an abstract base class for all output systems (streams, files, token lists,...
A list of keyword definitions, which are a keyword followed by any number of values (e....
Mesh data needed to do the Finite Volume discretisation.
Foam::fvPatchFieldMapper.
Abstract base class with a fat-interface to all derived classes covering all possible ways in which t...
A finiteVolume patch using a polyPatch and a fvBoundaryMesh.
virtual label size() const
Return size.
label index() const
Return the index of this patch in the fvBoundaryMesh.
Engine which provides mapping between two patches.
const polyPatch & nbrPolyPatch() const
Get the patch to map from.
static const mappedPatchBase & getMap(const polyPatch &patch)
Cast the given polyPatch to a mappedPatchBase. Handle errors.
const polyMesh & nbrMesh() const
Get the mesh for the region to map from.
tmp< Field< Type > > fromNeighbour(const Field< Type > &nbrFld) const
Map/interpolate the neighbour patch field to this patch.
const Type & lookupObject(const word &name) const
Lookup and return the object of the given Type and name.
label index() const
Return the index of this patch in the boundaryMesh.
Mesh consisting of general polyhedral cells.
Common functions to emissivity. It gets supplied from lookup into a dictionary or calculated by the s...
radiationCoupledBase(const fvPatch &patch, const word &calculationMethod, const scalarField &emissivity)
Construct from patch, emissivity mode and emissivity.
void write(Ostream &) const
Write.
virtual void reset(const fvPatchScalarField &)
Reset the fvPatchField to the given fvPatchField.
tmp< scalarField > emissivity() const
Calculate corresponding emissivity field.
virtual void map(const fvPatchScalarField &, const fvPatchFieldMapper &)
Map the given fvPatchField onto this fvPatchField.
virtual ~radiationCoupledBase()
Destructor.
scalarField emissivity_
Emissivity.
emissivityMethodType
Type of supplied emissivity.
const emissivityMethodType method_
How to get emissivity.
Radiation for solid opaque solids - does nothing to energy equation source terms (returns zeros) but ...
A class for managing temporary objects.
A class for handling words, derived from string.
autoPtr< radiationModel > radiation(radiationModel::New(T))
#define FatalErrorInFunction
Report an error message using Foam::FatalError.
errorManipArg< error, int > exit(error &err, const int errNo=1)
bool read(const char *, int32_t &)
Ostream & endl(Ostream &os)
Add newline and flush stream.
Field< scalar > scalarField
Specialisation of Field<T> for scalar.
void writeEntry(Ostream &os, const HashTable< T, Key, Hash > &ht)
defineTypeNameAndDebug(combustionModel, 0)