Go to the documentation of this file.
38 =
"mixedFvPatchFieldTemplate.C";
42 =
"mixedFvPatchFieldTemplate.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())
274 dict.set(
"type", redirectType_);
276 redirectPatchFieldPtr_.set
289 return redirectPatchFieldPtr_();
302 updateLibrary(redirectType_);
310 this->refGrad() = fvp.
refGrad();
324 updateLibrary(redirectType_);
342 << token::END_STATEMENT <<
nl;
344 if (dict_.found(
"codeInclude"))
347 << token::HASH << token::BEGIN_BLOCK;
349 os.
writeQuoted(
string(dict_[
"codeInclude"]),
false)
350 << token::HASH << token::END_BLOCK
351 << token::END_STATEMENT <<
nl;
354 if (dict_.found(
"localCode"))
357 << token::HASH << token::BEGIN_BLOCK;
360 << token::HASH << token::END_BLOCK
361 << token::END_STATEMENT <<
nl;
364 if (dict_.found(
"code"))
367 << token::HASH << token::BEGIN_BLOCK;
370 << token::HASH << token::END_BLOCK
371 << token::END_STATEMENT <<
nl;
374 if (dict_.found(
"codeOptions"))
377 << token::HASH << token::BEGIN_BLOCK;
379 os.
writeQuoted(
string(dict_[
"codeOptions"]),
false)
380 << token::HASH << token::END_BLOCK
381 << token::END_STATEMENT <<
nl;
384 if (dict_.found(
"codeLibs"))
387 << token::HASH << token::BEGIN_BLOCK;
390 << token::HASH << token::END_BLOCK
391 << token::END_STATEMENT <<
nl;
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...
IOobject defines the attributes of an object for which implicit objectRegistry management is supporte...
virtual scalarField & valueFraction()
A table of dynamically loaded libraries.
A class for handling words, derived from string.
virtual Field< Type > & refValue()
Tools for handling dynamic code compilation.
Encapsulation of dynamic code dictionaries.
rDeltaT dimensionedInternalField()
Base class for function objects and boundary conditions using dynamic code.
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.
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.
virtual dlLibraryTable & libs() const
Get 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 any number of values (e....
Macros for easy insertion into run-time selection tables.
const string & options() const
Return the code-options.
Input from memory buffer stream.
dictionary dict_
Dictionary contents for the boundary condition.
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 void setFieldTemplates(dynamicCode &dynCode)
Set the rewrite vars controlling the Type.
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.
const IOdictionary & dict() const
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 void evaluate(const Pstream::commsTypes commsType=Pstream::blocking)
Evaluate the patch field.
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 write(Ostream &) const
Write.
int system(const std::string &command)
Execute the specified command.
Constructs on-the-fly a new boundary condition (derived from mixedFvPatchField) which is then used to...
Field with dimensions and associated with geometry type GeoMesh which is used to size the field and a...