16 #ifndef dealii_function_parser_h 17 #define dealii_function_parser_h 20 #include <deal.II/base/config.h> 22 #include <deal.II/base/auto_derivative_function.h> 23 #include <deal.II/base/exceptions.h> 24 #include <deal.II/base/point.h> 25 #include <deal.II/base/tensor.h> 26 #include <deal.II/base/thread_local_storage.h> 37 DEAL_II_NAMESPACE_OPEN
233 const double initial_time = 0.0,
234 const double h = 1e-8);
243 const std::string &constants =
"",
244 const std::string &variable_names = default_variable_names() +
246 const double h = 1e-8);
299 initialize(
const std::string & vars,
300 const std::vector<std::string> &expressions,
302 const bool time_dependent =
false);
312 initialize(
const std::string &vars,
313 const std::string &expression,
315 const bool time_dependent =
false);
323 default_variable_names();
332 value(
const Point<dim> &p,
const unsigned int component = 0)
const override;
348 const std::vector<std::string> &
349 get_expressions()
const;
358 <<
"Parsing Error at Column " << arg1
359 <<
". The parser said: " << arg2);
364 <<
"The number of components (" << arg1
365 <<
") is not equal to the number of expressions (" << arg2
371 #ifdef DEAL_II_WITH_MUPARSER 404 init_muparser()
const;
450 DEAL_II_NAMESPACE_CLOSE
#define DeclException2(Exception2, type1, type2, outsequence)
A class that provides a separate storage location on each thread that accesses the object...
LinearAlgebra::distributed::Vector< Number > Vector
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
std::vector< std::string > var_names
ConstMap::iterator ConstMapIterator
std::map< std::string, double > ConstMap
static ::ExceptionBase & ExcNotImplemented()
std::vector< std::string > expressions
std::map< std::string, double > constants