12 namespace ShallowWater
15 const std::string &subsection )
16 : ParameterAcceptor(subsection)
19 add_parameter(
"gravity", gravity_,
"Gravitational constant [m/s^2]");
23 "mannings", mannings_,
"Roughness coefficient for friction source");
25 reference_water_depth_ = 1.;
26 add_parameter(
"reference water depth",
27 reference_water_depth_,
28 "Problem specific water depth reference");
30 dry_state_relaxation_sharp_ = 1.e2;
31 add_parameter(
"dry state relaxation sharp",
32 dry_state_relaxation_sharp_,
33 "Problem specific dry-state relaxation parameter");
35 dry_state_relaxation_mollified_ = 1.e2;
36 add_parameter(
"dry state relaxation mollified",
37 dry_state_relaxation_mollified_,
38 "Problem specific dry-state relaxation parameter");
44 const std::array<std::string, 2> HyperbolicSystem::component_names<1>{
49 const std::array<std::string, 3> HyperbolicSystem::component_names<2>{
54 const std::array<std::string, 4> HyperbolicSystem::component_names<3>{
55 {
"h",
"m_1",
"m_2",
"m_3"}};
59 const std::array<std::string, 2>
60 HyperbolicSystem::primitive_component_names<1>{{
"h",
"v"}};
64 const std::array<std::string, 3>
65 HyperbolicSystem::primitive_component_names<2>{{
"h",
"v_1",
"v_2"}};
69 const std::array<std::string, 4>
70 HyperbolicSystem::primitive_component_names<3>{
71 {
"h",
"v_1",
"v_2",
"v_3"}};
75 const std::array<std::string, 1> HyperbolicSystem::precomputed_names<1>{
80 const std::array<std::string, 1> HyperbolicSystem::precomputed_names<2>{
85 const std::array<std::string, 1> HyperbolicSystem::precomputed_names<3>{
90 const std::array<std::string, 1>
91 HyperbolicSystem::precomputed_initial_names<1>{{
"bathymetry"}};
95 const std::array<std::string, 1>
96 HyperbolicSystem::precomputed_initial_names<2>{{
"bathymetry"}};
100 const std::array<std::string, 1>
101 HyperbolicSystem::precomputed_initial_names<3>{{
"bathymetry"}};
HyperbolicSystem(const std::string &subsection="/HyperbolicSystem")