46 "Average Value Riemann solver");
68 double hL,
double huL,
double hvL,
69 double hR,
double huR,
double hvR,
70 double &hf,
double &huf,
double &hvf)
81 hf = 0.5 * (hL * uL + hR * uR);
82 huf = 0.5 * ((uL * uL * hL + 0.5 * g * hL * hL) +
83 (uR * uR * hR + 0.5 * g * hR * hR));
84 hvf = 0.5 * (hL * uL * vL + hR * uR * vR);
virtual void v_PointSolve(double hL, double huL, double hvL, double hR, double huR, double hvR, double &hf, double &huf, double &hvf)
Average Value Riemann solver for the Nonlinear Shallow Water Equations.
static RiemannSolverSharedPtr create()
static std::string solverName
RiemannSolverFactory & GetRiemannSolverFactory()
std::map< std::string, RSParamFuncType > m_params
Map of parameter function types.
tKey RegisterCreatorFunction(tKey idKey, CreatorFunction classCreator, tDescription pDesc="")
Register a class with the factory.