Go to the documentation of this file.
41 return this->db().time().
libs();
52 + this->internalField().name();
59 redirectPatchFieldPtr_.reset(
nullptr);
68 return (ptr ? *ptr : dictionary::null);
81 : codedBase::codeDict(this->db()).subDict(name_)
108 <<
"compile " << name_ <<
" sha1: " << context.
sha1() <<
endl;
115 "-I$(LIB_SRC)/finiteVolume/lnInclude \\\n"
116 "-I$(LIB_SRC)/meshTools/lnInclude \\\n"
118 +
"\n\nLIB_LIBS = \\\n"
120 " -lfiniteVolume \\\n"
136 parent_bctype(
p, iF),
138 redirectPatchFieldPtr_(nullptr)
151 parent_bctype(rhs,
p, iF, mapper),
155 redirectPatchFieldPtr_(nullptr)
167 parent_bctype(
p, iF,
dict),
179 "value",
"refValue",
"refGradient",
"valueFraction"
183 name_(
dict.
getCompat<word>(
"name", {{
"redirectType", 1706}})),
184 redirectPatchFieldPtr_(
nullptr)
186 updateLibrary(name_);
200 redirectPatchFieldPtr_(nullptr)
211 parent_bctype(rhs, iF),
215 redirectPatchFieldPtr_(nullptr)
225 if (!redirectPatchFieldPtr_)
238 constructDict.set(
"type", name_);
240 redirectPatchFieldPtr_.reset
242 dynamic_cast<parent_bctype*
>
247 this->internalField(),
259 contentPtr->
dict(this->codeContext());
264 << name_ <<
" Did not derive from dictionaryContent"
268 return *redirectPatchFieldPtr_;
281 updateLibrary(name_);
283 const parent_bctype& fvp = redirectPatchField();
284 const_cast<parent_bctype&
>(fvp).updateCoeffs();
287 this->refValue() = fvp.refValue();
288 this->refGrad() = fvp.refGrad();
289 this->valueFraction() = fvp.valueFraction();
291 this->parent_bctype::updateCoeffs();
302 updateLibrary(name_);
304 const parent_bctype& fvp = redirectPatchField();
308 const_cast<parent_bctype&
>(fvp).
evaluate(commsType);
Abstract base class with a fat-interface to all derived classes covering all possible ways in which t...
virtual const dictionary & codeDict() const
dictionary * findDict(const word &keyword, enum keyType::option matchOpt=keyType::REGEX)
virtual scalarField & valueFraction()
A table of dynamically loaded libraries.
A class for handling words, derived from Foam::string.
static void writeCodeDict(Ostream &os, const dictionary &dict)
virtual Field< Type > & refValue()
Tools for handling dynamic code compilation.
Encapsulation of dynamic code dictionaries.
Base class for function objects and boundary conditions using dynamic code that provides methods for ...
virtual void prepare(dynamicCode &, const dynamicCodeContext &) const
virtual Field< Type > & refGrad()
virtual void updateCoeffs()
Ostream & endl(Ostream &os)
A class for handling character strings derived from std::string.
T getCompat(const word &keyword, std::initializer_list< std::pair< const char *, int >> compat, enum keyType::option=keyType::REGEX) const
entry * set(entry *entryPtr)
A wrapper for dictionary content, without operators that could affect inheritance patterns.
void addCopyFile(const fileName &name)
const SHA1 & sha1() const noexcept
List< word > wordList
A List of words.
void addCompileFile(const fileName &name)
virtual dlLibraryTable & libs() const
A finiteVolume patch using a polyPatch and a fvBoundaryMesh.
virtual string description() const
const mixedFvPatchField< Type > & redirectPatchField() const
const string & libs() const noexcept
virtual const dictionary & codeContext() const
codedMixedFvPatchField(const fvPatch &, const DimensionedField< Type, volMesh > &)
virtual void clearRedirect() const
A list of keyword definitions, which are a keyword followed by a number of values (eg,...
OBJstream os(runTime.globalPath()/outputName)
Macros for easy insertion into run-time selection tables.
This boundary condition provides a base class for 'mixed' type boundary conditions,...
void setFilterVariable(const word &key, const std::string &value)
static dlLibraryTable & libs()
void setMakeOptions(const std::string &content)
const dictionary & dict() const noexcept
A 1D array of objects of type <T>, where the size of the vector is known and used for subscript bound...
virtual void evaluate(const Pstream::commsTypes commsType=Pstream::commsTypes::blocking)
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,...
virtual void write(Ostream &) const
#define WarningInFunction
const string & options() const noexcept
Constructs on-the-fly a new boundary condition (derived from mixedFvPatchField) which is then used to...
Field with dimensions and associated with geometry type GeoMesh which is used to size the field and a...
string evaluate(label fieldWidth, const std::string &s, size_t pos=0, size_t len=std::string::npos)