72 phiName_(
dict.getOrDefault<
word>(
"phi",
"phi"))
77 this->
refValue().assign(
"inletValue", dict,
p.size());
91 const inletOutletFvPatchField<Type>& ptf
121 const Field<scalar>& phip =
122 this->patch().template lookupPatchField<surfaceScalarField>(phiName_);
134 os.writeEntryIfDifferent<
word>(
"phi",
"phi", phiName_);
135 this->refValue().writeEntry(
"inletValue",
os);
150 this->valueFraction()*this->refValue()
151 + (1 - this->valueFraction())*ptf
Field with dimensions and associated with geometry type GeoMesh which is used to size the field and a...
Generic templated field type that is much like a Foam::List except that it is expected to hold numeri...
An Ostream is an abstract base class for all output systems (streams, files, token lists,...
A list of keyword definitions, which are a keyword followed by a number of values (eg,...
virtual void readDict(const dictionary &dict)
Read dictionary entries.
const fvPatch & patch() const noexcept
Return the patch.
bool updated() const noexcept
True if the boundary condition has already been updated.
A FieldMapper for finite-volume patch fields.
Abstract base class with a fat-interface to all derived classes covering all possible ways in which t...
virtual void write(Ostream &) const
Write.
void writeValueEntry(Ostream &os) const
Write *this field as a "value" entry.
virtual void updateCoeffs()
Update the coefficients associated with the patch field.
bool readValueEntry(const dictionary &dict, IOobjectOption::readOption readOpt=IOobjectOption::LAZY_READ)
Read the "value" entry into *this.
void extrapolateInternal()
Assign the patch field from the internal field.
A finiteVolume patch using a polyPatch and a fvBoundaryMesh.
This boundary condition provides a generic outflow condition, with specified inflow for the case of r...
virtual void write(Ostream &) const
Write.
inletOutletFvPatchField(const fvPatch &, const DimensionedField< Type, volMesh > &)
Construct from patch and internal field.
virtual void updateCoeffs()
Update the coefficients associated with the patch field.
word phiName_
Name of flux field.
This boundary condition provides a base class for 'mixed' type boundary conditions,...
mixedFvPatchField(const fvPatch &, const DimensionedField< Type, volMesh > &)
Construct from patch and internal field.
virtual Field< Type > & refGrad()
virtual Field< Type > & refValue()
virtual scalarField & valueFraction()
A class for handling words, derived from Foam::string.
OBJstream os(runTime.globalPath()/outputName)
dimensionedScalar neg(const dimensionedScalar &ds)
static constexpr const zero Zero
Global zero (0).