Tsunami Project Lab
Loading...
Searching...
No Matches
tsunami_lab::setups::CircularDamBreakObstacle2d Class Reference

#include <CircularDamBreakObstacle2d.h>

Inheritance diagram for tsunami_lab::setups::CircularDamBreakObstacle2d:
Collaboration diagram for tsunami_lab::setups::CircularDamBreakObstacle2d:

Public Member Functions

 CircularDamBreakObstacle2d (t_real i_heightInside, t_real i_heightOutside, t_real i_damRadius, t_real i_centerX, t_real i_centerY)
 
t_real getHeight (t_real i_x, t_real i_y) const
 
t_real getMomentumX (t_real, t_real) const
 
t_real getMomentumY (t_real, t_real) const
 
t_real getBathymetry (t_real i_x, t_real i_y) const
 
- Public Member Functions inherited from tsunami_lab::setups::Setup
virtual ~Setup ()
 

Static Public Attributes

static constexpr t_real OBSTACLE_OFFSET_X = 25
 obstacle offset relative to the dam centre (m)
 
static constexpr t_real OBSTACLE_OFFSET_Y = 0
 
static constexpr t_real OBSTACLE_PEAK = 3
 peak elevation of the bump above the flat sea floor (m)
 
static constexpr t_real OBSTACLE_SIGMA = 5
 Gaussian width parameter (m); peak at r = 0, ~negligible past 4 σ
 

Constructor & Destructor Documentation

◆ CircularDamBreakObstacle2d()

tsunami_lab::setups::CircularDamBreakObstacle2d::CircularDamBreakObstacle2d ( t_real i_heightInside,
t_real i_heightOutside,
t_real i_damRadius,
t_real i_centerX,
t_real i_centerY )

Constructor.

Parameters
i_heightInsidesurface elevation inside the dam.
i_heightOutsidesurface elevation outside the dam.
i_damRadiusradius of the dam.
i_centerXx-coordinate of the dam centre.
i_centerYy-coordinate of the dam centre.
Author
Moritz Arnhold, Moritz Martin

DESCRIPTION

Two-dimensional circular dam break with submarine Gaussian bump.

Member Function Documentation

◆ getBathymetry()

tsunami_lab::t_real tsunami_lab::setups::CircularDamBreakObstacle2d::getBathymetry ( t_real i_x,
t_real i_y ) const
virtual

Bathymetry b = OBSTACLE_PEAK · exp(-r_obs² / (2 σ²)).

Implements tsunami_lab::setups::Setup.

◆ getHeight()

tsunami_lab::t_real tsunami_lab::setups::CircularDamBreakObstacle2d::getHeight ( t_real i_x,
t_real i_y ) const
virtual

Water column h = η - b at the queried point. Keeps η at the piecewise-constant base level so lake-at-rest holds outside the dam.

Implements tsunami_lab::setups::Setup.

◆ getMomentumX()

tsunami_lab::t_real tsunami_lab::setups::CircularDamBreakObstacle2d::getMomentumX ( t_real ,
t_real  ) const
virtual

Momentum in x-direction (always 0 — initial state at rest).

Implements tsunami_lab::setups::Setup.

◆ getMomentumY()

tsunami_lab::t_real tsunami_lab::setups::CircularDamBreakObstacle2d::getMomentumY ( t_real ,
t_real  ) const
virtual

Momentum in y-direction (always 0).

Implements tsunami_lab::setups::Setup.

Member Data Documentation

◆ OBSTACLE_OFFSET_X

t_real tsunami_lab::setups::CircularDamBreakObstacle2d::OBSTACLE_OFFSET_X = 25
staticconstexpr

obstacle offset relative to the dam centre (m)

◆ OBSTACLE_OFFSET_Y

t_real tsunami_lab::setups::CircularDamBreakObstacle2d::OBSTACLE_OFFSET_Y = 0
staticconstexpr

◆ OBSTACLE_PEAK

t_real tsunami_lab::setups::CircularDamBreakObstacle2d::OBSTACLE_PEAK = 3
staticconstexpr

peak elevation of the bump above the flat sea floor (m)

◆ OBSTACLE_SIGMA

t_real tsunami_lab::setups::CircularDamBreakObstacle2d::OBSTACLE_SIGMA = 5
staticconstexpr

Gaussian width parameter (m); peak at r = 0, ~negligible past 4 σ


The documentation for this class was generated from the following files: