Searched refs:xgen (Results 1 – 4 of 4) sorted by relevance
| /petsc/src/ts/tutorials/power_grid/stability_9bus/ |
| H A D | ex9busopt.c | 156 PetscScalar *xgen, *xnet; in SetInitialGuess() local 178 PetscCall(VecGetArray(Xgen, &xgen)); in SetInitialGuess() 205 xgen[idx] = Eqp; in SetInitialGuess() 206 xgen[idx + 1] = Edp; in SetInitialGuess() 207 xgen[idx + 2] = delta; in SetInitialGuess() 208 xgen[idx + 3] = w_s; in SetInitialGuess() 212 xgen[idx] = Id; in SetInitialGuess() 213 xgen[idx + 1] = Iq; in SetInitialGuess() 223 xgen[idx] = Efd; in SetInitialGuess() 224 xgen[idx + 1] = RF; in SetInitialGuess() [all …]
|
| H A D | ex9bus.c | 141 const PetscScalar *xgen, *xnet; in EventFunction() local 148 PetscCall(VecGetArrayRead(Xgen, &xgen)); in EventFunction() 157 Efd = xgen[idx + 6]; in EventFunction() 158 RF = xgen[idx + 7]; in EventFunction() 159 VR = xgen[idx + 8]; in EventFunction() 177 PetscCall(VecRestoreArrayRead(Xgen, &xgen)); in EventFunction() 188 PetscScalar *xgen, *xnet; in PostEventFunction() local 200 PetscCall(VecGetArray(Xgen, &xgen)); in PostEventFunction() 241 Efd = xgen[idx + 6]; in PostEventFunction() 242 RF = xgen[idx + 7]; in PostEventFunction() [all …]
|
| H A D | ex9busoptfd.c | 119 PetscScalar *xgen, *xnet; in SetInitialGuess() local 141 PetscCall(VecGetArray(Xgen, &xgen)); in SetInitialGuess() 168 xgen[idx] = Eqp; in SetInitialGuess() 169 xgen[idx + 1] = Edp; in SetInitialGuess() 170 xgen[idx + 2] = delta; in SetInitialGuess() 171 xgen[idx + 3] = w_s; in SetInitialGuess() 175 xgen[idx] = Id; in SetInitialGuess() 176 xgen[idx + 1] = Iq; in SetInitialGuess() 186 xgen[idx] = Efd; in SetInitialGuess() 187 xgen[idx + 1] = RF; in SetInitialGuess() [all …]
|
| H A D | ex9busadj.c | 117 PetscScalar *xgen, *xnet; in SetInitialGuess() local 139 PetscCall(VecGetArray(Xgen, &xgen)); in SetInitialGuess() 166 xgen[idx] = Eqp; in SetInitialGuess() 167 xgen[idx + 1] = Edp; in SetInitialGuess() 168 xgen[idx + 2] = delta; in SetInitialGuess() 169 xgen[idx + 3] = w_s; in SetInitialGuess() 173 xgen[idx] = Id; in SetInitialGuess() 174 xgen[idx + 1] = Iq; in SetInitialGuess() 184 xgen[idx] = Efd; in SetInitialGuess() 185 xgen[idx + 1] = RF; in SetInitialGuess() [all …]
|