10template <auto f0, auto beta>
12 return f0 + (beta * y);
17 constexpr auto D2R = M_PI / 180.0;
18 return 2.0 * omega * std::sin(D2R * latDeg);
21template <auto gravity, auto param>
24 const auto h73 = (h * h * std::cbrt(h));
26 return -gravity * param * param * std::hypot(hu, hv) / h73;
static auto manningFriction(const auto h, const auto hu, const auto hv)
Computes the Manning bottom friction.
static auto constant()
Returns the Coriolis parameter f for a given position.
static auto betaPlane(const auto y)
Returns the Coriolis parameter f for a given position.
static auto sphere(const auto latDeg)
Returns the Coriolis parameter f for a given position.