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

#include <TsunamiEvent2d.h>

Inheritance diagram for tsunami_lab::setups::TsunamiEvent2d:
Collaboration diagram for tsunami_lab::setups::TsunamiEvent2d:

Public Member Functions

 TsunamiEvent2d (std::string i_bathyPath, std::string i_displPath)
 
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
 
t_real domainLengthX () const
 
t_real domainLengthY () const
 
- Public Member Functions inherited from tsunami_lab::setups::Setup
virtual ~Setup ()
 

Constructor & Destructor Documentation

◆ TsunamiEvent2d()

tsunami_lab::setups::TsunamiEvent2d::TsunamiEvent2d ( std::string i_bathyPath,
std::string i_displPath )

Constructor — loads the two input files. Either may use the (y, x) or (x, y) layout for the data variable; io::NetCdf::read normalises both into canonical (y, x).

Parameters
i_bathyPathpath to the bathymetry netCDF file.
i_displPathpath to the displacement netCDF file.
Author
Moritz Arnhold, Moritz Martin

DESCRIPTION

Two-dimensional tsunami event setup driven by netCDF input (assignment 5.2 task 3).

Member Function Documentation

◆ domainLengthX()

t_real tsunami_lab::setups::TsunamiEvent2d::domainLengthX ( ) const
inline

Length of the bathymetry file's x-extent — i.e. the maximum x-coordinate the simulation can query (sim coords run from 0 to this value).

◆ domainLengthY()

t_real tsunami_lab::setups::TsunamiEvent2d::domainLengthY ( ) const
inline

Length of the bathymetry file's y-extent.

◆ getBathymetry()

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

Bathymetry per spec: pool floor offset by the wet/dry tolerance plus the earthquake displacement.

Implements tsunami_lab::setups::Setup.

◆ getHeight()

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

Water height per spec.

Implements tsunami_lab::setups::Setup.

◆ getMomentumX()

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

Momentum in x-direction (always 0).

Implements tsunami_lab::setups::Setup.

◆ getMomentumY()

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

Momentum in y-direction (always 0).

Implements tsunami_lab::setups::Setup.


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