44 this->refValue() = Type(
Zero);
45 this->refGrad() = Type(
Zero);
46 this->valueFraction() = 0.0;
108 os <<
"# Values: value snGrad refValue refGrad valueFraction" <<
endl;
121 const scalarField& valueFraction(this->valueFraction());
125 os << this->operator[](facei) << token::SPACE
126 <<
snGrad[facei] << token::SPACE
127 << refValue[facei] << token::SPACE
128 << refGrad[facei] << token::SPACE
129 << valueFraction[facei] <<
nl;
139 ISstream& iss =
dynamic_cast<ISstream&
>(is);
146 IStringStream lineStr(line);
155 >> this->refValue()[facei]
156 >> this->refGrad()[facei]
157 >> this->valueFraction()[facei];
Extends the mixed boundary condition with serialisation functions.
A list of keyword definitions, which are a keyword followed by a number of values (eg...
constexpr char nl
The newline '\n' character (0x0a)
Ostream & endl(Ostream &os)
Add newline and flush stream.
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.
virtual void readData(Istream &is)
Read data.
#define forAll(list, i)
Loop across all elements in list.
Generic templated field type.
A FieldMapper for finite-volume patch fields.
An Ostream is an abstract base class for all output systems (streams, files, token lists...
OBJstream os(runTime.globalPath()/outputName)
externalCoupledMixedFvPatchField(const fvPatch &, const DimensionedField< Type, volMesh > &)
Construct from patch and internal field.
Field with dimensions and associated with geometry type GeoMesh which is used to size the field and a...
virtual void writeData(Ostream &os) const
Write data.
virtual void writeHeader(Ostream &os) const
Write header.
tmp< GeometricField< Type, fvsPatchField, surfaceMesh > > snGrad(const GeometricField< Type, fvPatchField, volMesh > &vf, const word &name)
static constexpr const zero Zero
Global zero (0)