11#include <deal.II/base/function_parser.h>
15 namespace ScalarConservation
24 template <
int dim,
typename Number>
32 const std::string subsection)
34 , hyperbolic_system(hyperbolic_system)
36 expression_ =
"0.25 * x";
37 this->add_parameter(
"expression",
39 "A function expression for the initial state");
45 const auto set_up_muparser = [
this] {
52 std::make_unique<dealii::FunctionParser<dim>>(expression_);
56 this->parse_parameters_call_back.connect(set_up_muparser);
61 function_->set_time(t);
63 result[0] = function_->value(point);
70 std::string expression_;
71 std::unique_ptr<dealii::FunctionParser<dim>> function_;
Function(const HyperbolicSystem &hyperbolic_system, const std::string subsection)
typename View::state_type state_type
state_type compute(const dealii::Point< dim > &point, Number t) final
dealii::Tensor< 1, problem_dimension, Number > state_type
Euler::Description Description