45 "Average Value Riemann solver");
49 : NonlinearSWESolver(pSession)
68 void AverageSolver::v_PointSolve(
73 static NekDouble g = m_params[
"gravity"]();
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 RiemannSolverSharedPtr create(const LibUtilities::SessionReaderSharedPtr &pSession)
static std::string solverName
AverageSolver(const LibUtilities::SessionReaderSharedPtr &pSession)
tKey RegisterCreatorFunction(tKey idKey, CreatorFunction classCreator, std::string pDesc="")
Register a class with the factory.
std::shared_ptr< SessionReader > SessionReaderSharedPtr
RiemannSolverFactory & GetRiemannSolverFactory()
The above copyright notice and this permission notice shall be included.