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/auto_derivative_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> 35 DEAL_II_NAMESPACE_OPEN
38 template <
typename>
class Vector;
208 const double initial_time = 0.0,
209 const double h = 1e-8);
264 const bool time_dependent =
false);
274 const std::string &expression,
276 const bool time_dependent =
false);
294 const unsigned int component = 0)
const;
311 <<
"Parsing Error at Column " << arg1
312 <<
". The parser said: " << arg2);
316 <<
"The number of components (" << arg1
317 <<
") is not equal to the number of expressions (" 323 #ifdef DEAL_II_WITH_MUPARSER 334 #if TBB_VERSION_MAJOR >= 4 407 DEAL_II_NAMESPACE_CLOSE
FunctionParser(const unsigned int n_components=1, const double initial_time=0.0, const double h=1e-8)
Threads::ThreadLocalStorage< std::vector< std::shared_ptr< mu::Parser > > > fp
#define DeclException2(Exception2, type1, type2, outsequence)
const unsigned int n_components
A class that provides a separate storage location on each thread that accesses the object...
ConstMap::iterator ConstMapIterator
virtual double value(const Point< dim > &p, const unsigned int component=0) const
static std::string default_variable_names()
#define Assert(cond, exc)
Threads::ThreadLocalStorage< std::vector< double > > vars
void init_muparser() const
static ::ExceptionBase & ExcInvalidExpressionSize(int arg1, int arg2)
static ::ExceptionBase & ExcParseError(int arg1, char *arg2)
virtual void vector_value(const Point< dim > &p, Vector< double > &values) const
std::vector< std::string > var_names
void initialize(const std::string &vars, const std::vector< std::string > &expressions, const ConstMap &constants, const bool time_dependent=false)
std::map< std::string, double > ConstMap
static ::ExceptionBase & ExcNotImplemented()
std::vector< std::string > expressions
std::map< std::string, double > constants