Searched refs:gam (Results 1 – 3 of 3) sorted by relevance
| /petsc/src/ts/tutorials/ |
| H A D | ex11.h | 582 …lar *uxm, PetscScalar *px, PetscScalar *utx, PetscScalar *ubx, PetscScalar *gam, PetscScalar *rho1) in riemannsolver() argument 596 *gam = *gaml; in riemannsolver() 620 *gam = cvmgm_(gaml, gamr, &sgn0); in riemannsolver() 621 gasc1 = *gam - 1.; in riemannsolver() 622 gasc2 = (*gam + 1.) * .5; in riemannsolver() 623 gasc3 = gasc2 / *gam; in riemannsolver() 624 gasc4 = 1. / (*gam - 1.); in riemannsolver() 625 c0 = PetscSqrtScalar(*gam * p0 / r0); in riemannsolver() 627 w0 = *gam * r0 * p0 * (gasc3 * streng / p0 + 1.); in riemannsolver() 630 d__2 = -1. / *gam; in riemannsolver() [all …]
|
| H A D | ex14.c | 408 static void THIFriction(THI thi, PetscReal rbeta2, PetscReal gam, PetscReal *beta2, PetscReal *dbet… in THIFriction() argument 419 …*beta2 = rbeta2 * PetscPowReal(thi->friction.eps2 + gam * thi->friction.irefgam, thi->friction.ex… in THIFriction() 420 …*dbeta2 = thi->friction.exponent * *beta2 / (thi->friction.eps2 + gam * thi->friction.irefgam) * t… in THIFriction() 424 static void THIViscosity(THI thi, PetscReal gam, PetscReal *eta, PetscReal *deta) in THIViscosity() argument 440 *eta = Bd2 * PetscPowReal(eps + gam, exponent); in THIViscosity() 441 *deta = exponent * (*eta) / (eps + gam); in THIViscosity() 732 PetscScalar gam; in PointwiseNonlinearity() local 746 …gam = Sqr(du[0]) + Sqr(dv[1]) + du[0] * dv[1] + 0.25 * Sqr(du[1] + dv[0]) + 0.25 * Sqr(du[2]) + 0.… in PointwiseNonlinearity() 747 THIViscosity(thi, PetscRealPart(gam), eta, deta); in PointwiseNonlinearity()
|
| /petsc/src/snes/tutorials/ |
| H A D | ex48.c | 358 static void THIFriction(THI thi, PetscReal rbeta2, PetscReal gam, PetscReal *beta2, PetscReal *dbet… in THIFriction() argument 369 …*beta2 = rbeta2 * PetscPowReal(thi->friction.eps2 + gam * thi->friction.irefgam, thi->friction.ex… in THIFriction() 370 …*dbeta2 = thi->friction.exponent * *beta2 / (thi->friction.eps2 + gam * thi->friction.irefgam) * t… in THIFriction() 374 static void THIViscosity(THI thi, PetscReal gam, PetscReal *eta, PetscReal *deta) in THIViscosity() argument 390 *eta = Bd2 * PetscPowReal(eps + gam, exponent); in THIViscosity() 391 *deta = exponent * (*eta) / (eps + gam); in THIViscosity() 713 PetscScalar gam; in PointwiseNonlinearity() local 727 …gam = PetscSqr(du[0]) + PetscSqr(dv[1]) + du[0] * dv[1] + 0.25 * PetscSqr(du[1] + dv[0]) + 0.25 * … in PointwiseNonlinearity() 728 THIViscosity(thi, PetscRealPart(gam), eta, deta); in PointwiseNonlinearity() 734 PetscScalar gam; in PointwiseNonlinearity2D() local [all …]
|