41 return this->db().time().
libs();
50 + this->patch().name()
52 + this->internalField().name();
59 redirectPatchFieldPtr_.reset(
nullptr);
81 : codedBase::codeDict(this->db()).subDict(name_)
108 <<
"compile " << name_ <<
" sha1: " << context.
sha1() <<
endl;
115 "-I$(LIB_SRC)/finiteVolume/lnInclude \\\n"
116 "-I$(LIB_SRC)/meshTools/lnInclude \\\n"
118 +
"\n\nLIB_LIBS = \\\n"
120 " -lfiniteVolume \\\n"
138 redirectPatchFieldPtr_(nullptr)
155 redirectPatchFieldPtr_(nullptr)
179 "value",
"refValue",
"refGradient",
"valueFraction"
184 redirectPatchFieldPtr_(
nullptr)
186 updateLibrary(name_);
200 redirectPatchFieldPtr_(nullptr)
215 redirectPatchFieldPtr_(nullptr)
225 if (!redirectPatchFieldPtr_)
232 this->parent_bctype::write(
os);
238 constructDict.
set(
"type", name_);
240 redirectPatchFieldPtr_.reset
247 this->internalField(),
259 contentPtr->
dict(this->codeContext());
264 << name_ <<
" Did not derive from dictionaryContent"
268 return *redirectPatchFieldPtr_;
281 updateLibrary(name_);
288 this->refGrad() = fvp.
refGrad();
291 this->parent_bctype::updateCoeffs();
302 updateLibrary(name_);
311 parent_bctype::evaluate(commsType);
318 this->parent_bctype::write(
os);
Macros for easy insertion into run-time selection tables.
Field with dimensions and associated with geometry type GeoMesh which is used to size the field and a...
void evaluate()
Evaluate boundary conditions.
Input from string buffer, using a ISstream. Always UNCOMPRESSED.
Output to string buffer, using a OSstream. Always UNCOMPRESSED.
An Ostream is an abstract base class for all output systems (streams, files, token lists,...
Ostream & writeEntry(const keyType &key, const T &value)
Write a keyword/value entry.
commsTypes
Types of communications.
Base class for function objects and boundary conditions using dynamic code that provides methods for ...
static void writeCodeDict(Ostream &os, const dictionary &dict)
Write code-dictionary contents.
Constructs on-the-fly a new boundary condition (derived from mixedFvPatchField) which is then used to...
virtual const dictionary & codeContext() const
Additional 'codeContext' dictionary to pass through.
virtual void prepare(dynamicCode &, const dynamicCodeContext &) const
Adapt the context for the current object.
virtual void updateCoeffs()
Update the coefficients associated with the patch field.
virtual const dictionary & codeDict() const
The code dictionary. Inline "code" or from system/codeDict.
const mixedFvPatchField< Type > & redirectPatchField() const
Get reference to the underlying patchField.
virtual void clearRedirect() const
Clear redirected object(s)
virtual dlLibraryTable & libs() const
Mutable access to the loaded dynamic libraries.
virtual string description() const
Description (type + name) for the output.
A wrapper for dictionary content, without operators that could affect inheritance patterns.
const dictionary & dict() const noexcept
Read-access to the content.
A list of keyword definitions, which are a keyword followed by a number of values (eg,...
dictionary * findDict(const word &keyword, enum keyType::option matchOpt=keyType::REGEX)
Find and return a sub-dictionary pointer if present.
T getCompat(const word &keyword, std::initializer_list< std::pair< const char *, int > > compat, enum keyType::option matchOpt=keyType::REGEX) const
entry * set(entry *entryPtr)
Assign a new entry, overwriting any existing entry.
A table of dynamically loaded libraries.
static dlLibraryTable & libs()
Table of global libraries.
Encapsulation of dynamic code dictionaries.
const string & libs() const noexcept
The code libs (LIB_LIBS)
const SHA1 & sha1() const noexcept
The SHA1 calculated from options, libs, include, code, etc.
const string & options() const noexcept
The code options (Make/options)
Tools for handling dynamic code compilation.
void addCopyFile(const fileName &name)
Add a file template name, which will be found and filtered.
void setFieldTemplates()
Define a filter variables TemplateType and FieldType.
void setFilterVariable(const word &key, const std::string &value)
Define a filter variable.
void addCompileFile(const fileName &name)
Add a file template name, which will be found and filtered.
void setMakeOptions(const std::string &content)
Define contents for Make/options.
virtual bool write()
Write the output fields.
A FieldMapper for finite-volume patch fields.
Abstract base class with a fat-interface to all derived classes covering all possible ways in which t...
A finiteVolume patch using a polyPatch and a fvBoundaryMesh.
This boundary condition provides a base class for 'mixed' type boundary conditions,...
virtual Field< Type > & refGrad()
virtual Field< Type > & refValue()
virtual scalarField & valueFraction()
A class for handling character strings derived from std::string.
A class for handling words, derived from Foam::string.
OBJstream os(runTime.globalPath()/outputName)
#define WarningInFunction
Report a warning using Foam::Warning.
Ostream & endl(Ostream &os)
Add newline and flush stream.
constexpr char nl
The newline '\n' character (0x0a)