68 "-I$(LIB_SRC)/finiteVolume/lnInclude \\\n" 69 "-I$(LIB_SRC)/meshTools/lnInclude \\\n" 70 "-I$(LIB_SRC)/sampling/lnInclude \\\n" 71 "-I$(LIB_SRC)/fvOptions/lnInclude \\\n" 73 +
"\n\nLIB_LIBS = \\\n" 77 +
" -lfiniteVolume \\\n" 86 return const_cast<Time&
>(mesh_.time()).libs();
93 return "fvOption:: " + name_;
100 redirectFvOptionPtr_.clear();
117 const word& modelType,
133 if (!redirectFvOptionPtr_.valid())
136 constructDict.
set(
"type", name_);
145 return redirectFvOptionPtr_();
158 <<
">::correct for source " << name_ <<
endl;
161 updateLibrary(name_);
162 redirectFvOption().correct(field);
176 <<
">::addSup for source " << name_ <<
endl;
179 updateLibrary(name_);
180 redirectFvOption().addSup(eqn, fieldi);
195 <<
">::addSup for source " << name_ <<
endl;
198 updateLibrary(name_);
199 redirectFvOption().addSup(rho, eqn, fieldi);
213 <<
">::constrain for source " << name_ <<
endl;
216 updateLibrary(name_);
217 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
Traits class for primitives.
virtual void clearRedirect() const
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.
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
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 abtract 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.: ...