Go to the documentation of this file.
60 if (
dict.found(
"freestreamValue"))
65 if (
dict.found(
"value"))
87 Field<Type>(
"value",
dict,
p.size())
96 const freestreamFvPatchField<Type>& ptf,
98 const DimensionedField<Type, volMesh>& iF,
99 const fvPatchFieldMapper& mapper
102 inletOutletFvPatchField<Type>(ptf,
p, iF, mapper),
105 if (ptf.freestreamBCPtr_)
116 const freestreamFvPatchField<Type>& ptf
119 inletOutletFvPatchField<Type>(ptf),
122 if (ptf.freestreamBCPtr_)
124 freestreamBCPtr_ = ptf.freestreamBCPtr_->clone();
132 const freestreamFvPatchField<Type>& ptf,
133 const DimensionedField<Type, volMesh>& iF
136 inletOutletFvPatchField<Type>(ptf, iF),
139 if (ptf.freestreamBCPtr_)
141 freestreamBCPtr_ = ptf.freestreamBCPtr_->clone();
152 if (freestreamBCPtr_)
154 freestreamBCPtr_->autoMap(m);
162 const fvPatchField<Type>& ptf,
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_)
211 this->writeEntry(
"value",
os);
Abstract base class with a fat-interface to all derived classes covering all possible ways in which t...
List< label > labelList
A List of labels.
virtual void write(Ostream &) const
virtual void operator=(const UList< Type > &)
Ostream & writeEntryIfDifferent(const word &key, const T &value1, const T &value2)
freestreamFvPatchField(const fvPatch &, const DimensionedField< Type, volMesh > &)
A class for handling words, derived from Foam::string.
const Field< Type > & freestreamValue() const
friend Ostream & operator(Ostream &, const fvPatchField< Type > &)
virtual Ostream & beginBlock(const keyType &kw)
This boundary condition provides a free-stream condition. It is a 'mixed' condition derived from the ...
virtual void autoMap(const fvPatchFieldMapper &)
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)
A finiteVolume patch using a polyPatch and a fvBoundaryMesh.
virtual void write(Ostream &) const
virtual Ostream & endBlock()
A list of keyword definitions, which are a keyword followed by a number of values (eg,...
OBJstream os(runTime.globalPath()/outputName)
virtual bool write(const token &tok)=0
virtual void updateCoeffs()
static tmp< fvPatchField< Type > > New(const word &, const fvPatch &, const DimensionedField< Type, volMesh > &)
tmp< DimensionedField< TypeR, GeoMesh > > New(const tmp< DimensionedField< TypeR, GeoMesh >> &tdf1, const word &name, const dimensionSet &dimensions)
virtual void updateCoeffs()
virtual void autoMap(const fvPatchFieldMapper &mapper)
const word & patchType() const
A 1D array of objects of type <T>, where the size of the vector is known and used for subscript bound...
Ostream & writeEntry(const keyType &key, const T &value)
void write(vtk::formatter &fmt, const Type &val, const label n=1)
Foam::fvPatchFieldMapper.
An Ostream is an abstract base class for all output systems (streams, files, token lists,...
T getOrDefault(const word &keyword, const T &deflt, enum keyType::option matchOpt=keyType::REGEX) const
virtual void rmap(const fvPatchField< Type > &, const labelList &)
Field with dimensions and associated with geometry type GeoMesh which is used to size the field and a...