29const std::vector<std::string> &
32 return this->expressions;
39 const double initial_time,
47 const std::string &constants,
48 const std::string &variable_names,
74 const std::vector<std::string> &expressions,
75 const std::map<std::string, double> &constants,
76 const bool time_dependent)
78 AssertThrow(this->n_components == expressions.size(),
79 ExcInvalidExpressionSize(this->n_components, expressions.size()));
81 variables, expressions, constants, time_dependent);
89 const std::string &expression,
90 const std::map<std::string, double> &constants,
91 const bool time_dependent)
104 const unsigned int component)
const
106 return this->do_value(p, this->get_time(), component);
FunctionParser(const unsigned int n_components=1, const double initial_time=0.0, const double h=1e-8)
virtual void initialize(const std::string &vars, const std::vector< std::string > &expressions, const ConstMap &constants, const bool time_dependent=false) override
virtual double value(const Point< dim > &p, const unsigned int component=0) const override
const std::vector< std::string > & get_expressions() const
static const unsigned int max_int_value
std::map< std::string, double > constants
virtual void initialize(const std::string &vars, const std::vector< std::string > &expressions, const std::map< std::string, double > &constants, const bool time_dependent=false)
#define DEAL_II_NAMESPACE_OPEN
#define DEAL_II_NAMESPACE_CLOSE
#define AssertThrow(cond, exc)
std::vector< std::string > split_string_list(const std::string &s, const std::string &delimiter=",")