Skip to content

Commit

Permalink
add plot and update index.rst
Browse files Browse the repository at this point in the history
  • Loading branch information
gmalinve committed Sep 24, 2024
1 parent ea7ce53 commit 57c39a2
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 2 deletions.
1 change: 0 additions & 1 deletion examples/aedt/maxwell_2d/index.rst
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,6 @@ These examples use PyAEDT to show Maxwell 2D capabilities
../../low_frequency/general/electrostatic.py
../../low_frequency/general/external_circuit.py
../../low_frequency/general/resistance.py
../../low_frequency/magnetic/magneto_motive_contour.py
../../low_frequency/magnetic/magneto_motive_line.py
../../low_frequency/magnetic/transient_winding.py
../../low_frequency/magnetic/lorentz_actuator.py
Expand Down
1 change: 0 additions & 1 deletion examples/low_frequency/magnetic/index.rst
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,5 @@ These examples use PyAEDT to show some magnetics applications.

transient_winding.py
choke.py
magneto_motive_contour.py
magneto_motive_line.py
lorentz_actuator.py
6 changes: 6 additions & 0 deletions examples/low_frequency/magnetic/magneto_motive_line.py
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@
#
# Perform required imports.

import os
import tempfile
import time

Expand Down Expand Up @@ -58,6 +59,11 @@
design="Maxwell2DDesign1",
)

# ## Plot model

model = m2d.plot(show=False)
model.plot(os.path.join(temp_folder.name, "Image.jpg"))

# # First option

# ## Create a polyline
Expand Down

0 comments on commit 57c39a2

Please sign in to comment.