Skip to content

Commit

Permalink
adjusted derivatives in heat_exchanger
Browse files Browse the repository at this point in the history
  • Loading branch information
fwitte committed Oct 17, 2018
1 parent d487381 commit 187505b
Showing 1 changed file with 3 additions and 4 deletions.
7 changes: 3 additions & 4 deletions tespy/components/components.py
Expand Up @@ -5795,10 +5795,9 @@ def bus_deriv(self):
i = self.inl[0].to_flow()
o = self.outl[0].to_flow()
deriv = np.zeros((1, 4, len(self.inl[0].fluid.val) + 3))
for i in range(2):
deriv[0, 0, 0] = o[2] - i[2]
deriv[0, 0, 2] = - i[0]
deriv[0, 2, 2] = i[0]
deriv[0, 0, 0] = o[2] - i[2]
deriv[0, 0, 2] = - i[0]
deriv[0, 2, 2] = i[0]
return deriv

def convergence_check(self, nw):
Expand Down

0 comments on commit 187505b

Please sign in to comment.