Home
last modified time | relevance | path

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

/petsc/src/ts/tutorials/power_grid/
H A Dex5.c165 PetscErrorCode GetWindPower(PetscScalar wm, PetscScalar vw, PetscScalar *Pw, AppCtx *user) in GetWindPower() argument
174 *Pw = 0.5 * user->rho * cp * user->Ar * vw * vw * vw / (MVAbase * 1e6); in GetWindPower()
183 PetscScalar *f, wm, Pw, *wd; in IFunction() local
197 PetscCall(GetWindPower(wm, u[0], &Pw, user)); in IFunction()
198 f[1] = 2.0 * (user->Ht + user->Hm) * udot[1] - Pw / wm + user->Te; in IFunction()