53 Foam::radiationCoupledBase::emissivityMethodTypeNames_;
61 const word& calculationType,
66 method_(emissivityMethodTypeNames_[calculationType]),
67 emissivity_(emissivity)
74 const word& calculationType,
80 method_(emissivityMethodTypeNames_[calculationType]),
81 emissivity_(emissivity, mapper)
92 method_(emissivityMethodTypeNames_.read(dict.
lookup(
"emissivityMode")))
98 if (!isA<mappedPatchBase>(patch_.patch()))
103 ) <<
"\n patch type '" << patch_.type()
104 <<
"' not type '" << mappedPatchBase::typeName <<
"'" 105 <<
"\n for patch " << patch_.name()
115 if (!dict.
found(
"emissivity"))
120 ) <<
"\n emissivity key does not exist for patch " 126 emissivity_ =
scalarField(
"emissivity", dict, patch_.size());
150 refCast<const mappedPatchBase>(patch_.patch());
157 "radiationProperties" 160 const fvMesh& nbrFvMesh = refCast<const fvMesh>(nbrMesh);
191 <<
"Unimplemented method " << method_ <<
endl 192 <<
"Please set 'emissivity' to one of " 193 << emissivityMethodTypeNames_.toc()
208 emissivity_.autoMap(m);
219 refCast<const radiationCoupledBase>(ptf);
227 os.
writeKeyword(
"emissivityMode") << emissivityMethodTypeNames_[method_]
229 emissivity_.writeEntry(
"emissivity", os);
bool found(const word &, bool recursive=false, bool patternMatch=true) const
Search dictionary for given keyword.
Radiation for solid opaque solids - does nothing to energy equation source terms (returns zeros) but ...
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.
scalarField emissivity_
Emissivity.
emissivityMethodType
Type of supplied emissivity.
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.
Ostream & writeKeyword(const keyType &)
Write the keyword followed by an appropriate indentation.
const absorptionEmissionModel & absorptionEmission() const
Access to absorptionEmission model.
void distribute(List< Type > &lst) const
Wrapper around map/interpolate data distribution.
virtual tmp< volScalarField > e(const label bandI=0) const
Emission coefficient (net)
#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.
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.
autoPtr< radiation::radiationModel > radiation(radiation::radiationModel::New(T))
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.