Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
dae.add_jac(Fx0, -mul(self.H2, self.u0, div(1, self.H4)), self.q3,
self.q2)
dae.add_jac(Fx0, -mul(self.H1, self.u0, div(1, self.H4)), self.q3,
self.q1)
dae.add_jac(Fx0, -mul(self.u0, div(1, self.T2)), self.x1, self.x1)
dae.add_jac(Fx0, -mul(self.u0, div(1, self.T4)), self.x2, self.x2)
dae.add_jac(Fx0, -mul(self.u0, div(1, self.T6)), self.x3, self.x3)
dae.add_jac(Fy0, mul(self.u0, div(1, self.H4)), self.q3, self.In)
dae.add_jac(Fy0, mul(self.u0, div(1, self.T2), 1 - self.T12), self.x1,
self.v1)
dae.add_jac(Fy0, mul(self.u0, div(1, self.T4), 1 - self.T34), self.x2,
self.v2)
dae.add_jac(Fy0, mul(self.KsT56, self.u0, div(1, self.T6)), self.x3,
self.v3)
dae.add_jac(Gy0, 1e-6, self.In, self.In)
dae.add_jac(Gy0, 1e-6, self.v1, self.v1)
dae.add_jac(Gy0, 1e-6, self.v2, self.v2)
dae.add_jac(Gy0, 1e-6, self.v3, self.v3)
dae.add_jac(Gy0, 1e-6, self.v4, self.v4)
dae.add_jac(Gy0, 1e-6, self.vss, self.vss)
dae.add_jac(Gy0, 1e-6, self.vst, self.vst)
def jac0(self, dae):
dae.add_jac(Gy0, -1, self.pwa, self.pwa)
dae.add_jac(Gx0, 2, self.pwa, self.omega_m)
dae.add_jac(Gy0, 1e-6, self.pwa, self.pwa)
def jac0(self, dae):
dae.add_jac(Gy0, -1, self.vref, self.vref)
dae.add_jac(Gy0, mul(self.K0, self.T21, self.T43), self.vr, self.vref)
dae.add_jac(Gy0, -1, self.vr, self.vr)
dae.add_jac(Gx0, self.T43, self.vr, self.vr1)
dae.add_jac(Gx0, self.K0, self.vr, self.vr2)
dae.add_jac(Gx0, -mul(self.K0, self.T21, self.T43), self.vr, self.vm)
dae.add_jac(Gx0, -self.u0, self.vf, self.vfout)
dae.add_jac(Fx0, -div(1, self.Tr), self.vm, self.vm)
dae.add_jac(Fx0, -div(1, self.T1), self.vr1, self.vr1)
dae.add_jac(Fx0, -mul(self.K0, div(1, self.T1), 1 - self.T21),
self.vr1, self.vm)
dae.add_jac(Fx0, mul(div(1, self.K0), div(1, self.T3), 1 - self.T43),
self.vr2, self.vr1)
dae.add_jac(Fx0, -div(1, self.T3), self.vr2, self.vr2)
dae.add_jac(Fx0, -mul(self.T21, div(1, self.T3), 1 - self.T43),
self.vr2, self.vm)
dae.add_jac(Fy0, div(1, self.Tr), self.vm, self.v)
def jac0(self, dae):
dae.add_jac(Gy0, 1, self.omega, self.omega)
dae.add_jac(Gy0, 1, self.delta, self.delta)
dae.add_jac(Gy0, self.iTd, self.dwdt, self.omega)
dae.add_jac(Gx0, -1, self.dwdt, self.xdw)
dae.add_jac(Fy0, self.iTd**2, self.xdw, self.omega)
dae.add_jac(Fx0, -self.iTd, self.xdw, self.xdw)
dae.add_jac(Gy0, -1, self.dwdt, self.dwdt)
def jac0(self, dae):
dae.add_jac(Gx0, self.u, self.Idc, self.vC)
dae.add_jac(Gy0, -self.u, self.Idc, self.v1)
dae.add_jac(Gy0, self.u, self.Idc, self.v2)
dae.add_jac(Gy0, 1e-6 - self.R, self.Idc, self.Idc)
dae.add_jac(Gy0, -self.u, self.v1, self.Idc)
dae.add_jac(Gy0, self.u, self.v2, self.Idc)
dae.add_jac(Fy0, -self.iC, self.vC, self.Idc)
def jac0(self, dae):
dae.add_jac(Gy0, 1.0, self.psiq, self.psiq)
dae.add_jac(Gy0, self.u, self.psiq, self.vd)
dae.add_jac(Gy0, -1.0, self.psid, self.psid)
dae.add_jac(Gy0, self.u, self.psid, self.vq)
dae.add_jac(Gy0, self.u, self.Id, self.psid)
dae.add_jac(Gy0, self.u, self.Iq, self.psiq)
dae.add_jac(Fx0, -mul(self.u, self.iM, self.D) + 1e-6, self.omega,
self.omega)
dae.add_jac(Fy0, mul(self.u, self.iM), self.omega, self.pm)
def jac0(self, dae):
dae.add_jac(Gy0, -1e-6, self.v1, self.v1)
dae.add_jac(Gy0, -1e-6, self.v2, self.v2)
dae.add_jac(Gy0, -1e-6, self.ash, self.ash)
dae.add_jac(Gy0, -1e-6, self.vsh, self.vsh)
dae.add_jac(Gy0, -self.u, self.ash, self.psh)
dae.add_jac(Gy0, -self.u, self.vsh, self.qsh)
dae.add_jac(Gy0, mul(self.u, self.PQ + self.PV) - 1e-6, self.psh, self.psh)
dae.add_jac(Gy0, mul(self.u, self.vV), self.psh, self.v1)
dae.add_jac(Gy0, -mul(self.u, self.vV), self.psh, self.v2)
dae.add_jac(Gy0, mul(self.PV + self.PQ, self.u, self.R), self.psh, self.v1)
dae.add_jac(Gy0, mul(self.u, self.PQ) - 1e-6, self.qsh, self.qsh)
dae.add_jac(Gy0, mul(self.u, self.PV + self.vV), self.qsh, self.v)
dae.add_jac(Gy0, -self.u, self.a, self.psh)
dae.add_jac(Gy0, -self.u, self.v, self.qsh)
def jac0(self, dae):
dae.add_jac(Gy0, -self.u, self.pm, self.pout)
dae.add_jac(Gy0, 1.0, self.wref, self.wref)
def jac0(self, dae):
dae.add_jac(Gy0, 1, self.Pexp, self.Pexp)
dae.add_jac(Gy0, 1, self.fcoi, self.fcoi)
dae.add_jac(Gy0, 1, self.ace, self.ace)
dae.add_jac(Gy0, 1, self.ace, self.Pexp)
dae.add_jac(Gy0, self.beta, self.ace, self.fcoi)
dae.add_jac(Fx0, -mul(self.u, self.iTs) + 1e-6, self.xg1, self.xg1)
dae.add_jac(Fy0, mul(self.u, self.iTs), self.xg1, self.pin)
dae.add_jac(Fx0, mul(self.u, self.k2, self.iTc), self.xg2, self.xg1)
dae.add_jac(Fx0, -mul(self.u, self.iTc), self.xg2, self.xg2)
dae.add_jac(Fx0, mul(self.u, self.k4, self.iT5), self.xg3, self.xg2)
dae.add_jac(Fx0, mul(self.u, self.k4, self.k1, self.iT5), self.xg3,
self.xg1)
dae.add_jac(Fx0, -mul(self.u, self.iT5), self.xg3, self.xg3)
dae.add_jac(Gx0, self.u, self.pout, self.xg3)
dae.add_jac(Gx0, mul(self.u, self.k3), self.pout, self.xg2)
dae.add_jac(Gx0, mul(self.u, self.k3, self.k1), self.pout, self.xg1)
dae.add_jac(Gy0, -self.u + 1e-6, self.pout, self.pout)