Go to the documentation of this file.
38 =
"fixedValuePointPatchFieldTemplate.C";
42 =
"fixedValuePointPatchFieldTemplate.H";
59 fieldType[0] = toupper(fieldType[0]);
85 this->db().time().
system(),
87 IOobject::MUST_READ_IF_MODIFIED,
115 setFieldTemplates(dynCode);
133 "-I$(LIB_SRC)/finiteVolume/lnInclude \\\n"
135 +
"\n\nLIB_LIBS = \\\n"
137 +
" -lfiniteVolume \\\n"
152 : this->dict().subDict(redirectType_)
162 + this->patch().name()
172 redirectPatchFieldPtr_.clear();
187 redirectPatchFieldPtr_()
204 redirectPatchFieldPtr_()
214 const bool valueRequired
220 redirectType_(
dict.lookup(
"redirectType")),
221 redirectPatchFieldPtr_()
223 updateLibrary(redirectType_);
237 redirectPatchFieldPtr_()
252 redirectPatchFieldPtr_()
262 if (!redirectPatchFieldPtr_.valid())
268 os.
writeKeyword(
"type") << redirectType_ << token::END_STATEMENT
274 redirectPatchFieldPtr_.set
284 return redirectPatchFieldPtr_();
297 updateLibrary(redirectType_);
317 updateLibrary(redirectType_);
332 << token::END_STATEMENT <<
nl;
334 if (dict_.found(
"codeInclude"))
337 << token::HASH << token::BEGIN_BLOCK;
339 os.
writeQuoted(
string(dict_[
"codeInclude"]),
false)
340 << token::HASH << token::END_BLOCK
341 << token::END_STATEMENT <<
nl;
344 if (dict_.found(
"localCode"))
347 << token::HASH << token::BEGIN_BLOCK;
350 << token::HASH << token::END_BLOCK
351 << token::END_STATEMENT <<
nl;
354 if (dict_.found(
"code"))
357 << token::HASH << token::BEGIN_BLOCK;
360 << token::HASH << token::END_BLOCK
361 << token::END_STATEMENT <<
nl;
364 if (dict_.found(
"codeOptions"))
367 << token::HASH << token::BEGIN_BLOCK;
369 os.
writeQuoted(
string(dict_[
"codeOptions"]),
false)
370 << token::HASH << token::END_BLOCK
371 << token::END_STATEMENT <<
nl;
374 if (dict_.found(
"codeLibs"))
377 << token::HASH << token::BEGIN_BLOCK;
380 << token::HASH << token::END_BLOCK
381 << 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...
const IOdictionary & dict() const
IOobject defines the attributes of an object for which implicit objectRegistry management is supporte...
static void setFieldTemplates(dynamicCode &dynCode)
Set the rewrite vars controlling the Type.
A table of dynamically loaded libraries.
A class for handling words, derived from string.
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 > &)
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...
virtual const dictionary & codeDict() const
virtual void prepare(dynamicCode &, const dynamicCodeContext &) const
Adapt the context for the current object.
void addCopyFile(const fileName &name)
Add a file template name, which will be found and filtered.
Foam::pointPatchFieldMapper.
string str() const
Return the string.
Registry of regIOobjects.
void addCompileFile(const fileName &name)
Add a file template name, which will be found and filtered.
A FixedValue boundary condition for pointField.
dictionary dict_
Dictionary contents for the boundary condition.
virtual void write(Ostream &) const
Write.
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 any number of values (e....
Macros for easy insertion into run-time selection tables.
const string & options() const
Return the code-options.
const pointPatchField< Type > & redirectPatchField() const
Get reference to the underlying patch.
virtual void evaluate(const Pstream::commsTypes commsType=Pstream::blocking)
Evaluate the patch field, sets Updated to false.
Input from memory buffer stream.
void setFilterVariable(const word &key, const std::string &value)
Define a filter variable.
virtual void clearRedirect() const
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.
virtual string description() const
virtual dlLibraryTable & libs() const
Get the loaded dynamic libraries.
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,...
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...