46 mixedFvPatchScalarField(
p, iF),
51 valueFraction() = 0.0;
64 mixedFvPatchScalarField(ptf,
p, iF, mapper),
77 mixedFvPatchScalarField(
p, iF),
78 TName_(
dict.getOrDefault<
word>(
"T",
"T"))
80 if (!this->readValueEntry(
dict))
87 valueFraction() = 1.0;
98 mixedFvPatchScalarField(ptf),
110 mixedFvPatchScalarField(ptf, iF),
129 const auto& Tp = patch().lookupPatchField<
volScalarField>(TName_);
142 boundaryRadiation.emissivity(patch().index(), 0,
nullptr, &Tp)
147 const scalarField Ep(emissivity/(2.0*(scalar(2) - emissivity)));
150 valueFraction() = 1.0/(1.0 +
gamma*patch().deltaCoeffs()/Ep);
154 mixedFvPatchScalarField::updateCoeffs();
164 os.writeEntryIfDifferent<
word>(
"T",
"T", TName_);
Macros for easy insertion into run-time selection tables.
Field with dimensions and associated with geometry type GeoMesh which is used to size the field and a...
static FOAM_NO_DANGLING_REFERENCE const boundaryRadiationProperties & New(const fvMesh &mesh, Args &&... args)
An Ostream is an abstract base class for all output systems (streams, files, token lists,...
static int & msgType() noexcept
Message tag of standard messages.
static int incrMsgType(int val=1) noexcept
Increment the message tag for standard messages.
A list of keyword definitions, which are a keyword followed by a number of values (eg,...
A FieldMapper for finite-volume patch fields.
virtual void operator=(const UList< scalar > &)
A finiteVolume patch using a polyPatch and a fvBoundaryMesh.
virtual void write(Ostream &) const
Write.
virtual void write(Ostream &) const
Write.
virtual void updateCoeffs()
Update the coefficients associated with the patch field.
MarshakRadiationFvPatchScalarField(const fvPatch &, const DimensionedField< scalar, volMesh > &)
Construct from patch and internal field.
Boundary radiation properties holder.
A class for managing temporary objects.
A class for handling words, derived from Foam::string.
OBJstream os(runTime.globalPath()/outputName)
#define makePatchTypeField(PatchTypeField, typePatchTypeField)
Define a concrete fvPatchField type and add to run-time tables Example, (fvPatchScalarField,...
const dimensionedScalar sigma
Stefan-Boltzmann constant: default SI units: [W/m2/K4].
Namespace for radiation modelling.
GeometricField< scalar, fvPatchField, volMesh > volScalarField
Field< scalar > scalarField
Specialisation of Field<T> for scalar.
dimensionedScalar pow4(const dimensionedScalar &ds)
static constexpr const zero Zero
Global zero (0).
fvPatchField< scalar > fvPatchScalarField