Skip to content

Commit ded6c83

Browse files
committed
[BC] Tem periodicity
1 parent a2c48ba commit ded6c83

File tree

1 file changed

+8
-4
lines changed

1 file changed

+8
-4
lines changed

pyleecan/Methods/Simulation/MagFEMM/solve_FEMM.py

Lines changed: 8 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,7 @@ def solve_FEMM(self, femm, output, sym):
1515

1616
# Get time and angular axes
1717
Angle_comp, Time_comp = self.get_axes(output)
18+
_, Time_comp_Tem = self.get_axes(output, is_remove_apert=True)
1819

1920
# Check if the angular axis is anti-periodic
2021
_, is_antiper_a = Angle_comp.get_periodicity()
@@ -33,8 +34,7 @@ def solve_FEMM(self, femm, output, sym):
3334

3435
# Number of time steps
3536
Nt_comp = Time_comp.get_length(
36-
is_oneperiod=True,
37-
is_antiperiod=is_antiper_t and self.is_periodicity_t,
37+
is_oneperiod=True, is_antiperiod=is_antiper_t and self.is_periodicity_t,
3838
)
3939

4040
# Loading parameters for readibility
@@ -148,6 +148,10 @@ def solve_FEMM(self, femm, output, sym):
148148
if self.is_periodicity_a:
149149
sym_dict.update(Angle_comp.symmetries)
150150

151+
sym_dict_Tem = dict()
152+
if self.is_periodicity_t:
153+
sym_dict_Tem.update(Time_comp_Tem.symmetries)
154+
151155
Br_data = DataTime(
152156
name="Airgap radial flux density",
153157
unit="T",
@@ -174,8 +178,8 @@ def solve_FEMM(self, femm, output, sym):
174178
name="Electromagnetic torque",
175179
unit="Nm",
176180
symbol="T_{em}",
177-
axes=[Time_comp],
178-
symmetries=sym_dict,
181+
axes=[Time_comp_Tem],
182+
symmetries=sym_dict_Tem,
179183
values=Tem,
180184
)
181185
output.mag.Tem_av = mean(Tem)

0 commit comments

Comments
 (0)