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 const_cast<dlLibraryTable&
>(this->db().time().libs());
76 const dynamicCodeContext& context
80 dynCode.setFilterVariable(
"typeName", name_);
83 dynCode.setFieldTemplates<Type>();
86 dynCode.addCompileFile(codeTemplateC);
89 dynCode.addCopyFile(codeTemplateH);
98 dynCode.setMakeOptions
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_.valid())
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_);
Abstract base class with a fat-interface to all derived classes covering all possible ways in which t...
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()
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 Field< Type > & refGrad()
virtual void updateCoeffs()
Update the coefficients associated with the patch field.
A class for handling character strings derived from std::string.
A finiteVolume patch using a polyPatch and a fvBoundaryMesh.
const mixedFvPatchField< Type > & redirectPatchField() const
Get reference to the underlying patchField.
codedMixedFvPatchField(const fvPatch &, const DimensionedField< Type, volMesh > &)
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.
Input from string buffer, using a ISstream.
This boundary condition provides a base class for 'mixed' type boundary conditions,...
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.
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...