40 this->refValue() =
Zero;
41 this->refGrad() =
Zero;
42 this->valueFraction() = 0.0;
59 if (dict.found(
"value"))
71 this->refGrad() =
Zero;
72 this->valueFraction() = 0.0;
86 phiName_(ptf.phiName_)
98 phiName_(ptf.phiName_)
113 this->patch().template lookupPatchField<surfaceScalarField, scalar>
118 this->valueFraction() =
neg(phip);
128 if (phiName_ !=
"phi")
132 writeEntry(os,
"inletValue", this->refValue());
140 void Foam::inletOutletFvPatchField<Type>::operator=
147 this->valueFraction()*this->refValue()
148 + (1 - this->valueFraction())*ptf
virtual void write(Ostream &) const
Write.
A list of keyword definitions, which are a keyword followed by any number of values (e...
void size(const label)
Override size to be inconsistent with allocated storage.
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.
Abstract base class with a fat-interface to all derived classes covering all possible ways in which t...
dimensionedScalar neg(const dimensionedScalar &ds)
Pre-declare SubField and related Field type.
A class for handling words, derived from string.
virtual void updateCoeffs()
Update the coefficients associated with the patch field.
Foam::fvPatchFieldMapper.
void write(std::ostream &os, const bool binary, List< floatScalar > &fField)
Write floats ascii or binary.
An Ostream is an abstract base class for all output systems (streams, files, token lists...
void writeEntry(Ostream &os, const HashTable< T, Key, Hash > &ht)
T lookupOrDefault(const word &, const T &, bool recursive=false, bool patternMatch=true) const
Find and return a T,.
Field with dimensions and associated with geometry type GeoMesh which is used to size the field and a...
inletOutletFvPatchField(const fvPatch &, const DimensionedField< Type, volMesh > &)
Construct from patch and internal field.
This boundary condition provides a generic outflow condition, with specified inflow for the case of r...