Skip to content

Commit

Permalink
fix set nominal voltages recur
Browse files Browse the repository at this point in the history
  • Loading branch information
wwang2 committed Aug 23, 2024
1 parent ce0077b commit 38da6fd
Showing 1 changed file with 4 additions and 6 deletions.
10 changes: 4 additions & 6 deletions ditto/modify/system_structure.py
Original file line number Diff line number Diff line change
Expand Up @@ -237,10 +237,10 @@ def set_nominal_voltages_recur(self, *args):
]
)
num_phases = len(self.model[trans_name].windings[0].phase_windings)
if self.model[trans_name].is_threephaseunit == 0:
new_value = new_value *1.732
if num_phases!=3:
if self.model[trans_name].is_threephaseunit == 0 or num_phases!=3:
new_value = new_value *1.732


#print(f"1num_phases={num_phases}")
#print(f"1trans_name={trans_name}")
#print(f"1new_value={new_value}")
Expand All @@ -257,11 +257,9 @@ def set_nominal_voltages_recur(self, *args):
]
)
num_phases = len(self.model[trans_name].windings[0].phase_windings)
if self.model[trans_name].is_threephaseunit == 0: # wenbo added this because naming convention in synergi warehouse.mdb
if self.model[trans_name].is_threephaseunit == 0 or num_phases!=3: # wenbo added this because naming convention in synergi warehouse.mdb
new_value = new_value *1.732

if num_phases!=3:
new_value = new_value *1.732
#print(f"2trans_name={trans_name}")
#print(f"2new_value={new_value}")
else:
Expand Down

0 comments on commit 38da6fd

Please sign in to comment.