Searched refs:offsetbus (Results 1 – 1 of 1) sorted by relevance
519 PetscInt i, j, offsetbus, offsetgen, offsetexc, key; in FormIFunction() local541 PetscCall(DMNetworkGetLocalVecOffset(networkdm, v, j, &offsetbus)); in FormIFunction()543 Vr = xarr[offsetbus]; in FormIFunction()544 Vi = xarr[offsetbus + 1]; in FormIFunction()559 … farr[offsetbus] += Yffi * Vr + Yffr * Vi; /* imaginary current due to diagonal elements */ in FormIFunction()560 farr[offsetbus + 1] += Yffr * Vr - Yffi * Vi; /* real current due to diagonal elements */ in FormIFunction()655 farr[offsetbus] -= IGi; in FormIFunction()656 farr[offsetbus + 1] -= IGr; in FormIFunction()708 Vr = xarr[offsetbus]; /* Real part of generator terminal voltage */ in FormIFunction()709 Vi = xarr[offsetbus + 1]; /* Imaginary part of the generator terminal voltage */ in FormIFunction()[all …]