|
Tsunami Project Lab
|
#include <ShockShock1d.h>


Public Member Functions | |
| ShockShock1d (t_real i_height, t_real i_momentum, t_real i_location) | |
| t_real | getHeight (t_real, t_real) const |
| t_real | getMomentumX (t_real i_x, t_real) const |
| t_real | getMomentumY (t_real, t_real) const |
Public Member Functions inherited from tsunami_lab::setups::Setup | |
| virtual | ~Setup () |
1d shock-shock setup.
Two streams of water move towards each other and collide at the discontinuity. Left state has positive momentum, right state has negative momentum of the same magnitude; the water height is identical on both sides.
| tsunami_lab::setups::ShockShock1d::ShockShock1d | ( | t_real | i_height, |
| t_real | i_momentum, | ||
| t_real | i_location ) |
Constructor.
| i_height | water height on both sides of the discontinuity. |
| i_momentum | magnitude of the momentum; applied positive to the left and negative to the right of the discontinuity. |
| i_location | x-coordinate of the discontinuity. |
Implements the functions for a shock-shock problem, where to opposing streams of water crash into another
|
virtual |
|
virtual |
Gets the momentum in x-direction.
| i_x | x-coordinate of the queried point. |
Implements tsunami_lab::setups::Setup.
|
virtual |
Gets the momentum in y-direction.
Implements tsunami_lab::setups::Setup.