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

#include <RareRare1d.h>

Inheritance diagram for tsunami_lab::setups::RareRare1d:
Collaboration diagram for tsunami_lab::setups::RareRare1d:

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 ()
 

Detailed Description

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.

Constructor & Destructor Documentation

◆ RareRare1d()

tsunami_lab::setups::RareRare1d::RareRare1d ( t_real i_height,
t_real i_momentum,
t_real i_location )

Constructor.

Parameters
i_heightwater height on both sides of the discontinuity.
i_momentummagnitude of the momentum; applied negative to the left and positive to the right of the discontinuity.
i_locationx-coordinate of the discontinuity.
Author
Moritz Arnhold, Moritz Martin

DESCRIPTION

Implements the functions for a rare-rare problem, where to streams of water diverge from another

Member Function Documentation

◆ getHeight()

tsunami_lab::t_real tsunami_lab::setups::RareRare1d::getHeight ( t_real ,
t_real  ) const
virtual

Gets the water height at a given point.

Returns
water height.

Implements tsunami_lab::setups::Setup.

◆ getMomentumX()

tsunami_lab::t_real tsunami_lab::setups::RareRare1d::getMomentumX ( t_real i_x,
t_real  ) const
virtual

Gets the momentum in x-direction.

Parameters
i_xx-coordinate of the queried point.
Returns
momentum in x-direction (negative left of the discontinuity, positive right of it).

Implements tsunami_lab::setups::Setup.

◆ getMomentumY()

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

Gets the momentum in y-direction.

Returns
momentum in y-direction (always 0 in the 1d rare-rare setup).

Implements tsunami_lab::setups::Setup.


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