|
Reference documentation for deal.II version 9.2.0
|
\(\newcommand{\dealvcentcolon}{\mathrel{\mathop{:}}}\)
\(\newcommand{\dealcoloneq}{\dealvcentcolon\mathrel{\mkern-1.2mu}=}\)
\(\newcommand{\jump}[1]{\left[\!\left[ #1 \right]\!\right]}\)
\(\newcommand{\average}[1]{\left\{\!\left\{ #1 \right\}\!\right\}}\)
Go to the documentation of this file.
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);
249 const double h = 1
e-8);
325 const bool time_dependent =
false);
336 const std::string &expression,
338 const bool time_dependent =
false);
355 value(
const Point<dim> &p,
const unsigned int component = 0)
const override;
371 const std::vector<std::string> &
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
Threads::ThreadLocalStorage< std::vector< std::unique_ptr< mu::Parser > > > fp
static ::ExceptionBase & ExcNotImplemented()
FunctionParser(const unsigned int n_components=1, const double initial_time=0.0, const double h=1e-8)
void init_muparser() const
const unsigned int n_components
SymmetricTensor< 2, dim, Number > e(const Tensor< 2, dim, Number > &F)
static ::ExceptionBase & ExcParseError(int arg1, std::string arg2)
static std::string default_variable_names()
virtual double value(const Point< dim > &p, const unsigned int component=0) const override
std::map< std::string, double > ConstMap
virtual ~FunctionParser() override
#define DEAL_II_NAMESPACE_OPEN
virtual void vector_value(const Point< dim > &p, Vector< double > &values) const override
std::map< std::string, double > constants
std::vector< std::string > expressions
A class that provides a separate storage location on each thread that accesses the object.
static ::ExceptionBase & ExcInvalidExpressionSize(int arg1, int arg2)
Threads::ThreadLocalStorage< std::vector< double > > vars
void initialize(const std::string &vars, const std::vector< std::string > &expressions, const ConstMap &constants, const bool time_dependent=false)
std::vector< std::string > var_names
#define Assert(cond, exc)
const std::vector< std::string > & get_expressions() const
FunctionParser & operator=(const FunctionParser &)=delete
#define DEAL_II_NAMESPACE_CLOSE
#define DeclException2(Exception2, type1, type2, outsequence)