43 "AUSM2 Riemann solver");
72 double rhoL,
double rhouL,
double rhovL,
double rhowL,
double EL,
73 double rhoR,
double rhouR,
double rhovR,
double rhowR,
double ER,
74 double &rhof,
double &rhouf,
double &rhovf,
double &rhowf,
double &Ef)
86 (EL - 0.5 * (rhouL * uL + rhovL * vL + rhowL * wL)) / rhoL;
88 (ER - 0.5 * (rhouR * uR + rhovR * vR + rhowR * wR)) / rhoR;
109 NekDouble Mtilde = 0.5 * (ML * ML + MR * MR);
111 NekDouble Mp = -Kp * ((pR - pL) / (rhoA * cA * cA)) *
112 std::max(1.0 - sigma * Mtilde, 0.0);
117 NekDouble pu = -2.0 * Ku * rhoA * cA * cA * (MR - ML) *
125 rhof = cA * Mbar * rhoL;
126 rhouf = cA * Mbar * rhoL * uL + pbar;
127 rhovf = cA * Mbar * rhoL * vL;
128 rhowf = cA * Mbar * rhoL * wL;
129 Ef = cA * Mbar * (EL + pL);
133 rhof = cA * Mbar * rhoR;
134 rhouf = cA * Mbar * rhoR * uR + pbar;
135 rhovf = cA * Mbar * rhoR * vR;
136 rhowf = cA * Mbar * rhoR * wR;
137 Ef = cA * Mbar * (ER + pR);
147 out = 0.5 * (M + fabs(M));
151 out = 0.5 * (M - fabs(M));
163 out = 0.25 * (M + 1.0) * (M + 1.0);
167 out = -0.25 * (M - 1.0) * (M - 1.0);
212 out *= (2.0 - M) - 16.0 * alpha * M *
M2Function(1, M);
216 out *= (-2.0 - M) + 16.0 * alpha * M *
M2Function(0, M);
double M2Function(int A, double M)
static RiemannSolverSharedPtr create(const LibUtilities::SessionReaderSharedPtr &pSession)
double P5Function(int A, double alpha, double M)
virtual void v_PointSolve(double rhoL, double rhouL, double rhovL, double rhowL, double EL, double rhoR, double rhouR, double rhovR, double rhowR, double ER, double &rhof, double &rhouf, double &rhovf, double &rhowf, double &Ef)
AUSM2 Riemann solver.
static std::string solverName
double M4Function(int A, double beta, double M)
double M1Function(int A, double M)
AUSM2Solver(const LibUtilities::SessionReaderSharedPtr &pSession)
EquationOfStateSharedPtr m_eos
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.