Commit 6b1e7116 authored by admin-mpa's avatar admin-mpa
Browse files

Added branch susceptance in branch current calculation

parent c8d4eaa8
......@@ -106,7 +106,7 @@ class Results():
for branch in self.branches:
fr = branch.topology_branch.start_node.index
to = branch.topology_branch.end_node.index
branch.current_pu = - (self.nodes[fr].voltage_pu - self.nodes[to].voltage_pu) * self.Ymatrix[fr][to]
branch.current_pu = - (self.nodes[fr].voltage_pu - self.nodes[to].voltage_pu) * self.Ymatrix[fr][to] + 1j*self.Bmatrix[fr][to] * self.nodes[fr].voltage_pu
branch.current = branch.current_pu * branch.topology_branch.base_current
def calculateIinj(self):
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment