Go to the documentation of this file.
41 return this->db().time().
libs();
50 + this->
patch().name()
52 + this->internalField().name();
59 redirectPatchFieldPtr_.reset(
nullptr);
68 return (ptr ? *ptr : dictionary::null);
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)
172 dictionaryContent::copyDict
179 "value",
"refValue",
"refGradient",
"valueFraction"
183 name_(
dict.getCompat<
word>(
"name", {{
"redirectType", 1706}})),
184 redirectPatchFieldPtr_(
nullptr)
186 updateLibrary(name_);
200 redirectPatchFieldPtr_(
nullptr)
215 redirectPatchFieldPtr_(
nullptr)
225 if (!redirectPatchFieldPtr_)
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_);
319 os.writeEntry(
"name", name_);
321 codedBase::writeCodeDict(
os, dict_);
Abstract base class with a fat-interface to all derived classes covering all possible ways in which t...
virtual const dictionary & codeDict() const
The code dictionary. Inline "code" or from system/codeDict.
dictionary * findDict(const word &keyword, enum keyType::option matchOpt=keyType::REGEX)
Find and return a sub-dictionary pointer if present.
virtual scalarField & valueFraction()
A table of dynamically loaded libraries.
A class for handling words, derived from Foam::string.
virtual Field< Type > & refValue()
Tools for handling dynamic code compilation.
Encapsulation of dynamic code dictionaries.
Base class for function objects and boundary conditions using dynamic code that provides methods for ...
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.
Ostream & endl(Ostream &os)
Add newline and flush stream.
A class for handling character strings derived from std::string.
A wrapper for dictionary content, without operators that could affect inheritance patterns.
void addCopyFile(const fileName &name)
Add a file template name, which will be found and filtered.
const SHA1 & sha1() const noexcept
The SHA1 calculated from options, libs, include, code, etc.
List< word > wordList
A List of words.
void addCompileFile(const fileName &name)
Add a file template name, which will be found and filtered.
virtual dlLibraryTable & libs() const
Mutable access to the loaded dynamic libraries.
A finiteVolume patch using a polyPatch and a fvBoundaryMesh.
virtual string description() const
Description (type + name) for the output.
const mixedFvPatchField< Type > & redirectPatchField() const
Get reference to the underlying patchField.
const string & libs() const noexcept
The code libs (LIB_LIBS)
virtual const dictionary & codeContext() const
Additional 'codeContext' dictionary to pass through.
codedMixedFvPatchField(const fvPatch &, const DimensionedField< Type, volMesh > &)
Construct from patch and internal field.
virtual void clearRedirect() const
Clear redirected object(s)
A list of keyword definitions, which are a keyword followed by a number of values (eg,...
OBJstream os(runTime.globalPath()/outputName)
Macros for easy insertion into run-time selection tables.
Input from string buffer, using a ISstream. Always UNCOMPRESSED.
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 dlLibraryTable & libs()
Table of global libraries.
void setFieldTemplates()
Define a filter variables TemplateType and FieldType.
commsTypes
Types of communications.
void setMakeOptions(const std::string &content)
Define contents for Make/options.
const std::string patch
OpenFOAM patch number as a std::string.
const dictionary & dict() const noexcept
Read-access to the content.
Output to string buffer, using a OSstream. Always UNCOMPRESSED.
virtual void evaluate(const Pstream::commsTypes commsType=Pstream::commsTypes::blocking)
Evaluate the patch field.
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.
#define WarningInFunction
Report a warning using Foam::Warning.
const string & options() const noexcept
The code options (Make/options)
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...
string evaluate(label fieldWidth, const std::string &s, size_t pos=0, size_t len=std::string::npos)
String evaluation with specified (positive, non-zero) field width.