Skip to content

Commit

Permalink
FEAT: check results in Transient Wdg analysis example (#244)
Browse files Browse the repository at this point in the history
  • Loading branch information
anur7 authored Sep 18, 2024
1 parent b8ca72b commit ea4173e
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions examples/low_frequency/magnetic/transient_winding.py
Original file line number Diff line number Diff line change
Expand Up @@ -73,7 +73,9 @@
#
# Assigns windings to the sheets and a balloon to the air region.

m2d.assign_winding(assignment=[rect1.name, rect2.name], name="PHA")
m2d.assign_winding(assignment=[rect1.name, rect2.name],
current="1*sin(2*pi*50*Time)",
name="PHA")
m2d.assign_balloon(assignment=region.edges)

# ## Plot model
Expand All @@ -98,7 +100,7 @@

m2d.post.create_report(
expressions="InputCurrent(PHA)",
domain="Time",
domain="Sweep",
primary_sweep_variable="Time",
plot_name="Winding Plot 1",
)
Expand Down

0 comments on commit ea4173e

Please sign in to comment.