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


Public Member Functions | |
| RareRare1d (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 rare-rare setup.
Two streams of water move away from each other, producing two rarefaction waves that travel outwards from the discontinuity. Left state has negative momentum, right state has positive momentum of the same magnitude; the water height is identical on both sides.
| tsunami_lab::setups::RareRare1d::RareRare1d | ( | 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 negative to the left and positive to the right of the discontinuity. |
| i_location | x-coordinate of the discontinuity. |
Implements the functions for a rare-rare problem, where to streams of water diverge from 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.