59 phiName_(ptf.phiName_)
72 phiName_(
dict.getOrDefault<
word>(
"phi",
"phi"))
77 this->
refValue().assign(
"outletValue", dict,
p.size());
91 const outletInletFvPatchField<Type>& ptf
95 phiName_(ptf.phiName_)
107 phiName_(ptf.phiName_)
121 const Field<scalar>& phip =
122 this->
patch().template lookupPatchField<surfaceScalarField>(phiName_);
124 this->valueFraction() =
pos0(phip);
135 this->refValue().writeEntry(
"outletValue",
os);
bool readValueEntry(const dictionary &dict, IOobjectOption::readOption readOpt=IOobjectOption::LAZY_READ)
Read the "value" entry into *this.
A list of keyword definitions, which are a keyword followed by a number of values (eg...
A finiteVolume patch using a polyPatch and a fvBoundaryMesh.
This boundary condition provides a base class for 'mixed' type boundary conditions, i.e. conditions that mix fixed value and patch-normal gradient conditions.
void extrapolateInternal()
Assign the patch field from the internal field.
void writeValueEntry(Ostream &os) const
Write *this field as a "value" entry.
virtual void write(Ostream &) const
Write.
virtual void readDict(const dictionary &dict)
Read dictionary entries.
virtual Field< Type > & refValue()
outletInletFvPatchField(const fvPatch &, const DimensionedField< Type, volMesh > &)
Construct from patch and internal field.
A class for handling words, derived from Foam::string.
virtual scalarField & valueFraction()
A FieldMapper for finite-volume patch fields.
Ostream & writeEntryIfDifferent(const word &key, const T &value1, const T &value2)
Write a keyword/value entry only when the two values differ.
An Ostream is an abstract base class for all output systems (streams, files, token lists...
dimensionedScalar pos0(const dimensionedScalar &ds)
OBJstream os(runTime.globalPath()/outputName)
virtual void write(Ostream &) const
Write.
virtual void updateCoeffs()
Update the coefficients associated with the patch field.
virtual void updateCoeffs()
Update the coefficients associated with the patch field.
Field with dimensions and associated with geometry type GeoMesh which is used to size the field and a...
const std::string patch
OpenFOAM patch number as a std::string.
virtual Field< Type > & refGrad()
This boundary condition provides a generic inflow condition, with specified outflow for the case of r...
static constexpr const zero Zero
Global zero (0)