Lines Matching refs:gamma
88 PetscReal gamma; member
333 static PetscErrorCode Pressure_PG(const PetscReal gamma, const EulerNode *x, PetscReal *p) in Pressure_PG() argument
339 (*p) = (x->E - 0.5 * ru2 / x->r) * (gamma - 1.0); /* (E - rho V^2/2)(gamma-1) = e rho (gamma-1) */ in Pressure_PG()
343 static PetscErrorCode SpeedOfSound_PG(const PetscReal gamma, const EulerNode *x, PetscReal *c) in SpeedOfSound_PG() argument
348 PetscCall(Pressure_PG(gamma, x, &p)); in SpeedOfSound_PG()
350 (*c) = PetscSqrtReal(gamma * p / x->r); in SpeedOfSound_PG()
368 PetscCall(Pressure_PG(eu->gamma, x, &p)); in EulerFlux()
675 …alar *ul, const PetscScalar *ur, PetscScalar *flux, const PetscReal *nn, int ndim, PetscReal gamma) in godunovflux() argument
748 gaml = gamma; in godunovflux()
749 gamr = gamma; in godunovflux()
756 pl = (gamma - 1.) * (ul[ndim + 1] - rl * .5 * (d__1 * d__1 + d__2 * d__2 + d__3 * d__3)); in godunovflux()
763 pr = (gamma - 1.) * (ur[ndim + 1] - rr * .5 * (d__1 * d__1 + d__2 * d__2 + d__3 * d__3)); in godunovflux()
787 const PetscReal gamma = eu->gamma; in PhysicsRiemann_Euler_Godunov() local
815 ierr = SpeedOfSound_PG(gamma, uL, &cL); in PhysicsRiemann_Euler_Godunov()
821 ierr = SpeedOfSound_PG(gamma, uR, &cR); in PhysicsRiemann_Euler_Godunov()
833 godunovflux(xL, xR, flux, nn, DIM, gamma); in PhysicsRiemann_Euler_Godunov()