ParsedFunction

Parameters

  • Optional:
    • constants (std::map<std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> >, double, std::less<std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > >, std::allocator<std::pair<std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > const, double> > >) - Constants

    • function ([String, …]) - Text representation of the function to evaluate (one per component)

class ParsedFunction : public godzilla::Function

Parsed function.

Public Functions

virtual void register_callback(mu::Parser &parser) override

Register this function with the function parser.

Parameters:

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

virtual void evaluate(Real time, const Real x[], Scalar u[])

Evaluate the function.

Parameters:
  • time – The time at which to sample

  • x – The coordinates

  • u – The computed values