57 Foam::radiationCoupledBase::emissivityMethodTypeNames_;
65 const word& calculationType,
70 method_(emissivityMethodTypeNames_[calculationType]),
71 emissivity_(emissivity)
78 const word& calculationType,
84 method_(emissivityMethodTypeNames_[calculationType]),
85 emissivity_(emissivity, mapper)
96 method_(emissivityMethodTypeNames_.read(dict.
lookup(
"emissivityMode")))
102 if (!isA<mappedPatchBase>(patch_.patch()))
107 ) <<
"\n patch type '" << patch_.type()
108 <<
"' not type '" << mappedPatchBase::typeName <<
"'" 109 <<
"\n for patch " << patch_.name()
119 if (!dict.
found(
"emissivity"))
124 ) <<
"\n emissivity key does not exist for patch " 154 refCast<const mappedPatchBase>(patch_.patch());
161 "radiationProperties" 165 const fvMesh& nbrFvMesh = refCast<const fvMesh>(nbrMesh);
194 <<
"Unimplemented method " << method_ <<
endl 195 <<
"Please set 'emissivity' to one of " 196 << emissivityMethodTypeNames_.toc()
211 emissivity_.autoMap(m);
222 refCast<const radiationCoupledBase>(ptf);
230 os.
writeKeyword(
"emissivityMode") << emissivityMethodTypeNames_[method_]
232 emissivity_.writeEntry(
"emissivity", os);
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.
Ostream & endl(Ostream &os)
Add newline and flush stream.
A finiteVolume patch using a polyPatch and a fvBoundaryMesh.
const polyMesh & sampleMesh() const
Get the region mesh.
scalarField emissivity() const
Calculate corresponding emissivity field.
virtual tmp< volScalarField > e(const label bandI=0) const
Emission coefficient (net)
Abstract base class with a fat-interface to all derived classes covering all possible ways in which t...
const absorptionEmissionModel & absorptionEmission() const
Access to absorptionEmission model.
label size() const
Return number of elements in list.
Initialise the NamedEnum HashTable from the static list of names.
scalarField emissivity_
Emissivity.
void write(Ostream &) const
Write.
emissivityMethodType
Type of supplied emissivity.
A class for handling words, derived from string.
Field< scalar > scalarField
Specialisation of Field<T> for scalar.
Foam::fvPatchFieldMapper.
void distribute(List< Type > &lst) const
Wrapper around map/interpolate data distribution.
Determines a mapping between patch face centres and mesh cell or face centres and processors they're ...
bool found(const word &, bool recursive=false, bool patternMatch=true) const
Search dictionary for given keyword.
Top level model for radiation modelling.
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 polyPatch & samplePolyPatch() const
Get the patch on the region.
#define FatalIOErrorInFunction(ios)
Report an error message using Foam::FatalIOError.
Mesh data needed to do the Finite Volume discretisation.
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.
label index() const
Return the index of this patch in the boundaryMesh.
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.