41 inletOutletFvPatchScalarField(
p, iF)
43 this->phiName_ =
dict.lookupOrDefault<
word>(
"phi",
"phi");
45 this->refGrad() =
Zero;
46 this->valueFraction() = 0.0;
48 if (
dict.found(
"value"))
54 this->refValue() = *
this;
71 inletOutletFvPatchScalarField(ptf,
p, iF, mapper)
81 inletOutletFvPatchScalarField(tppsf, iF)
94 const scalar averagePsi
100 gSum(patch().magSf()*patchInternalField())
101 /
gSum(patch().magSf()),
108 refValue() = averagePsi;
110 inletOutletFvPatchScalarField::updateCoeffs();
118 writeEntryIfDifferent<word>(os,
"phi",
"phi", this->phiName_);
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...
const dimensionSet & dimensions() const
Return dimensions.
An Ostream is an abstract base class for all output systems (streams, files, token lists,...
A list of keywords followed by any number of values (e.g. words and numbers) or sub-dictionaries.
Abstract base class for field mapping.
Abstract base class with a fat-interface to all derived classes covering all possible ways in which t...
virtual void write(Ostream &) const
Write.
A finiteVolume patch using a polyPatch and a fvBoundaryMesh.
This boundary condition provides an outflow condition for scalars where the patch adjacent mean is ap...
virtual void write(Ostream &) const
Write.
virtual void updateCoeffs()
Update the coefficients associated with the patch field.
meanInletOutletFvPatchScalarField(const fvPatch &, const DimensionedField< scalar, fvMesh > &, const dictionary &)
Construct from patch, internal field and dictionary.
A class for handling words, derived from string.
makePatchTypeField(fvPatchScalarField, atmosphericBoundaryLayerTurbulentEpsilonFvPatchScalarField)
Type gSum(const UList< Type > &f, const label comm)
Field< scalar > scalarField
Specialisation of Field<T> for scalar.
void evaluate(GeometricField< Type, GeoMesh > &result, const Function1< Type > &func, const GeometricField< Type, GeoMesh > &x)
dimensioned< Type > min(const DimensionedField< Type, GeoMesh, PrimitiveField > &df)
void writeEntry(Ostream &os, const word &key, const DimensionedFieldFunction< DimensionedFieldType > &f)
dimensioned< Type > max(const DimensionedField< Type, GeoMesh, PrimitiveField > &df)