53Foam::radiation::localDensityAbsorptionEmission::alpha(word alphaName)
const
60 <<
"Unable to retrieve density field " << alphaName <<
" from "
61 <<
"database. Available objects:" <<
mesh_.sortedNames()
79 alphaNames_(coeffsDict_.
lookup(
"alphaNames")),
80 aCoeff_(coeffsDict_.
lookup(
"aCoeff")),
81 eCoeff_(coeffsDict_.
lookup(
"eCoeff")),
82 ECoeff_(coeffsDict_.
lookup(
"ECoeff"))
103 a +=
max(
alpha(alphaNames_[i]), scalar(0))*aPhase;
110Foam::tmp<Foam::volScalarField>
125 e +=
max(
alpha(alphaNames_[i]), scalar(0))*ePhase;
132Foam::tmp<Foam::volScalarField>
154 E +=
max(
alpha(alphaNames_[i]), scalar(0))*EPhase;
Macros for easy insertion into run-time selection tables.
#define addToRunTimeSelectionTable(baseType, thisType, argNames)
Add to construction table with typeName as the key.
static tmp< GeometricField< scalar, fvPatchField, volMesh > > New(const word &name, IOobjectOption::registerOption regOpt, const Mesh &mesh, const dimensionSet &dims, const word &patchFieldType=fvPatchField< scalar >::calculatedType())
@ NO_REGISTER
Do not request registration (bool: false).
Model to supply absorption and emission coefficients for radiation modelling.
const fvMesh & mesh_
Reference to the fvMesh.
virtual tmp< volScalarField > a(const label bandI=0) const
Absorption coefficient (net).
Constant radiation absorption and emission coefficients for continuous phase.
tmp< volScalarField > eCont(const label bandI=0) const
Emission coefficient for continuous phase.
tmp< volScalarField > ECont(const label bandI=0) const
Emission contribution for continuous phase.
localDensityAbsorptionEmission(const dictionary &dict, const fvMesh &mesh)
Construct from components.
tmp< volScalarField > aCont(const label bandI=0) const
Absorption coefficient for continuous phase.
Lookup type of boundary radiation properties.
A class for managing temporary objects.
#define defineTypeNameAndDebug(Type, DebugSwitch)
Define the typeName and debug information.
#define FatalErrorInFunction
Report an error message using Foam::FatalError.
Namespace for radiation modelling.
label max(const labelHashSet &set, label maxValue=labelMin)
Find the max value in labelHashSet, optionally limited by second argument.
const dimensionSet dimless
Dimensionless.
const dimensionSet dimLength(0, 1, 0, 0, 0, 0, 0)
dimensionedScalar pow3(const dimensionedScalar &ds)
const dimensionSet dimTime(0, 0, 1, 0, 0, 0, 0)
GeometricField< scalar, fvPatchField, volMesh > volScalarField
Field< scalar > scalarField
Specialisation of Field<T> for scalar.
const word GlobalIOList< Tuple2< scalar, vector > >::typeName("scalarVectorTable")
static constexpr const zero Zero
Global zero (0).
error FatalError
Error stream (stdout output on all processes), with additional 'FOAM FATAL ERROR' header text and sta...
dimensionedSphericalTensor inv(const dimensionedSphericalTensor &dt)
dimensioned< scalar > dimensionedScalar
Dimensioned scalar obtained from generic dimensioned type.
errorManipArg< error, int > exit(error &err, const int errNo=1)
const dimensionSet dimMass(1, 0, 0, 0, 0, 0, 0)
#define forAll(list, i)
Loop across all elements in list.