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")))
101 if (!isA<mappedPatchBase>(patch_.patch()))
106 ) <<
"\n patch type '" << patch_.type()
107 <<
"' not type '" << mappedPatchBase::typeName <<
"'" 108 <<
"\n for patch " << patch_.name()
118 if (!dict.
found(
"emissivity"))
123 ) <<
"\n emissivity key does not exist for patch " 129 emissivity_ =
scalarField(
"emissivity", dict, patch_.size());
153 refCast<const mappedPatchBase>(patch_.patch());
160 "radiationProperties" 163 const fvMesh& nbrFvMesh = refCast<const fvMesh>(nbrMesh);
193 <<
"Unimplemented method " << method_ <<
endl 194 <<
"Please set 'emissivity' to one of " 195 << emissivityMethodTypeNames_.toc()
207 m(emissivity_, emissivity_);
218 refCast<const radiationCoupledBase>(ptf);
230 refCast<const radiationCoupledBase>(ptf);
238 writeEntry(os,
"emissivityMode", emissivityMethodTypeNames_[method_]);
bool found(const word &, bool recursive=false, bool patternMatch=true) const
Search dictionary for given keyword.
errorManipArg< error, int > exit(error &err, const int errNo=1)
A list of keyword definitions, which are a keyword followed by any number of values (e...
#define FatalErrorInFunction
Report an error message using Foam::FatalError.
const polyMesh & sampleMesh() const
Get the region mesh.
Ostream & endl(Ostream &os)
Add newline and flush stream.
A finiteVolume patch using a polyPatch and a fvBoundaryMesh.
Abstract base class with a fat-interface to all derived classes covering all possible ways in which t...
scalarField emissivity() const
Calculate corresponding emissivity field.
Initialise the NamedEnum HashTable from the static list of names.
virtual tmp< volScalarField > e(const label bandI=0) const
Emission coefficient (net)
Radiation for solid opaque solids - does nothing to energy equation source terms (returns zeros) but ...
scalarField emissivity_
Emissivity.
emissivityMethodType
Type of supplied emissivity.
const radiationModels::absorptionEmissionModel & absorptionEmission() const
Access to absorptionEmission model.
A class for handling words, derived from string.
Field< scalar > scalarField
Specialisation of Field<T> for scalar.
void write(Ostream &) const
Write.
Foam::fvPatchFieldMapper.
Determines a mapping between patch face centres and mesh cell or face centres and processors they're ...
Common functions to emissivity. It gets supplied from lookup into a dictionary or calculated by the s...
An Ostream is an abstract base class for all output systems (streams, files, token lists...
defineTypeNameAndDebug(combustionModel, 0)
virtual void rmap(const fvPatchScalarField &, const labelList &)
Reverse map the given fvPatchField onto this fvPatchField.
void writeEntry(Ostream &os, const HashTable< T, Key, Hash > &ht)
void distribute(List< Type > &lst) const
Wrapper around map/interpolate data distribution.
#define FatalIOErrorInFunction(ios)
Report an error message using Foam::FatalIOError.
Mesh data needed to do the Finite Volume discretisation.
label index() const
Return the index of this patch in the boundaryMesh.
autoPtr< radiationModel > radiation(radiationModel::New(T))
virtual ~radiationCoupledBase()
Destructor.
virtual void autoMap(const fvPatchFieldMapper &)
Map (and resize as needed) from self given a mapping object.
Mesh consisting of general polyhedral cells.
const polyPatch & samplePolyPatch() const
Get the patch on the region.
virtual void reset(const fvPatchScalarField &)
Reset the fvPatchField to the given fvPatchField.
radiationCoupledBase(const fvPatch &patch, const word &calculationMethod, const scalarField &emissivity)
Construct from patch, emissivity mode and emissivity.
ITstream & lookup(const word &, bool recursive=false, bool patternMatch=true) const
Find and return an entry data stream.