Home
last modified time | relevance | path

Searched refs:ux (Results 1 – 5 of 5) sorted by relevance

/petsc/src/snes/tutorials/
H A Dex46.c124 PetscScalar u, ux, uy, uxx, uyy; in FormFunctionLocal() local
146 ux = (x[j][i + 1] - x[j][i]) / hx; in FormFunctionLocal()
150 …f[j][i] = D * (uxx + uyy) - (K * funcA(x[j][i], user) * PetscSqrtScalar(ux * ux + uy * uy) + funcU… in FormFunctionLocal()
166 PetscScalar D, K, A, v[5], hx, hy, hxdhy, hydhx, ux, uy; in FormJacobianLocal() local
199 ux = (x[j][i + 1] - x[j][i]) / hx; in FormJacobianLocal()
201 normGradZ = PetscRealPart(PetscSqrtScalar(ux * ux + uy * uy)); in FormJacobianLocal()
H A Dex15.c396 static inline PetscScalar eta(const AppCtx *ctx, PetscReal x, PetscReal y, PetscScalar ux, PetscSca… in eta() argument
398 …return kappa(ctx, x, y) * PetscPowScalar(PetscSqr(ctx->epsilon) + 0.5 * (ux * ux + uy * uy), 0.5 *… in eta()
400 static inline PetscScalar deta(const AppCtx *ctx, PetscReal x, PetscReal y, PetscScalar ux, PetscSc… in deta() argument
402 … ? 0 : kappa(ctx, x, y) * PetscPowScalar(PetscSqr(ctx->epsilon) + 0.5 * (ux * ux + uy * uy), 0.5 *… in deta()
/petsc/src/ts/tutorials/
H A Dex29.c227 PetscScalar ux, uy, bx, by; in FormIFunctionLocal() local
266 ux = 0.5 * (x[j][i + 1].u - x[j][i - 1].u) * dhx; in FormIFunctionLocal()
269 f[j][i].u += c[j][i].beta * (uxx + uyy) + scale * (bx * ux + by * uy); in FormIFunctionLocal()
H A Dex11.c472 int initLinearWave(EulerNode *ux, const PetscReal gamma, const PetscReal coord[],…
1623 int initLinearWave(EulerNode *ux, const PetscReal gamma, const PetscReal coord[], const PetscReal L… in initLinearWave() argument
1647 ux->r = vp[0]; /* density */ in initLinearWave()
1648 ux->ru[0] = vp[0] * vp[1]; /* x momentum */ in initLinearWave()
1649 ux->ru[1] = 0.; in initLinearWave()
1651 ux->E = vp[2] / (gamma - 1.) + 0.5 * vp[0] * vp[1] * vp[1]; in initLinearWave()
/petsc/src/dm/dt/tests/
H A Dex7.c312 PetscReal ux, wx; in main() local
319 PetscCall(PetscDTAltVApply(N, j, u, xsplit, &ux)); in main()
321 uWwxcheck += isOdd ? -(ux * wx) : (ux * wx); in main()