16 #ifndef dealii_function_parser_h 17 #define dealii_function_parser_h 236 const double initial_time = 0.0,
237 const double h = 1
e-8);
246 const std::string &constants =
"",
247 const std::string &variable_names = default_variable_names() +
249 const double h = 1
e-8);
322 initialize(
const std::string & vars,
323 const std::vector<std::string> &expressions,
325 const bool time_dependent =
false);
335 initialize(
const std::string &vars,
336 const std::string &expression,
338 const bool time_dependent =
false);
346 default_variable_names();
355 value(
const Point<dim> &p,
const unsigned int component = 0)
const override;
371 const std::vector<std::string> &
372 get_expressions()
const;
381 <<
"Parsing Error at Column " << arg1
382 <<
". The parser said: " << arg2);
387 <<
"The number of components (" << arg1
388 <<
") is not equal to the number of expressions (" << arg2
394 #ifdef DEAL_II_WITH_MUPARSER 427 init_muparser()
const;
#define DeclException2(Exception2, type1, type2, outsequence)
A class that provides a separate storage location on each thread that accesses the object...
SymmetricTensor< 2, dim, Number > e(const Tensor< 2, dim, Number > &F)
static std::string default_variable_names()
Threads::ThreadLocalStorage< std::vector< std::unique_ptr< mu::Parser > > > fp
#define Assert(cond, exc)
Threads::ThreadLocalStorage< std::vector< double > > vars
#define DEAL_II_NAMESPACE_CLOSE
std::vector< std::string > var_names
#define DEAL_II_NAMESPACE_OPEN
std::map< std::string, double > ConstMap
static ::ExceptionBase & ExcNotImplemented()
std::vector< std::string > expressions
std::map< std::string, double > constants