39 const std::string subsection)
41 , hyperbolic_system_(hyperbolic_system)
44 this->add_parameter(
"jet width",
46 "The width of the jet coming out of boundary");
50 if constexpr (View::have_energy_equation)
51 jet_state_[2] = 0.4127;
53 "primitive jet state",
55 "1d primitive state [rho, u, p] for jet state (or [rho, u] for "
56 "the barotropic Euler module)");
58 ambient_state_[0] = 5.0;
59 ambient_state_[1] = 0.0;
60 if constexpr (View::have_energy_equation)
61 ambient_state_[2] = 0.4127;
63 "primitive ambient right",
65 "1d primitive state [rho, u, p] for ambient state (or [rho, u] for "
66 "the barotropic Euler module)");
68 const auto convert_states = [&]() {
69 const auto view = hyperbolic_system_.template view<dim, Number>();
70 state_left_ = view.from_initial_state(jet_state_);
71 state_right_ = view.from_initial_state(ambient_state_);
73 this->parse_parameters_call_back.connect(convert_states);