Skip to content

Commit 3946c60

Browse files
authored
Merge pull request #155 from upb-lea/thermal_physnums_fix
fixing the physical number in the thermal simulation
2 parents fbd6ec6 + 81bdd0a commit 3946c60

2 files changed

Lines changed: 3 additions & 1 deletion

File tree

femmt/component.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3503,6 +3503,8 @@ def write_electro_magnetic_parameter_pro(self):
35033503
winding_number=winding_number)
35043504

35053505
if self.windings[winding_number].parallel:
3506+
if self.simulation_type == SimulationType.ElectroStatic:
3507+
raise Exception("Parallel winding are not considered yet for electrostatic simulation")
35063508
text_file.write(f"NbrCond_{winding_number + 1} = 1;\n")
35073509
text_file.write(f"AreaCell_{winding_number + 1} = {self.windings[winding_number].a_cell * turns};\n")
35083510
else:

femmt/thermal/thermal_simulation.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -205,7 +205,7 @@ def create_windings(winding_tags: list, k_windings: float, winding_losses, condu
205205
if tag not in tag_counters: # The counter is needed here to create a single region for every turn in case of parallel windings
206206
tag_counters[tag] = 0
207207
else:
208-
tag_counters[tag] += 1
208+
tag_counters[tag] += 10000
209209
regions[name] = tag + tag_counters[tag]
210210

211211
# Needs to be added. [:-2] removes the last ', '

0 commit comments

Comments
 (0)