-
Notifications
You must be signed in to change notification settings - Fork 3
Basic e mag example review #322
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: main
Are you sure you want to change the base?
Conversation
…ph method to work with new methods. Updated basic examples
Codecov ReportAll modified and coverable lines are covered by tests ✅
Additional details and impacted files@@ Coverage Diff @@
## main #322 +/- ##
==========================================
- Coverage 88.66% 88.58% -0.09%
==========================================
Files 21 21
Lines 2487 2487
==========================================
- Hits 2205 2203 -2
- Misses 282 284 +2 🚀 New features to boost your workflow:
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks good. A couple of comments about the pictures.
# Define a coil's parameters: | ||
# :code:`set_winding_coil(phase, | ||
# path, coil, go_slot, go_position, return_slot, return_position, turns)` | ||
# .. image:: ../../images/basics_emag_2.png |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This image doesn't seem to exist?
|
||
print("Simulation completed.") | ||
|
||
|
||
# %% | ||
# Plot results | ||
# ------------ | ||
# Plot results from the simulation. | ||
# Use``pyplot`` from ``matplotlib`` (imported as ``plt``) to plot graphs of the simulation results. | ||
# Plot the Airgap Flux Density and the Torque (VW) results as subplots in the same figure. | ||
plt.subplot(211) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Updates to EMag basic example. Fixes some issues and enhancements made to comments. Now the harmonic amplitude graph is plotted instead of the torque being plotted twice.