120 #ifndef fv_CodedFvSource_H 121 #define fv_CodedFvSource_H 140 public fv::cellSetOption,
182 =
"codedFvOptionTemplate.C";
186 =
"codedFvOptionTemplate.H";
199 const word& modelType,
const fvMesh & mesh() const noexcept
Return const access to the mesh database.
A list of keyword definitions, which are a keyword followed by a number of values (eg...
virtual void correct(GeometricField< Type, fvPatchField, volMesh > &)
Correct field.
virtual const dictionary & codeDict() const
Get the dictionary to initialize the code context.
virtual void clearRedirect() const
Clear redirected object(s)
Generic GeometricField class.
virtual void constrain(fvMatrix< Type > &eqn, const label fieldi)
Set value.
fv::option & redirectOption() const
Dynamically compiled fvOption.
virtual bool read(const dictionary &dict)
Read source dictionary.
A class for handling words, derived from Foam::string.
static constexpr const char *const codeTemplateH
Name of the H code template to be used.
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
Description (type + name) for the output.
const word & name() const noexcept
Return const access to the source name.
virtual void prepare(dynamicCode &, const dynamicCodeContext &) const
Adapt the context for the current object.
A table of dynamically loaded libraries.
TypeName("coded")
Runtime type information.
static constexpr const char *const codeTemplateC
Name of the C code template to be used.
CodedSource(const word &name, const word &modelType, const dictionary &dict, const fvMesh &mesh)
Construct from components.
Tools for handling dynamic code compilation.
virtual void addSup(fvMatrix< Type > &eqn, const label fieldi)
Explicit/implicit matrix contributions.
Encapsulation of dynamic code dictionaries.
autoPtr< fv::option > redirectOptionPtr_
Underlying code.
Mesh data needed to do the Finite Volume discretisation.
virtual dlLibraryTable & libs() const
Mutable access to the loaded dynamic libraries.
Pointer management similar to std::unique_ptr, with some additional methods and type checking...
Base abstract class for handling finite volume options (i.e. fvOption).