Go to the documentation of this file.
72 "-I$(LIB_SRC)/finiteVolume/lnInclude \\\n"
73 "-I$(LIB_SRC)/fvOptions/lnInclude \\\n"
74 "-I$(LIB_SRC)/meshTools/lnInclude \\\n"
75 "-I$(LIB_SRC)/sampling/lnInclude \\\n"
77 +
"\n\nLIB_LIBS = \\\n"
81 " -lfiniteVolume \\\n"
90 return mesh_.time().
libs();
97 return "fvOption::" + name_;
104 redirectFvOptionPtr_.clear();
121 const word& modelType,
137 if (!redirectFvOptionPtr_)
140 constructDict.
set(
"type", name_);
141 constructDict.
changeKeyword(modelType_ &
"Coeffs", name_ &
"Coeffs");
150 return *redirectFvOptionPtr_;
162 <<
">::correct for source " << name_ <<
endl;
164 updateLibrary(name_);
165 redirectFvOption().correct(
field);
178 <<
">::addSup for source " << name_ <<
endl;
180 updateLibrary(name_);
181 redirectFvOption().addSup(eqn, fieldi);
195 <<
">::addSup for source " << name_ <<
endl;
197 updateLibrary(name_);
198 redirectFvOption().addSup(
rho, eqn, fieldi);
211 <<
">::constrain for source " << name_ <<
endl;
213 updateLibrary(name_);
214 redirectFvOption().constrain(eqn, fieldi);
const string & libs() const
Return the code-libs.
virtual dlLibraryTable & libs() const
Mutable access to the loaded dynamic libraries.
A table of dynamically loaded libraries.
bool changeKeyword(const keyType &oldKeyword, const keyType &newKeyword, bool overwrite=false)
Change the keyword for an entry,.
A class for handling words, derived from Foam::string.
Intermediate abstract class for handling cell-set options for the derived fvOptions.
Tools for handling dynamic code compilation.
option & redirectFvOption() const
Dynamically compiled fvOption.
Encapsulation of dynamic code dictionaries.
virtual void clearRedirect() const
Clear any redirected objects.
Ostream & endl(Ostream &os)
Add newline and flush stream.
A class for handling character strings derived from std::string.
entry * set(entry *entryPtr)
Assign a new entry, overwriting any existing entry.
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 addCompileFile(const fileName &name)
Add a file template name, which will be found and filtered.
virtual void correct(GeometricField< Type, fvPatchField, volMesh > &)
Correct field.
Base abstract class for handling finite volume options (i.e. fvOption).
word name(const complex &c)
Return string representation of complex.
A list of keyword definitions, which are a keyword followed by a number of values (eg,...
const string & options() const
Return the code-options.
Mesh data needed to do the Finite Volume discretisation.
CodedSource(const word &name, const word &modelType, const dictionary &dict, const fvMesh &mesh)
Construct from components.
void setFilterVariable(const word &key, const std::string &value)
Define a filter variable.
static dlLibraryTable & libs()
Table of global libraries.
virtual const dictionary & codeDict() const
Get the dictionary to initialize the codeContext.
tmp< DimensionedField< TypeR, GeoMesh > > New(const tmp< DimensionedField< TypeR, GeoMesh >> &tdf1, const word &name, const dimensionSet &dimensions)
Global function forwards to reuseTmpDimensionedField::New.
void setMakeOptions(const std::string &content)
Define contents for Make/options.
#define DebugInfo
Report an information message using Foam::Info.
virtual string description() const
Return a description (type + name) for the output.
virtual void constrain(fvMatrix< Type > &eqn, const label fieldi)
Set value.
Traits class for primitives.
virtual void addSup(fvMatrix< Type > &eqn, const label fieldi)
Explicit/implicit matrix contributions.
A special matrix type and solver, designed for finite volume solutions of scalar equations....
virtual void prepare(dynamicCode &, const dynamicCodeContext &) const
Adapt the context for the current object.