Tsunami Project Lab
Loading...
Searching...
No Matches
CircularDamBreakObstacle2d.h
Go to the documentation of this file.
1
22#ifndef TSUNAMI_LAB_SETUPS_CIRCULAR_DAM_BREAK_OBSTACLE_2D_H
23#define TSUNAMI_LAB_SETUPS_CIRCULAR_DAM_BREAK_OBSTACLE_2D_H
24
25#include "Setup.h"
26
27namespace tsunami_lab {
28 namespace setups {
29 class CircularDamBreakObstacle2d;
30 }
31}
32
34 private:
36 t_real m_heightInside = 0;
37
39 t_real m_heightOutside = 0;
40
42 t_real m_damRadius = 0;
43
45 t_real m_centerX = 0;
46
48 t_real m_centerY = 0;
49
50 public:
52 static constexpr t_real OBSTACLE_OFFSET_X = 25;
53 static constexpr t_real OBSTACLE_OFFSET_Y = 0;
54
56 static constexpr t_real OBSTACLE_PEAK = 3;
57
59 static constexpr t_real OBSTACLE_SIGMA = 5;
60
70 CircularDamBreakObstacle2d( t_real i_heightInside,
71 t_real i_heightOutside,
72 t_real i_damRadius,
73 t_real i_centerX,
74 t_real i_centerY );
75
81 t_real i_y ) const;
82
87 t_real ) const;
88
93 t_real ) const;
94
99 t_real i_y ) const;
100};
101
102#endif
Definition CircularDamBreakObstacle2d.h:33
static constexpr t_real OBSTACLE_SIGMA
Gaussian width parameter (m); peak at r = 0, ~negligible past 4 σ
Definition CircularDamBreakObstacle2d.h:59
t_real getMomentumX(t_real, t_real) const
Definition CircularDamBreakObstacle2d.cpp:40
t_real getBathymetry(t_real i_x, t_real i_y) const
Definition CircularDamBreakObstacle2d.cpp:22
t_real getHeight(t_real i_x, t_real i_y) const
Definition CircularDamBreakObstacle2d.cpp:30
t_real getMomentumY(t_real, t_real) const
Definition CircularDamBreakObstacle2d.cpp:45
static constexpr t_real OBSTACLE_OFFSET_X
obstacle offset relative to the dam centre (m)
Definition CircularDamBreakObstacle2d.h:52
CircularDamBreakObstacle2d(t_real i_heightInside, t_real i_heightOutside, t_real i_damRadius, t_real i_centerX, t_real i_centerY)
Definition CircularDamBreakObstacle2d.cpp:10
static constexpr t_real OBSTACLE_OFFSET_Y
Definition CircularDamBreakObstacle2d.h:53
static constexpr t_real OBSTACLE_PEAK
peak elevation of the bump above the flat sea floor (m)
Definition CircularDamBreakObstacle2d.h:56
Definition Setup.h:21
Definition constants.h:12
float t_real
floating point type
Definition constants.h:17