Home
last modified time | relevance | path

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

/petsc/src/snes/tutorials/network/power/
H A Dpower2.c27 VERTEX_Power bus = NULL; in FormFunction_Subnet() local
43 bus = (VERTEX_Power)component; in FormFunction_Subnet()
45 if (bus->ide == REF_BUS || bus->ide == ISOLATED_BUS) { in FormFunction_Subnet()
46 farr[offset] = xarr[offset] - bus->va * PETSC_PI / 180.0; in FormFunction_Subnet()
47 farr[offset + 1] = xarr[offset + 1] - bus->vm; in FormFunction_Subnet()
55 farr[offset] += Vm * Vm * bus->gl / Sbase; in FormFunction_Subnet()
56 if (bus->ide != PV_BUS) farr[offset + 1] += -Vm * Vm * bus->bl / Sbase; in FormFunction_Subnet()
116 if (bus && bus->ide == PV_BUS) farr[offset + 1] = xarr[offset + 1] - bus->vm; in FormFunction_Subnet()
175 VERTEX_Power bus; in FormJacobian_Subnet() local
190 bus = (VERTEX_Power)component; in FormJacobian_Subnet()
[all …]
H A Dpffunctions.c22 if (pfdata->bus[i].ngen) { in GetListofEdges_Power()
24 } else if (pfdata->bus[i].nload) { in GetListofEdges_Power()
42 VERTEX_Power bus; in FormJacobian_Power_private() local
62 bus = (VERTEX_Power)component; in FormJacobian_Power_private()
65 if (bus->ide == REF_BUS || bus->ide == ISOLATED_BUS) { in FormJacobian_Power_private()
88 if (bus->ide != PV_BUS) { in FormJacobian_Power_private()
89 values[1] = 2.0 * Vm * bus->gl / Sbase; in FormJacobian_Power_private()
90 values[3] = -2.0 * Vm * bus->bl / Sbase; in FormJacobian_Power_private()
199 if (!ghostvtex && bus->ide == PV_BUS) { in FormJacobian_Power_private()
249 VERTEX_Power bus = NULL; in FormFunction_Power() local
[all …]
H A Dcase9.m2 % CASE9 Power flow data for 9 bus, 3 generator case.
15 %% bus data
17 mpc.bus = [
30 % bus Pg Qg Qmax Qmin Vg mBase status Pmax Pmin Pc1 Pc2 Qc1min Qc1max Qc2min Qc2max ramp_agc ramp_1…
H A Dpower.c139 … PetscCall(DMNetworkAddComponent(networkdm, i, User.compkey_bus, &pfdata->bus[i - vStart], 2)); in main()
140 if (pfdata->bus[i - vStart].ngen) { in main()
141 …for (j = 0; j < pfdata->bus[i - vStart].ngen; j++) PetscCall(DMNetworkAddComponent(networkdm, i, U… in main()
143 if (pfdata->bus[i - vStart].nload) { in main()
144 …for (j = 0; j < pfdata->bus[i - vStart].nload; j++) PetscCall(DMNetworkAddComponent(networkdm, i, … in main()
153 PetscCall(PetscFree(pfdata->bus)); in main()
170 VERTEX_Power bus; in main()
185 bus = (VERTEX_Power)component; in main()
186 …l(PetscPrintf(PETSC_COMM_SELF,"Rank %d ncomps = %d Bus %d\n",crank,numComponents,bus->internal_i)); in main()
H A DPFReadData.c54 PetscCall(PetscCalloc1(pf->nbus, &pf->bus)); in PFReadMatPowerData()
58 Bus = pf->bus; in PFReadMatPowerData()
194 …for (j = 0; j < pf->bus[i].ngen; j++) PetscCall(PetscMemcpy(&newgen[genj++], &pf->gen[pf->bus[i].g… in PFReadMatPowerData()
195 …for (j = 0; j < pf->bus[i].nload; j++) PetscCall(PetscMemcpy(&newload[loadj++], &pf->load[pf->bus[… in PFReadMatPowerData()
H A Dpower.h137 VERTEX_Power bus; member
/petsc/src/ts/tutorials/power_grid/stability_9bus/
H A Dex9busdmnetwork.c112 Bus *bus; in read_data() local
184 …PetscCall(PetscCalloc5(NBUS * nc, &bus, NGEN * nc, &gen, NLOAD * nc, &load, NBRANCH * nc + (nc - 1… in read_data()
191 bus[i * 9 + j].id = i * 9 + j; in read_data()
192 bus[i * 9 + j].nofgen = nofgen[j]; in read_data()
193 bus[i * 9 + j].nofload = nofload[j]; in read_data()
194 bus[i * 9 + j].vr = varr[2 * j]; in read_data()
195 bus[i * 9 + j].vi = varr[2 * j + 1]; in read_data()
200 PetscCall(MatGetValues(Ybus, 1, row, 2, col, bus[i * 9 + j].yff)); in read_data()
322 bus[9 * i - 1].yff[0] -= 17.3611; in read_data()
323 bus[9 * i - 1].yff[1] -= -0.0301407; in read_data()
[all …]
/petsc/src/snes/tutorials/network/
H A Dex1.c271 VERTEX_Power bus; in SetInitialGuess() local
300 bus = (VERTEX_Power)component; in SetInitialGuess()
301 xarr[offset] = bus->va * PETSC_PI / 180.0; in SetInitialGuess()
302 xarr[offset + 1] = bus->vm; in SetInitialGuess()
582 …PetscCall(DMNetworkAddComponent(networkdm, vtx[i], appctx_power->compkey_bus, &pfdata->bus[i], 2)); in main()
583 if (pfdata->bus[i].ngen) { in main()
584 …for (j = 0; j < pfdata->bus[i].ngen; j++) PetscCall(DMNetworkAddComponent(networkdm, vtx[i], appct… in main()
586 if (pfdata->bus[i].nload) { in main()
587 …for (j = 0; j < pfdata->bus[i].nload; j++) PetscCall(DMNetworkAddComponent(networkdm, vtx[i], appc… in main()
606 …PetscCall(DMNetworkAddComponent(networkdm, vtx[i], appctx_power->compkey_bus, &pfdata->bus[4], 2)); in main()
[all …]
/petsc/doc/community/meetings/2025/
H A Dindex.md56 | 4:45 pm | Leave on bus for dinner at Niagara Falls …
/petsc/doc/faq/
H A Dindex.md70 uses a different memory bus:
92 policy. On Linux, the default policy is to attempt to find memory on the same memory bus
1856 ### What does "corrupt argument" or "caught signal" Or "SEGV" Or "segmentation violation" Or "bus e…