58 phiName_(ptf.phiName_)
71 phiName_(
dict.getOrDefault<
word>(
"phi",
"phi"))
76 this->
refValue().assign(
"outletValue", dict,
p.size());
90 const outletInletFaPatchField<Type>& ptf
94 phiName_(ptf.phiName_)
106 phiName_(ptf.phiName_)
120 const Field<scalar>& phip =
121 this->
patch().template lookupPatchField<edgeScalarField>(phiName_);
123 this->valueFraction() =
pos0(phip);
134 this->refValue().writeEntry(
"outletValue",
os);
virtual void write(Ostream &os) const
Write.
A list of keyword definitions, which are a keyword followed by a number of values (eg...
This boundary condition provides a base class for 'mixed' type boundary conditions, i.e. conditions that mix fixed value and patch-normal gradient conditions.
virtual void readDict(const dictionary &dict)
Read dictionary entries.
void writeValueEntry(Ostream &os) const
Write *this field as a "value" entry.
This boundary condition provides a generic inflow condition, with specified outflow for the case of r...
void extrapolateInternal()
Assign the patch field from the internal field.
virtual Field< Type > & refValue()
A class for handling words, derived from Foam::string.
virtual scalarField & valueFraction()
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)
Finite area patch class. Used for 2-D non-Euclidian finite area method.
virtual void write(Ostream &) const
Write includes "value" entry.
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.
outletInletFaPatchField(const faPatch &, const DimensionedField< Type, areaMesh > &)
Construct from patch and internal field.
A FieldMapper for finite-area patch fields.
virtual Field< Type > & refGrad()
bool readValueEntry(const dictionary &dict, IOobjectOption::readOption readOpt=IOobjectOption::LAZY_READ)
Read the "value" entry into *this.
static constexpr const zero Zero
Global zero (0)