59 phiName_(ptf.phiName_)
72 phiName_(
dict.getOrDefault<
word>(
"phi",
"phi"))
77 this->
refValue().assign(
"inletValue", dict,
p.size());
91 const inletOutletFvPatchField<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() =
neg(phip);
135 this->refValue().writeEntry(
"inletValue",
os);
150 this->valueFraction()*this->refValue()
151 + (1 - this->valueFraction())*ptf
bool readValueEntry(const dictionary &dict, IOobjectOption::readOption readOpt=IOobjectOption::LAZY_READ)
Read the "value" entry into *this.
virtual void write(Ostream &) const
Write.
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.
Abstract base class with a fat-interface to all derived classes covering all possible ways in which t...
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.
dimensionedScalar neg(const dimensionedScalar &ds)
virtual Field< Type > & refValue()
A class for handling words, derived from Foam::string.
virtual scalarField & valueFraction()
virtual void updateCoeffs()
Update the coefficients associated with the patch field.
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...
OBJstream os(runTime.globalPath()/outputName)
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.
inletOutletFvPatchField(const fvPatch &, const DimensionedField< Type, volMesh > &)
Construct from patch and internal field.
virtual Field< Type > & refGrad()
This boundary condition provides a generic outflow condition, with specified inflow for the case of r...
static constexpr const zero Zero
Global zero (0)