42 this->valueFraction() = 0.0;
59 uniformInletValue_->value(this->db().time().timeOutputValue());
61 if (dict.
found(
"value"))
74 this->valueFraction() = 0.0;
95 uniformInletValue_->value(this->db().time().timeOutputValue());
98 this->valueFraction() = 0.0;
103 this->map(ptf, mapper);
127 phiName_(ptf.phiName_),
128 uniformInletValue_(ptf.uniformInletValue_,
false)
143 uniformInletValue_->value(this->db().time().timeOutputValue());
146 this->patch().template lookupPatchField<surfaceScalarField, scalar>
151 this->valueFraction() = 1.0 -
pos(phip);
161 if (phiName_ !=
"phi")
165 this->uniformInletValue_->writeData(os);
166 this->writeEntry(
"value", os);
182 uniformInletValue_->value(this->db().time().timeOutputValue());
197 uniformInletValue_->value(this->db().time().timeOutputValue());
204 void Foam::uniformInletOutletFvPatchField<Type>::operator=
211 this->valueFraction()*this->refValue()
212 + (1 - this->valueFraction())*ptf
bool found(const word &, bool recursive=false, bool patternMatch=true) const
Search dictionary for given keyword.
virtual void autoMap(const fvPatchFieldMapper &)
Map (and resize as needed) from self given a mapping object.
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 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...
Variant of inletOutlet boundary condition with uniform inletValue.
autoPtr< DataEntry< Type > > uniformInletValue_
Value.
virtual void write(Ostream &) const
Write.
A class for handling words, derived from string.
void size(const label)
Override size to be inconsistent with allocated storage.
Foam::fvPatchFieldMapper.
A list of keyword definitions, which are a keyword followed by any number of values (e...
virtual void rmap(const fvPatchField< Type > &, const labelList &)
Reverse map the given fvPatchField onto this fvPatchField.
const word & patchType() const
Optional patch type.
Abstract base class with a fat-interface to all derived classes covering all possible ways in which t...
Pre-declare SubField and related Field type.
Ostream & writeKeyword(const keyType &)
Write the keyword followed by an appropriate indentation.
Traits class for primitives.
T lookupOrDefault(const word &, const T &, bool recursive=false, bool patternMatch=true) const
Find and return a T,.
An Ostream is an abstract base class for all output systems (streams, files, token lists...
word phiName_
Name of flux field.
A finiteVolume patch using a polyPatch and a fvBoundaryMesh.
dimensionedScalar pos(const dimensionedScalar &ds)
Top level data entry class for use in dictionaries. Provides a mechanism to specify a variable as a c...
uniformInletOutletFvPatchField(const fvPatch &, const DimensionedField< Type, volMesh > &)
Construct from patch and internal field.