58 phiName_(
dict.getOrDefault<
word>(
"phi",
"phi")),
95 phiName_(ptf.phiName_),
96 uniformInletValue_(ptf.uniformInletValue_.clone())
110 this->
map(ptf, mapper);
121 phiName_(ptf.phiName_),
122 uniformInletValue_(ptf.uniformInletValue_.clone())
134 phiName_(ptf.phiName_),
135 uniformInletValue_(ptf.uniformInletValue_.clone())
150 const scalar t = this->db().time().timeOutputValue();
151 this->refValue() = uniformInletValue_->value(t);
154 this->patch().template lookupPatchField<surfaceScalarField, scalar>
159 this->valueFraction() = 1.0 -
pos0(phip);
170 this->uniformInletValue_->writeData(
os);
171 this->writeEntry(
"value",
os);
187 uniformInletValue_->value(this->db().time().timeOutputValue());
202 uniformInletValue_->value(this->db().time().timeOutputValue());
216 this->valueFraction()*this->refValue()
217 + (1 - this->valueFraction())*ptf
Field with dimensions and associated with geometry type GeoMesh which is used to size the field and a...
Generic templated field type.
void map(const UList< Type > &mapF, const labelUList &mapAddressing)
1 to 1 map from the given field
Top level data entry class for use in dictionaries. Provides a mechanism to specify a variable as a c...
An Ostream is an abstract base class for all output systems (streams, files, token lists,...
Ostream & writeEntryIfDifferent(const word &key, const T &value1, const T &value2)
Write a keyword/value entry only when the two values differ.
void size(const label n)
Older name for setAddressableSize.
virtual void updateCoeffs()
Update the coefficients associated with the patch field.
A list of keyword definitions, which are a keyword followed by a number of values (eg,...
T getOrDefault(const word &keyword, const T &deflt, enum keyType::option matchOpt=keyType::REGEX) const
bool found(const word &keyword, enum keyType::option matchOpt=keyType::REGEX) const
Search for an entry (const access) with the given keyword.
virtual bool write()
Write the output fields.
A FieldMapper for finite-volume patch fields.
Abstract base class with a fat-interface to all derived classes covering all possible ways in which t...
const objectRegistry & db() const
Return local objectRegistry.
virtual void operator=(const UList< Type > &)
const word & patchType() const
Optional patch type.
A finiteVolume patch using a polyPatch and a fvBoundaryMesh.
This boundary condition provides a base class for 'mixed' type boundary conditions,...
virtual void autoMap(const fvPatchFieldMapper &)
Map (and resize as needed) from self given a mapping object.
virtual Field< Type > & refGrad()
virtual void rmap(const fvPatchField< Type > &, const labelList &)
Reverse map the given fvPatchField onto this fvPatchField.
virtual Field< Type > & refValue()
virtual scalarField & valueFraction()
A class for handling words, derived from Foam::string.
static const word null
An empty word.
OBJstream os(runTime.globalPath()/outputName)
dimensionedScalar pos0(const dimensionedScalar &ds)
static constexpr const zero Zero
Global zero (0)
tmp< DimensionedField< TypeR, GeoMesh > > New(const tmp< DimensionedField< TypeR, GeoMesh > > &tdf1, const word &name, const dimensionSet &dimensions)
Global function forwards to reuseTmpDimensionedField::New.