58 phiName_(
dict.getOrDefault<
word>(
"phi",
"phi")),
89 phiName_(ptf.phiName_),
90 uniformInletValue_(ptf.uniformInletValue_.clone())
104 this->
map(ptf, mapper);
115 phiName_(ptf.phiName_),
116 uniformInletValue_(ptf.uniformInletValue_.clone())
128 phiName_(ptf.phiName_),
129 uniformInletValue_(ptf.uniformInletValue_.clone())
144 const scalar t = this->db().time().timeOutputValue();
145 this->refValue() = uniformInletValue_->value(t);
147 const Field<scalar>& phip =
148 this->
patch().template lookupPatchField<surfaceScalarField>
153 this->valueFraction() =
neg(phip);
164 this->uniformInletValue_->writeData(
os);
181 uniformInletValue_->value(this->db().time().timeOutputValue());
196 uniformInletValue_->value(this->db().time().timeOutputValue());
210 this->valueFraction()*this->refValue()
211 + (1 - this->valueFraction())*ptf
bool readValueEntry(const dictionary &dict, IOobjectOption::readOption readOpt=IOobjectOption::LAZY_READ)
Read the "value" entry into *this.
Top level data entry class for use in dictionaries. Provides a mechanism to specify a variable as a c...
const objectRegistry & db() const
The associated objectRegistry.
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.
tmp< DimensionedField< TypeR, GeoMesh > > New(const tmp< DimensionedField< TypeR, GeoMesh >> &tf1, const word &name, const dimensionSet &dimensions, const bool initCopy=false)
Global function forwards to reuseTmpDimensionedField::New.
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()
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.
void map(const UList< Type > &mapF, const labelUList &mapAddressing)
1 to 1 map from the given field
An Ostream is an abstract base class for all output systems (streams, files, token lists...
virtual void rmap(const fvPatchField< Type > &, const labelList &)
Reverse map the given fvPatchField onto this fvPatchField.
OBJstream os(runTime.globalPath()/outputName)
const word & patchType() const noexcept
The optional patch type.
virtual void updateCoeffs()
Update the coefficients associated with the patch field.
virtual void operator=(const UList< Type > &)
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()
virtual void autoMap(const fvPatchFieldMapper &)
Map (and resize as needed) from self given a mapping object.
static constexpr const zero Zero
Global zero (0)