37#ifndef Foam_function1Base_H
38#define Foam_function1Base_H
89 const word& entryName,
96 const word& entryName,
144 template<class MeshType>
152 <<
"Object registry not set"
Top level data entry class for use in dictionaries. Provides a mechanism to specify a variable as a c...
Class to control time during OpenFOAM simulations that is also the top-level objectRegistry.
A list of keyword definitions, which are a keyword followed by a number of values (eg,...
const Time & time() const
Return the time database.
void resetDb(const objectRegistry *obrPtr=nullptr) noexcept
Reset the associated objectRegistry.
void operator=(const function1Base &)=delete
No copy assignment.
const objectRegistry & obr() const
Return the object registry.
bool isTime() const noexcept
Return true if this function was created with the time database.
const objectRegistry * obrPtr_
Pointer to an object registry.
const word & name() const noexcept
The name of the entry.
function1Base(const word &entryName, const objectRegistry *obrPtr=nullptr)
Construct from entry name and optional registry.
const MeshType & mesh(const word ®ionName=word::null) const
Return the mesh database if this Function1 was created using a mesh.
const objectRegistry * whichDb() const noexcept
Return the associated registry or nullptr.
virtual ~function1Base()
Destructor.
virtual void userTimeToTime(const Time &t)
Convert time.
const word name_
Name of entry.
Registry of regIOobjects.
const Type & lookupObject(const word &name, const bool recursive=false) const
Lookup and return const reference to the object of the given Type. Fatal if not found or the wrong ty...
constexpr refCount() noexcept
Default construct, initializing count to 0.
A class for handling words, derived from Foam::string.
Foam::word regionName(args.getOrDefault< word >("region", Foam::polyMesh::defaultRegion))
#define FatalErrorInFunction
Report an error message using Foam::FatalError.
Type & refCast(U &obj)
A dynamic_cast (for references) to Type reference.
errorManip< error > abort(error &err)
void rhs(fvMatrix< typename Expr::value_type > &m, const Expr &expression)
error FatalError
Error stream (stdout output on all processes), with additional 'FOAM FATAL ERROR' header text and sta...