59 phiName_(ptf.phiName_)
73 phiName_(
dict.getOrDefault<
word>(
"phi",
"phi"))
76 this->
refValue().assign(
"inletValue", dict,
p.size());
90 const inletOutletFaPatchField<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() =
neg(phip);
134 this->refValue().writeEntry(
"inletValue",
os);
virtual void write(Ostream &os) const
Write.
virtual void write(Ostream &) 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.
This boundary condition provides a generic outflow condition, with specified inflow for the case of r...
void writeValueEntry(Ostream &os) const
Write *this field as a "value" entry.
void extrapolateInternal()
Assign the patch field from the internal field.
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.
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)
Finite area patch class. Used for 2-D non-Euclidian finite area method.
virtual void updateCoeffs()
Update the coefficients associated with the patch field.
A simple container of IOobject preferences. Can also be used for general handling of read/no-read/rea...
Field with dimensions and associated with geometry type GeoMesh which is used to size the field and a...
inletOutletFaPatchField(const faPatch &, const DimensionedField< Type, areaMesh > &)
Construct from patch and internal field.
const std::string patch
OpenFOAM patch number as a std::string.
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)