Go to the documentation of this file.
41 const objectRegistry& obr = this->db();
43 const IOdictionary* dictptr = obr.cfindObject<IOdictionary>(
"codeDict");
56 this->db().time().
system(),
58 IOobject::MUST_READ_IF_MODIFIED,
69 return this->db().time().libs();
77 const dynamicCodeContext& context
81 dynCode.setFilterVariable(
"typeName", name_);
84 dynCode.setFieldTemplates<Type>();
87 dynCode.addCompileFile(codeTemplateC);
90 dynCode.addCopyFile(codeTemplateH);
99 dynCode.setMakeOptions
102 "-I$(LIB_SRC)/finiteVolume/lnInclude \\\n"
104 +
"\n\nLIB_LIBS = \\\n"
106 " -lfiniteVolume \\\n"
121 : this->
dict().subDict(name_)
131 + this->
patch().name()
133 + this->internalField().name();
141 redirectPatchFieldPtr_.clear();
156 redirectPatchFieldPtr_()
173 redirectPatchFieldPtr_()
183 const bool valueRequired
189 name_(
dict.getCompat<
word>(
"name", {{
"redirectType", 1706}})),
190 redirectPatchFieldPtr_()
192 updateLibrary(name_);
206 redirectPatchFieldPtr_()
221 redirectPatchFieldPtr_()
231 if (!redirectPatchFieldPtr_)
242 redirectPatchFieldPtr_.reset
247 this->internalField(),
252 return *redirectPatchFieldPtr_;
265 updateLibrary(name_);
285 updateLibrary(name_);
301 codedBase::writeCodeDict(os, dict_);
IOdictionary is derived from dictionary and IOobject to give the dictionary automatic IO functionalit...
A table of dynamically loaded libraries.
A class for handling words, derived from Foam::string.
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 evaluate(const Pstream::commsTypes commsType=Pstream::commsTypes::blocking)
Evaluate the patch field, sets Updated to false.
A class for handling character strings derived from std::string.
Basic pointPatch represents a set of points from the mesh.
Constructs on-the-fly a new boundary condition (derived from fixedValuePointPatchField) which is then...
Abstract base class for point-mesh patch fields.
Foam::pointPatchFieldMapper.
A FixedValue boundary condition for pointField.
virtual void write(Ostream &) const
Write.
Generic templated field type.
tmp< faMatrix< Type > > operator==(const faMatrix< Type > &, const faMatrix< Type > &)
virtual void updateCoeffs()
Update the coefficients associated with the patch field.
codedFixedValuePointPatchField(const pointPatch &, const DimensionedField< Type, pointMesh > &)
Construct from patch and internal field.
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 pointPatchField< Type > & redirectPatchField() const
Get reference to the underlying patch.
Input from string buffer, using a ISstream.
void writeEntry(const word &keyword, Ostream &os) const
Write the field as a dictionary entry.
Foam::string str() const
Get the string - as Foam::string rather than std::string.
commsTypes
Types of communications.
const std::string patch
OpenFOAM patch number as a std::string.
Output to string buffer, using a OSstream.
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)
An Ostream is an abstract base class for all output systems (streams, files, token lists,...
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...