Skip to content

Commit ea4173e

Browse files
authored
FEAT: check results in Transient Wdg analysis example (#244)
1 parent b8ca72b commit ea4173e

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

examples/low_frequency/magnetic/transient_winding.py

+4-2
Original file line numberDiff line numberDiff line change
@@ -73,7 +73,9 @@
7373
#
7474
# Assigns windings to the sheets and a balloon to the air region.
7575

76-
m2d.assign_winding(assignment=[rect1.name, rect2.name], name="PHA")
76+
m2d.assign_winding(assignment=[rect1.name, rect2.name],
77+
current="1*sin(2*pi*50*Time)",
78+
name="PHA")
7779
m2d.assign_balloon(assignment=region.edges)
7880

7981
# ## Plot model
@@ -98,7 +100,7 @@
98100

99101
m2d.post.create_report(
100102
expressions="InputCurrent(PHA)",
101-
domain="Time",
103+
domain="Sweep",
102104
primary_sweep_variable="Time",
103105
plot_name="Winding Plot 1",
104106
)

0 commit comments

Comments
 (0)