Lines Matching refs:omega

59   PetscReal omega; /* Oscillation frequency omega */  member
67 options->omega = 64.0; in ProcessOptions()
72 …etscOptionsReal("-omega", "Oscillator frequency", "ex4.c", options->omega, &options->omega, NULL)); in ProcessOptions()
131 const PetscReal omega = ((AppCtx *)ctx)->omega; in RHSFunction() local
147 g[(p * 2 + 1) * dim + d] = -PetscSqr(omega) * u[(p * 2 + 0) * dim + d]; in RHSFunction()
161 PetscScalar vals[4] = {0., 1., -PetscSqr(((AppCtx *)ctx)->omega), 0.}; in RHSJacobian()
200 const PetscReal omega = ((AppCtx *)ctx)->omega; in RHSFunctionV() local
209 for (p = 0; p < Np; ++p) vres[p] = -PetscSqr(omega) * x[p]; in RHSFunctionV()
240 const PetscReal omega = ((AppCtx *)ctx)->omega; in RHSObjectiveF() local
254 const PetscReal E = 0.5 * (v2 + PetscSqr(omega) * x2); in RHSObjectiveF()
265 const PetscReal omega = ((AppCtx *)ctx)->omega; in RHSFunctionG() local
280 g[(p * 2 + 0) * dim + d] = PetscSqr(omega) * u[(p * 2 + 0) * dim + d]; in RHSFunctionG()
416 const PetscReal omega = user->omega; in ComputeError() local
417 const PetscReal ct = PetscCosReal(omega * t); in ComputeError()
418 const PetscReal st = PetscSinReal(omega * t); in ComputeError()
421 const PetscReal ev = -x0 * omega * st; in ComputeError()
426 const PetscReal en = 0.5 * (v * v + PetscSqr(omega) * x * x); in ComputeError()
427 const PetscReal exen = 0.5 * PetscSqr(omega * x0); in ComputeError()
432 e[(p * 2 + 1) * dim + d] = u[(p * 2 + 1) * dim + d] + coords[p * dim + d] * omega * st; in ComputeError()
443 const PetscReal omega = ((AppCtx *)ctx)->omega; in EnergyMonitor() local
464 const PetscReal E = 0.5 * (v2 + PetscSqr(omega) * x2); in EnergyMonitor()
465 …const PetscReal mE = 0.5 * (v2 + PetscSqr(omega) * x2 - PetscSqr(omega) * dt * PetscSqrtReal(x2 * … in EnergyMonitor()