Peano
Loading...
Searching...
No Matches
applications::exahype2::ShallowWater::bottomFriction Namespace Reference

Functions

template<auto gravity, auto param>
static auto manningFriction (const auto h, const auto hu, const auto hv)
 Computes the Manning bottom friction.
 

Function Documentation

◆ manningFriction()

template<auto gravity, auto param>
static auto applications::exahype2::ShallowWater::bottomFriction::manningFriction ( const auto h,
const auto hu,
const auto hv )
static

Computes the Manning bottom friction.

This function calculates the frictional using the empirical Manning formula. The result depends on the local water height and momentum components.

The friction coefficient is defined by the Manning parameter, which may need to be adjusted depending on the bathymetry, resolution, or physical characteristics of the domain.

Parameters
hWater height
hux-direction
hvy-direction
Returns
Bottom friction force contribution to the momentum equations

Definition at line 22 of file MeteotsunamiLaws.cpph.