16#ifndef dealii_tensor_function_parser_h
17#define dealii_tensor_function_parser_h
105template <
int rank,
int dim,
typename Number =
double>
128 const std::string &expression,
203 const bool time_dependent =
false)
override;
214 const std::string &expression,
216 const bool time_dependent =
false);
243 const std::vector<std::string> &
253 <<
"Parsing Error at Column " << arg1
254 <<
". The parser said: " << arg2);
259 <<
"The number of components (" << arg1
260 <<
") is not equal to the number of expressions (" << arg2
272template <
int rank,
int dim,
typename Number>
TensorFunctionParser & operator=(const TensorFunctionParser &)=delete
virtual Tensor< rank, dim, Number > value(const Point< dim > &p) const override
TensorFunctionParser(const TensorFunctionParser &)=delete
TensorFunctionParser(TensorFunctionParser &&)=delete
unsigned int n_components
TensorFunctionParser & operator=(TensorFunctionParser &&)=delete
virtual void value_list(const std::vector< Point< dim > > &p, std::vector< Tensor< rank, dim, Number > > &values) const override
virtual void initialize(const std::string &vars, const std::vector< std::string > &expressions, const ConstMap &constants, const bool time_dependent=false) override
static std::string default_variable_names()
std::map< std::string, double > ConstMap
const std::vector< std::string > & get_expressions() const
std::vector< std::string > expressions
std::map< std::string, double > constants
#define DEAL_II_NAMESPACE_OPEN
#define DEAL_II_NAMESPACE_CLOSE
static ::ExceptionBase & ExcParseError(int arg1, std::string arg2)
static ::ExceptionBase & ExcNotImplemented()
#define Assert(cond, exc)
static ::ExceptionBase & ExcInvalidExpressionSize(int arg1, int arg2)
#define DeclException2(Exception2, type1, type2, outsequence)