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

Public Member Functions | |
| WavePropagation () | |
| virtual | ~WavePropagation () |
| virtual void | timeStep (t_real i_scaling)=0 |
| virtual void | setGhostBoundary (BoundaryCondition i_left, BoundaryCondition i_right, BoundaryCondition i_bottom, BoundaryCondition i_top)=0 |
| virtual void | setGhostOutflow ()=0 |
| virtual void | setGhostReflection ()=0 |
| virtual t_idx | getStride ()=0 |
| virtual t_real const * | getHeight ()=0 |
| virtual t_real const * | getMomentumX ()=0 |
| virtual t_real const * | getMomentumY ()=0 |
| virtual t_real const * | getBathymetry ()=0 |
| virtual void | setHeight (t_idx i_ix, t_idx i_iy, t_real i_h)=0 |
| virtual void | setMomentumX (t_idx i_ix, t_idx i_iy, t_real i_hu)=0 |
| virtual void | setMomentumY (t_idx i_ix, t_idx i_iy, t_real i_hv)=0 |
| virtual void | setBathymetry (t_idx i_ix, t_idx i_iy, t_real i_b)=0 |
Protected Attributes | |
| T | solver |
|
inline |
|
inlinevirtual |
Virtual destructor for base class.
|
pure virtual |
Gets the cells' bathymetry.
Implemented in tsunami_lab::patches::WavePropagation1d< T >, and tsunami_lab::patches::WavePropagation2d< T >.
|
pure virtual |
Gets cells' water heights.
Implemented in tsunami_lab::patches::WavePropagation1d< T >, and tsunami_lab::patches::WavePropagation2d< T >.
|
pure virtual |
Gets the cells' momenta in x-direction.
Implemented in tsunami_lab::patches::WavePropagation1d< T >, and tsunami_lab::patches::WavePropagation2d< T >.
|
pure virtual |
Gets the cells' momenta in y-direction.
Implemented in tsunami_lab::patches::WavePropagation1d< T >, and tsunami_lab::patches::WavePropagation2d< T >.
|
pure virtual |
Gets the stride in y-direction. x-direction is stride-1.
Implemented in tsunami_lab::patches::WavePropagation1d< T >, and tsunami_lab::patches::WavePropagation2d< T >.
|
pure virtual |
Sets the bathymetry at a givern point.
| i_ix | id of the cell in x-direction. |
| i_iy | id of the cell in y-direction. |
| i_b | bathymetry for given cell. |
Implemented in tsunami_lab::patches::WavePropagation1d< T >, and tsunami_lab::patches::WavePropagation2d< T >.
|
pure virtual |
Sets the ghost cells per side.
| i_left | boundary condition for the left ghost column. |
| i_right | boundary condition for the right ghost column. |
| i_bottom | boundary condition for the bottom ghost row (ignored in 1d). |
| i_top | boundary condition for the top ghost row (ignored in 1d). |
Implemented in tsunami_lab::patches::WavePropagation1d< T >, and tsunami_lab::patches::WavePropagation2d< T >.
|
pure virtual |
Convenience: outflow on both sides.
Implemented in tsunami_lab::patches::WavePropagation1d< T >, and tsunami_lab::patches::WavePropagation2d< T >.
|
pure virtual |
Convenience: reflecting on both sides (3.2.1).
Implemented in tsunami_lab::patches::WavePropagation1d< T >, and tsunami_lab::patches::WavePropagation2d< T >.
|
pure virtual |
Sets the height of the cell to the given value.
| i_ix | id of the cell in x-direction. |
| i_iy | id of the cell in y-direction. |
| i_h | water height. |
Implemented in tsunami_lab::patches::WavePropagation1d< T >, and tsunami_lab::patches::WavePropagation2d< T >.
|
pure virtual |
Sets the momentum in x-direction to the given value.
| i_ix | id of the cell in x-direction. |
| i_iy | id of the cell in y-direction. |
| i_hu | momentum in x-direction. |
Implemented in tsunami_lab::patches::WavePropagation1d< T >, and tsunami_lab::patches::WavePropagation2d< T >.
|
pure virtual |
Sets the momentum in y-direction to the given value.
| i_ix | id of the cell in x-direction. |
| i_iy | id of the cell in y-direction. |
| i_hv | momentum in y-direction. |
Implemented in tsunami_lab::patches::WavePropagation1d< T >, and tsunami_lab::patches::WavePropagation2d< T >.
|
pure virtual |
Performs a time step.
| i_scaling | scaling of the time step. |
Implemented in tsunami_lab::patches::WavePropagation1d< T >, and tsunami_lab::patches::WavePropagation2d< T >.
|
protected |