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);
67 const dictionary* ptr = dict_.findDict(
"codeContext", keyType::LITERAL);
68 return (ptr ? *ptr : dictionary::null);
81 : codedBase::codeDict(this->db()).subDict(name_)
90 const dynamicCodeContext& context
94 dynCode.setFilterVariable(
"typeName", name_);
97 dynCode.setFieldTemplates<Type>();
100 dynCode.addCompileFile(codeTemplateC);
103 dynCode.addCopyFile(codeTemplateH);
106 dynCode.setFilterVariable(
"verbose",
"true");
108 <<
"compile " << name_ <<
" sha1: " << context.sha1() <<
endl;
112 dynCode.setMakeOptions
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
183 name_(
dict.getCompat<
word>(
"name", {{
"redirectType", 1706}})),
184 redirectPatchFieldPtr_(
nullptr)
186 updateLibrary(name_);
200 redirectPatchFieldPtr_(
nullptr)
215 redirectPatchFieldPtr_(
nullptr)
225 if (!redirectPatchFieldPtr_)
235 constructDict.set(
"type", name_);
237 redirectPatchFieldPtr_.reset
242 this->internalField(),
254 contentPtr->
dict(this->codeContext());
259 << name_ <<
" Did not derive from dictionaryContent"
263 return *redirectPatchFieldPtr_;
276 updateLibrary(name_);
285 parent_bctype::updateCoeffs();
296 updateLibrary(name_);
310 os.writeEntry(
"name", name_);
312 codedBase::writeCodeDict(
os, dict_);
Abstract base class with a fat-interface to all derived classes covering all possible ways in which t...
A table of dynamically loaded libraries.
A class for handling words, derived from Foam::string.
virtual void write(Ostream &) const
Write.
Base class for function objects and boundary conditions using dynamic code that provides methods for ...
Ostream & endl(Ostream &os)
Add newline and flush stream.
const fvPatchField< Type > & redirectPatchField() const
Get reference to the underlying patch.
A class for handling character strings derived from std::string.
A wrapper for dictionary content, without operators that could affect inheritance patterns.
virtual void evaluate(const Pstream::commsTypes commsType=Pstream::commsTypes::blocking)
Evaluate the patch field, sets Updated to false.
This boundary condition supplies a fixed value constraint, and is the base class for a number of othe...
List< word > wordList
A List of words.
Generic templated field type.
tmp< faMatrix< Type > > operator==(const faMatrix< Type > &, const faMatrix< Type > &)
A finiteVolume patch using a polyPatch and a fvBoundaryMesh.
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.
codedFixedValueFvPatchField(const fvPatch &, const DimensionedField< Type, volMesh > &)
Construct from patch and internal field.
void writeEntry(const word &keyword, Ostream &os) const
Write the field as a dictionary entry.
commsTypes
Types of communications.
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.
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 updateCoeffs()
Update the coefficients associated with the patch field.
#define WarningInFunction
Report a warning using Foam::Warning.
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...
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.