Lines Matching refs:theta
125 PetscScalar theta, Vd, Vq, SE; in SetInitialGuess() local
154 theta = PETSC_PI / 2.0 - delta; in SetInitialGuess()
156 Id = IGr * PetscCosScalar(theta) - IGi * PetscSinScalar(theta); /* d-axis stator current */ in SetInitialGuess()
157 Iq = IGr * PetscSinScalar(theta) + IGi * PetscCosScalar(theta); /* q-axis stator current */ in SetInitialGuess()
159 Vd = Vr * PetscCosScalar(theta) - Vi * PetscSinScalar(theta); in SetInitialGuess()
160 Vq = Vr * PetscSinScalar(theta) + Vi * PetscCosScalar(theta); in SetInitialGuess()
802 PetscReal h, theta; in MonitorUpdateQ() local
806 theta = 0.5; in MonitorUpdateQ()
813 PetscCall(VecAXPY(ctx->vec_q, h * theta, C)); in MonitorUpdateQ()
814 PetscCall(CostIntegrand(ts, time + h * theta, Y[0], C, ctx)); in MonitorUpdateQ()
815 PetscCall(VecAXPY(ctx->vec_q, h * (1 - theta), C)); in MonitorUpdateQ()