45 "Average Value Riemann solver");
49 : NonlinearSWESolver(pSession)
82 hf = 0.5 * (hL * uL + hR * uR);
83 huf = 0.5 * ((uL * uL * hL + 0.5 * g * hL * hL) +
84 (uR * uR * hR + 0.5 * g * hR * hR));
85 hvf = 0.5 * (hL * uL * vL + hR * uR * vR);
static std::string solverName
RiemannSolverFactory & GetRiemannSolverFactory()
virtual void v_PointSolve(NekDouble hL, NekDouble huL, NekDouble hvL, NekDouble hR, NekDouble huR, NekDouble hvR, NekDouble &hf, NekDouble &huf, NekDouble &hvf)
Average Value Riemann solver for the Nonlinear Shallow Water Equations.
static RiemannSolverSharedPtr create(const LibUtilities::SessionReaderSharedPtr &pSession)
std::map< std::string, RSParamFuncType > m_params
Map of parameter function types.
tKey RegisterCreatorFunction(tKey idKey, CreatorFunction classCreator, std::string pDesc="")
Register a class with the factory.
AverageSolver(const LibUtilities::SessionReaderSharedPtr &pSession)
std::shared_ptr< SessionReader > SessionReaderSharedPtr