16 #ifndef dealii__function_parser_h 17 #define dealii__function_parser_h 20 #include <deal.II/base/config.h> 21 #include <deal.II/base/exceptions.h> 22 #include <deal.II/base/function.h> 23 #include <deal.II/base/tensor.h> 24 #include <deal.II/base/point.h> 25 #include <deal.II/base/thread_local_storage.h> 34 DEAL_II_NAMESPACE_OPEN
37 template <
typename>
class Vector;
191 const double initial_time = 0.0);
243 void initialize (
const std::string &vars,
244 const std::vector<std::string> &expressions,
245 const ConstMap &constants,
246 const bool time_dependent =
false);
255 void initialize (
const std::string &vars,
256 const std::string &expression,
257 const ConstMap &constants,
258 const bool time_dependent =
false);
267 default_variable_names ();
276 const unsigned int component = 0)
const;
284 virtual void vector_value (
const Point<dim> &p,
293 <<
"Parsing Error at Column " << arg1
294 <<
". The parser said: " << arg2);
298 <<
"The number of components (" << arg1
299 <<
") is not equal to the number of expressions (" 305 #ifdef DEAL_II_WITH_MUPARSER 340 void init_muparser()
const;
373 Assert (
false, ExcNotImplemented());
380 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...
ConstMap::iterator ConstMapIterator
Threads::ThreadLocalStorage< std::vector< mu::Parser > > fp
static std::string default_variable_names()
#define Assert(cond, exc)
Threads::ThreadLocalStorage< std::vector< double > > vars
std::vector< std::string > var_names
std::map< std::string, double > ConstMap
std::vector< std::string > expressions
std::map< std::string, double > constants