36 {
"codeAddSup",
"codeCorrect",
"codeInclude",
"codeSetValue",
"localCode"};
70 "-I$(LIB_SRC)/finiteVolume/lnInclude \\\n" 71 "-I$(LIB_SRC)/meshTools/lnInclude \\\n" 72 "-I$(LIB_SRC)/sampling/lnInclude \\\n" 73 "-I$(LIB_SRC)/fvOptions/lnInclude \\\n" 75 +
"\n\nLIB_LIBS = \\\n" 79 +
" -lfiniteVolume \\\n" 88 return const_cast<Time&
>(mesh_.time()).libs();
95 return "fvOption:: " + name_;
102 redirectFvOptionPtr_.clear();
126 const word& modelType,
142 if (!redirectFvOptionPtr_.valid())
145 constructDict.
set(
"type", name_);
154 return redirectFvOptionPtr_();
167 <<
">::correct for source " << name_ <<
endl;
170 updateLibrary(name_);
171 redirectFvOption().correct(field);
185 <<
">::addSup for source " << name_ <<
endl;
188 updateLibrary(name_);
189 redirectFvOption().addSup(eqn, fieldi);
204 <<
">::addSup for source " << name_ <<
endl;
207 updateLibrary(name_);
208 redirectFvOption().addSup(rho, eqn, fieldi);
222 <<
">::constrain for source " << name_ <<
endl;
225 updateLibrary(name_);
226 redirectFvOption().constrain(eqn, fieldi);
intWM_LABEL_SIZE_t label
A label is an int32_t or int64_t as specified by the pre-processor macro WM_LABEL_SIZE.
A list of keyword definitions, which are a keyword followed by any number of values (e...
void setMakeOptions(const std::string &content)
Define contents for Make/options.
virtual void correct(GeometricField< Type, fvPatchField, volMesh > &)
Correct field.
Ostream & endl(Ostream &os)
Add newline and flush stream.
virtual const dictionary & codeDict() const
Get the dictionary to initialize the codeContext.
Traits class for primitives.
virtual void clearRedirect() const
Clear any redirected objects.
Generic GeometricField class.
virtual void constrain(fvMatrix< Type > &eqn, const label fieldi)
Set value.
void addCompileFile(const fileName &name)
Add a file template name, which will be found and filtered.
Class to control time during OpenFOAM simulations that is also the top-level objectRegistry.
virtual const wordList & codeKeys() const
Get the keywords associated with source code.
tmp< DimensionedField< TypeR, GeoMesh > > New(const tmp< DimensionedField< TypeR, GeoMesh >> &tdf1, const word &name, const dimensionSet &dimensions)
option & redirectFvOption() const
Dynamically compiled fvOption.
A class for handling words, derived from string.
A special matrix type and solver, designed for finite volume solutions of scalar equations. Face addressing is used to make all matrix assembly and solution loops vectorise.
virtual string description() const
Return a description (type + name) for the output.
virtual void prepare(dynamicCode &, const dynamicCodeContext &) const
Adapt the context for the current object.
A table of dynamically loaded libraries.
CodedSource(const word &name, const word &modelType, const dictionary &dict, const fvMesh &mesh)
Construct from components.
const string & libs() const
Return the code-libs.
Tools for handling dynamic code compilation.
virtual void addSup(fvMatrix< Type > &eqn, const label fieldi)
Explicit and implicit matrix contributions.
Encapsulation of dynamic code dictionaries.
void setFilterVariable(const word &key, const std::string &value)
Define a filter variable.
const string & options() const
Return the code-options.
Mesh data needed to do the Finite Volume discretisation.
virtual dlLibraryTable & libs() const
Get the loaded dynamic libraries.
void addCopyFile(const fileName &name)
Add a file template name, which will be found and filtered.
A special matrix type and solver, designed for finite volume solutions of scalar equations.
void set(entry *)
Assign a new entry, overwrite any existing entry.
Cell-set options abstract base class. Provides a base set of controls, e.g.:
A class for handling character strings derived from std::string.
Finite volume options abstract base class. Provides a base set of controls, e.g.: ...