Go to the documentation of this file.
38 =
"fixedValueFvPatchFieldTemplate.C";
42 =
"fixedValueFvPatchFieldTemplate.H";
59 fieldType[0] = toupper(fieldType[0]);
84 this->db().time().
system(),
86 IOobject::MUST_READ_IF_MODIFIED,
114 setFieldTemplates(dynCode);
132 "-I$(LIB_SRC)/finiteVolume/lnInclude \\\n"
134 +
"\n\nLIB_LIBS = \\\n"
136 +
" -lfiniteVolume \\\n"
151 : this->dict().subDict(redirectType_)
161 + this->patch().name()
171 redirectPatchFieldPtr_.clear();
186 redirectPatchFieldPtr_()
203 redirectPatchFieldPtr_()
218 redirectType_(
dict.lookup(
"redirectType")),
219 redirectPatchFieldPtr_()
221 updateLibrary(redirectType_);
235 redirectPatchFieldPtr_()
250 redirectPatchFieldPtr_()
260 if (!redirectPatchFieldPtr_.valid())
266 os.
writeKeyword(
"type") << redirectType_ << token::END_STATEMENT
272 redirectPatchFieldPtr_.set
282 return redirectPatchFieldPtr_();
295 updateLibrary(redirectType_);
315 updateLibrary(redirectType_);
330 << token::END_STATEMENT <<
nl;
332 if (dict_.found(
"codeInclude"))
335 << token::HASH << token::BEGIN_BLOCK;
337 os.
writeQuoted(
string(dict_[
"codeInclude"]),
false)
338 << token::HASH << token::END_BLOCK
339 << token::END_STATEMENT <<
nl;
342 if (dict_.found(
"localCode"))
345 << token::HASH << token::BEGIN_BLOCK;
348 << token::HASH << token::END_BLOCK
349 << token::END_STATEMENT <<
nl;
352 if (dict_.found(
"code"))
355 << token::HASH << token::BEGIN_BLOCK;
358 << token::HASH << token::END_BLOCK
359 << token::END_STATEMENT <<
nl;
362 if (dict_.found(
"codeOptions"))
365 << token::HASH << token::BEGIN_BLOCK;
367 os.
writeQuoted(
string(dict_[
"codeOptions"]),
false)
368 << token::HASH << token::END_BLOCK
369 << token::END_STATEMENT <<
nl;
372 if (dict_.found(
"codeLibs"))
375 << token::HASH << token::BEGIN_BLOCK;
378 << token::HASH << token::END_BLOCK
379 << token::END_STATEMENT <<
nl;
const string & libs() const
Return the code-libs.
IOdictionary is derived from dictionary and IOobject to give the dictionary automatic IO functionalit...
IOobject defines the attributes of an object for which implicit objectRegistry management is supporte...
A table of dynamically loaded libraries.
const IOdictionary & dict() const
A class for handling words, derived from string.
virtual void clearRedirect() const
virtual void write(Ostream &) const
Write.
Tools for handling dynamic code compilation.
Encapsulation of dynamic code dictionaries.
rDeltaT dimensionedInternalField()
Base class for function objects and boundary conditions using dynamic code.
tmp< fvMatrix< Type > > operator==(const fvMatrix< Type > &, const fvMatrix< Type > &)
const fvPatchField< Type > & redirectPatchField() const
Get reference to the underlying patch.
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.
This boundary condition supplies a fixed value constraint, and is the base class for a number of othe...
string str() const
Return the string.
virtual void prepare(dynamicCode &, const dynamicCodeContext &) const
Adapt the context for the current object.
Registry of regIOobjects.
void addCompileFile(const fileName &name)
Add a file template name, which will be found and filtered.
virtual const dictionary & codeDict() const
A finiteVolume patch using a polyPatch and a fvBoundaryMesh.
virtual string description() const
A list of keyword definitions, which are a keyword followed by any number of values (e....
virtual void evaluate(const Pstream::commsTypes commsType=Pstream::blocking)
Evaluate the patch field, sets Updated to false.
Macros for easy insertion into run-time selection tables.
const string & options() const
Return the code-options.
Input from memory buffer stream.
codedFixedValueFvPatchField(const fvPatch &, const DimensionedField< Type, volMesh > &)
Construct from patch and internal field.
const dictionary dict_
Dictionary contents for the boundary condition.
void setFilterVariable(const word &key, const std::string &value)
Define a filter variable.
void writeEntry(const word &keyword, Ostream &os) const
Write the field as a dictionary entry.
bool foundObject(const word &name) const
Is the named Type found?
void store()
Transfer ownership of this object to its registry.
commsTypes
Types of communications.
void setMakeOptions(const std::string &content)
Define contents for Make/options.
Traits class for primitives.
Output to memory buffer stream.
virtual Ostream & writeQuoted(const std::string &, const bool quoted=true)=0
Write std::string surrounded by quotes.
Ostream & writeKeyword(const keyType &)
Write the keyword followed by an appropriate indentation.
Foam::fvPatchFieldMapper.
const Type & lookupObject(const word &name) const
Lookup and return the object of the given Type.
An Ostream is an abstract base class for all output systems (streams, files, token lists,...
virtual void updateCoeffs()
Update the coefficients associated with the patch field.
virtual dlLibraryTable & libs() const
Get the loaded dynamic libraries.
static void setFieldTemplates(dynamicCode &dynCode)
Set the rewrite vars controlling the Type.
int system(const std::string &command)
Execute the specified command.
Field with dimensions and associated with geometry type GeoMesh which is used to size the field and a...
Constructs on-the-fly a new boundary condition (derived from fixedValueFvPatchField) which is then us...