Tsunami Project Lab
Loading...
Searching...
No Matches
tsunami_lab::solvers::FWave Class Reference

#include <FWave.h>

Inheritance diagram for tsunami_lab::solvers::FWave:
Collaboration diagram for tsunami_lab::solvers::FWave:

Public Member Functions

void netUpdates (t_real i_hL, t_real i_hR, t_real i_huL, t_real i_huR, t_real i_bmL, t_real i_bmR, t_real o_netUpdateL[2], t_real o_netUpdateR[2])
 Computes the net-updates for the left and right cell.
 
- Public Member Functions inherited from tsunami_lab::solvers::Solver
virtual ~Solver ()
 

Friends

struct tsunami_lab::solvers::FWaveTestAccess
 

Member Function Documentation

◆ netUpdates()

void tsunami_lab::solvers::FWave::netUpdates ( t_real i_hL,
t_real i_hR,
t_real i_huL,
t_real i_huR,
t_real i_bmL,
t_real i_bmR,
t_real o_netUpdateL[2],
t_real o_netUpdateR[2] )
virtual

Computes the net-updates for the left and right cell.

Decomposes the flux jump Δf into f-waves Z_p = α_p · r_p and assigns them to the left or right cell depending on the sign of the corresponding eigenvalue: A^- ΔQ = Σ_{p: λ_p < 0} Z_p (net-update for the left cell) A^+ ΔQ = Σ_{p: λ_p > 0} Z_p (net-update for the right cell)

Parameters
i_hLheight of the left side.
i_hRheight of the right side.
i_huLmomentum of the left side.
i_huRmomentum of the right side.
i_bmLbathymetry of the left side.
i_bmRbathymetry of the right side.
o_netUpdateLwill be set to the net-updates for the left side; 0: height, 1: momentum.
o_netUpdateRwill be set to the net-updates for the right side; 0: height, 1: momentum.

Implements tsunami_lab::solvers::Solver.

Friends And Related Symbol Documentation

◆ tsunami_lab::solvers::FWaveTestAccess


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