Function

class Function : public godzilla::Object

Base class for function objects.

Subclassed by godzilla::ConstantFunction, godzilla::ParsedFunction, godzilla::PiecewiseConstant, godzilla::PiecewiseLinear

Public Functions

virtual void register_callback(mu::Parser &parser) = 0

Register this function with the function parser.

Parameters:

parser – The mu::Parser object we register this function with

Int get_dimension() const

Get problem spatial dimension.

Returns:

Spatial dimension