Go to the documentation of this file.
56 this->patchType() =
dict.getOrDefault<
word>(
"patchType", word::null);
58 this->phiName_ =
dict.getOrDefault<
word>(
"phi",
"phi");
60 if (
dict.found(
"freestreamValue"))
65 if (
dict.found(
"value"))
105 if (ptf.freestreamBCPtr_)
122 if (ptf.freestreamBCPtr_)
124 freestreamBCPtr_ = ptf.freestreamBCPtr_->clone();
139 if (ptf.freestreamBCPtr_)
141 freestreamBCPtr_ = ptf.freestreamBCPtr_->clone();
152 if (freestreamBCPtr_)
154 freestreamBCPtr_->autoMap(m);
168 const auto& fsptf = refCast<const freestreamFvPatchField<Type>>(ptf);
170 if (fsptf.freestreamBCPtr_)
172 freestreamBCPtr_->rmap(fsptf.freestreamBCPtr_(), addr);
185 if (freestreamBCPtr_)
187 freestreamBCPtr_->evaluate();
188 freestreamValue() = freestreamBCPtr_();
201 if (freestreamBCPtr_)
204 freestreamBCPtr_->
write(os);
209 freestreamValue().
writeEntry(
"freestreamValue", os);
211 this->writeEntry(
"value", os);
Abstract base class with a fat-interface to all derived classes covering all possible ways in which t...
Ostream & writeEntryIfDifferent(const word &key, const T &value1, const T &value2)
Write a keyword/value entry only when the two values differ.
freestreamFvPatchField(const fvPatch &, const DimensionedField< Type, volMesh > &)
Construct from patch and internal field.
A class for handling words, derived from Foam::string.
virtual Ostream & beginBlock(const keyType &kw)
Write begin block group with the given name.
This boundary condition provides a free-stream condition. It is a 'mixed' condition derived from the ...
Generic templated field type.
This boundary condition provides a generic outflow condition, with specified inflow for the case of r...
virtual void rmap(const fvPatchField< Type > &ptf, const labelList &addr)
Reverse map the given fvPatchField onto this fvPatchField.
A finiteVolume patch using a polyPatch and a fvBoundaryMesh.
virtual void write(Ostream &) const
Write.
virtual Ostream & endBlock()
Write end block group.
A list of keyword definitions, which are a keyword followed by a number of values (eg,...
virtual bool write(const token &tok)=0
Write token to stream or otherwise handle it.
virtual void updateCoeffs()
Update the coefficients associated with the patch field.
tmp< DimensionedField< TypeR, GeoMesh > > New(const tmp< DimensionedField< TypeR, GeoMesh >> &tdf1, const word &name, const dimensionSet &dimensions)
Global function forwards to reuseTmpDimensionedField::New.
virtual void autoMap(const fvPatchFieldMapper &mapper)
Map (and resize as needed) from self given a mapping object.
Ostream & writeEntry(const keyType &key, const T &value)
Write a keyword/value entry.
void write(vtk::formatter &fmt, const Type &val, const label n=1)
Component-wise write of a value (N times)
Foam::fvPatchFieldMapper.
An Ostream is an abstract base class for all output systems (streams, files, token lists,...
Field with dimensions and associated with geometry type GeoMesh which is used to size the field and a...