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")))
138 "radiationProperties"
147 radiation.absorptionEmission().e()().boundaryField()
164 <<
"Unimplemented method " << method_ <<
endl
165 <<
"Please set 'emissivity' to one of "
166 << emissivityMethodTypeNames_.toc()
183 refCast<const radiationCoupledBase>(ptf);
195 refCast<const radiationCoupledBase>(ptf);
203 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....
Abstract base class for field mapping.
Mesh data needed to do the Finite Volume discretisation.
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.
Base class for fv patches that provide mapping between two fv patches.
const fvPatch & nbrFvPatch() const
Get the patch to map from.
static const mappedFvPatchBaseBase & getMap(const fvPatch &patch)
Cast the given fvPatch to a mappedFvPatchBaseBase. Handle errors.
const fvMesh & nbrMesh() const
Get the mesh for the region to map from.
const Type & lookupObject(const word &name) const
Lookup and return the object of the given Type and name.
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 fieldMapper &)
Map the given fvPatchField onto this fvPatchField.
virtual ~radiationCoupledBase()
Destructor.
scalarField emissivity_
Emissivity. Cached locally when looked up.
static const NamedEnum< emissivityMethodType, 2 > emissivityMethodTypeNames_
Names of emissivity methods.
emissivityMethodType
Emissivity methods.
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)
const unitConversion unitFraction