Skip to content

Commit

Permalink
minor error corrections
Browse files Browse the repository at this point in the history
  • Loading branch information
anur7 committed Aug 27, 2024
1 parent 064f070 commit 1fe5d0c
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions examples/12-general/Maxwell_RMxprt.py
Original file line number Diff line number Diff line change
Expand Up @@ -105,7 +105,7 @@
app.rotor["Pole Type"] = 1

app.rotor.properties.children["Pole"].props["Embrace"] = 0.7
app.rotor.properties.children["Pole"].props["Offset"] = 0
app.rotor.properties.children["Pole"].props["Offset"] = "0mm"
app.rotor.properties.children["Pole"].props["Magnet Type"] = ["Material:=", "Alnico9"]
app.rotor.properties.children["Pole"].props["Magnet Thickness"] = "3.5mm"

Expand All @@ -132,9 +132,9 @@
m2d = app.create_maxwell_design(setup_name=setup.name, maxwell_2d=True)
m2d.plot(show=False, output_file=os.path.join(temp_folder.name, "Image.jpg"), plot_air_objects=True)

# ## Rmxprt settings export
# ## RMxprt settings export
#
# All Rmxprt settings can be exported in a json file and reused for another
# All RMxprt settings can be exported in a json file and reused for another
# project with import function.

config = app.export_configuration(os.path.join(temp_folder.name, "assm.json"))
Expand All @@ -143,9 +143,9 @@

# ## Save project
#
# Save the Maxwell project.
# Save the project containing the Maxwell design.

m2d.save_project(os.path.join(temp_folder.name, "Maxwell_project.aedt"))
m2d.save_project(file_name=project_name)

# ## Release AEDT and clean up temporary directory
#
Expand Down

0 comments on commit 1fe5d0c

Please sign in to comment.