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_)
211 this->writeEntry(
"value",
os);
Field with dimensions and associated with geometry type GeoMesh which is used to size the field and a...
Generic templated field type.
An Ostream is an abstract base class for all output systems (streams, files, token lists,...
virtual Ostream & endBlock()
Write end block group.
Ostream & writeEntry(const keyType &key, const T &value)
Write a keyword/value entry.
virtual Ostream & beginBlock(const keyType &kw)
Write begin block group with the given name.
Ostream & writeEntryIfDifferent(const word &key, const T &value1, const T &value2)
Write a keyword/value entry only when the two values differ.
virtual bool write(const token &tok)=0
Write token to stream or otherwise handle it.
static autoPtr< Time > New()
Construct (dummy) Time - no functionObjects or libraries.
void size(const label n)
Older name for setAddressableSize.
void autoMap(const fvPatchFieldMapper &)
Map (and resize as needed) from self given a mapping object.
void rmap(const atmBoundaryLayer &, const labelList &)
Reverse map the given fvPatchField onto this fvPatchField.
A list of keyword definitions, which are a keyword followed by a number of values (eg,...
const dictionary & subDict(const word &keyword, enum keyType::option matchOpt=keyType::REGEX) const
Find and return a sub-dictionary.
T getOrDefault(const word &keyword, const T &deflt, enum keyType::option matchOpt=keyType::REGEX) const
bool found(const word &keyword, enum keyType::option matchOpt=keyType::REGEX) const
Search for an entry (const access) with the given keyword.
This boundary condition provides a free-stream condition. It is a 'mixed' condition derived from the ...
const Field< Type > & freestreamValue() const
virtual void autoMap(const fvPatchFieldMapper &mapper)
Map (and resize as needed) from self given a mapping object.
virtual void rmap(const fvPatchField< Type > &ptf, const labelList &addr)
Reverse map the given fvPatchField onto this fvPatchField.
virtual void updateCoeffs()
Update the coefficients associated with the patch field.
virtual bool write()
Write the output fields.
A FieldMapper for finite-volume patch fields.
Abstract base class with a fat-interface to all derived classes covering all possible ways in which t...
virtual void operator=(const UList< Type > &)
const word & patchType() const
Optional patch type.
A finiteVolume patch using a polyPatch and a fvBoundaryMesh.
This boundary condition provides a generic outflow condition, with specified inflow for the case of r...
virtual void updateCoeffs()
Update the coefficients associated with the patch field.
word phiName_
Name of flux field.
A class for handling words, derived from Foam::string.
static const word null
An empty word.
OBJstream os(runTime.globalPath()/outputName)