Go to the documentation of this file.
40 const objectRegistry& obr = this->db();
42 const IOdictionary* dictptr = obr.cfindObject<IOdictionary>(
"codeDict");
55 this->db().time().
system(),
57 IOobject::MUST_READ_IF_MODIFIED,
68 return this->db().time().
libs();
101 "-I$(LIB_SRC)/finiteVolume/lnInclude \\\n"
103 +
"\n\nLIB_LIBS = \\\n"
105 " -lfiniteVolume \\\n"
120 : this->
dict().subDict(name_)
130 + this->
patch().name()
132 + this->internalField().name();
140 redirectPatchFieldPtr_.clear();
155 redirectPatchFieldPtr_()
172 redirectPatchFieldPtr_()
187 name_(
dict.getCompat<
word>(
"name", {{
"redirectType", 1706}})),
188 redirectPatchFieldPtr_()
190 updateLibrary(name_);
204 redirectPatchFieldPtr_()
219 redirectPatchFieldPtr_()
229 if (!redirectPatchFieldPtr_)
243 dict.set(
"type", name_);
245 redirectPatchFieldPtr_.reset
252 this->internalField(),
258 return *redirectPatchFieldPtr_;
271 updateLibrary(name_);
279 this->refGrad() = fvp.
refGrad();
293 updateLibrary(name_);
312 codedBase::writeCodeDict(os, dict_);
const string & libs() const
Return the code-libs.
Abstract base class with a fat-interface to all derived classes covering all possible ways in which t...
virtual const dictionary & codeDict() const
IOdictionary is derived from dictionary and IOobject to give the dictionary automatic IO functionalit...
virtual scalarField & valueFraction()
A table of dynamically loaded libraries.
A class for handling words, derived from Foam::string.
virtual Field< Type > & refValue()
Tools for handling dynamic code compilation.
Encapsulation of dynamic code dictionaries.
int system(const std::string &command, const bool bg=false)
Execute the specified command via the shell.
Base class for function objects and boundary conditions using dynamic code that provides methods for ...
virtual void prepare(dynamicCode &, const dynamicCodeContext &) const
Adapt the context for the current object.
virtual Field< Type > & refGrad()
virtual void updateCoeffs()
Update the coefficients associated with the patch field.
A class for handling character strings derived from std::string.
void addCopyFile(const fileName &name)
Add a file template name, which will be found and filtered.
void addCompileFile(const fileName &name)
Add a file template name, which will be found and filtered.
virtual dlLibraryTable & libs() const
Mutable access to the loaded dynamic libraries.
A finiteVolume patch using a polyPatch and a fvBoundaryMesh.
virtual string description() const
const mixedFvPatchField< Type > & redirectPatchField() const
Get reference to the underlying patchField.
codedMixedFvPatchField(const fvPatch &, const DimensionedField< Type, volMesh > &)
Construct from patch and internal field.
virtual void clearRedirect() const
A list of keyword definitions, which are a keyword followed by a number of values (eg,...
Macros for easy insertion into run-time selection tables.
const string & options() const
Return the code-options.
Input from string buffer, using a ISstream.
This boundary condition provides a base class for 'mixed' type boundary conditions,...
void setFilterVariable(const word &key, const std::string &value)
Define a filter variable.
static dlLibraryTable & libs()
Table of global libraries.
void setFieldTemplates()
Define a filter variables TemplateType and FieldType.
Foam::string str() const
Get the string - as Foam::string rather than std::string.
commsTypes
Types of communications.
void setMakeOptions(const std::string &content)
Define contents for Make/options.
const std::string patch
OpenFOAM patch number as a std::string.
Output to string buffer, using a OSstream.
virtual void evaluate(const Pstream::commsTypes commsType=Pstream::commsTypes::blocking)
Evaluate the patch field.
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,...
virtual void write(Ostream &) const
Write.
Constructs on-the-fly a new boundary condition (derived from mixedFvPatchField) which is then used to...
string evaluate(const std::string &s, size_t pos=0, size_t len=std::string::npos)
Field with dimensions and associated with geometry type GeoMesh which is used to size the field and a...