:orphan:
.. _ref_examples:
Examples
========
End-to-end examples show how you can use PyMotorCAD. If PyMotorCAD is installed
on your machine, you can download these examples as Python files or Jupyter
notebooks and run them locally.
.. note::
Some examples require additional Python packages.
.. raw:: html
.. thumbnail-parent-div-open
.. thumbnail-parent-div-close
.. raw:: html
Adaptive templates examples
~~~~~~~~~~~~~~~~~~~~~~~~~~~
Library of adaptive templates examples for setting up custom geometries in Motor-CAD.
These scripts can be loaded into the Motor-CAD Adaptive Templates tab.
.. note::
Adaptive Templates in Motor-CAD require v2024.1.2 (Motor-CAD 2024 R1 Update) or later.
.. note::
For more information on the use of Adaptive Templates in Motor-CAD,
and how to create, modify and debug Adaptive Templates Scripts,
see :ref:`ref_adaptive_templates_UG` in the :ref:`ref_user_guide`.
.. raw:: html
.. thumbnail-parent-div-open
.. raw:: html
.. only:: html
.. image:: /examples/adaptive_library/images/thumb/sphx_glr_BPMTriangularRotorNotches_thumb.png
:alt:
:ref:`sphx_glr_examples_adaptive_library_BPMTriangularRotorNotches.py`
.. raw:: html
Triangular Rotor Notches for IPM
.. raw:: html
.. only:: html
.. image:: /examples/adaptive_library/images/thumb/sphx_glr_BezierCurveRotorPockets_thumb.png
:alt:
:ref:`sphx_glr_examples_adaptive_library_BezierCurveRotorPockets.py`
.. raw:: html
Bezier curve rotor pockets
.. raw:: html
.. only:: html
.. image:: /examples/adaptive_library/images/thumb/sphx_glr_DXFImport_thumb.png
:alt:
:ref:`sphx_glr_examples_adaptive_library_DXFImport.py`
.. raw:: html
Custom DXF Geometry
.. raw:: html
.. only:: html
.. image:: /examples/adaptive_library/images/thumb/sphx_glr_OblongStatorDuct_thumb.png
:alt:
:ref:`sphx_glr_examples_adaptive_library_OblongStatorDuct.py`
.. raw:: html
Oblong stator ducts with thermal adjustment
.. raw:: html
.. only:: html
.. image:: /examples/adaptive_library/images/thumb/sphx_glr_RoundParallelSlotBttm_thumb.png
:alt:
:ref:`sphx_glr_examples_adaptive_library_RoundParallelSlotBttm.py`
.. raw:: html
Round Parallel Slot Bottom
.. raw:: html
.. only:: html
.. image:: /examples/adaptive_library/images/thumb/sphx_glr_TrapezoidalDuct_thumb.png
:alt:
:ref:`sphx_glr_examples_adaptive_library_TrapezoidalDuct.py`
.. raw:: html
Trapezoidal ducts
.. raw:: html
.. only:: html
.. image:: /examples/adaptive_library/images/thumb/sphx_glr_UShapeSYNCRELCurvedFluxBarriers_thumb.png
:alt:
:ref:`sphx_glr_examples_adaptive_library_UShapeSYNCRELCurvedFluxBarriers.py`
.. raw:: html
Curved Rotor Flux Barriers for SYNCREL U-Shape
.. thumbnail-parent-div-close
.. raw:: html
Advanced examples
-----------------
These examples show you how to use the basic functionality of PyMotorCAD.
.. raw:: html
.. thumbnail-parent-div-open
.. raw:: html
.. only:: html
.. image:: /examples/advanced/images/thumb/sphx_glr_force_extraction_thumb.png
:alt:
:ref:`sphx_glr_examples_advanced_force_extraction.py`
.. raw:: html
Motor-CAD force extraction example script
.. thumbnail-parent-div-close
.. raw:: html
Basic examples
--------------
These examples show you how to use the basic functionality of PyMotorCAD.
.. raw:: html
.. thumbnail-parent-div-open
.. raw:: html
.. only:: html
.. image:: /examples/basics/images/thumb/sphx_glr_emag_basics_thumb.png
:alt:
:ref:`sphx_glr_examples_basics_emag_basics.py`
.. raw:: html
Motor-CAD E-magnetic example script
.. raw:: html
.. only:: html
.. image:: /examples/basics/images/thumb/sphx_glr_lab_basics_thumb.png
:alt:
:ref:`sphx_glr_examples_basics_lab_basics.py`
.. raw:: html
Motor-CAD Lab model example script
.. raw:: html
.. only:: html
.. image:: /examples/basics/images/thumb/sphx_glr_thermal_basics_thumb.png
:alt:
:ref:`sphx_glr_examples_basics_thermal_basics.py`
.. raw:: html
Motor-CAD thermal example script
.. thumbnail-parent-div-close
.. raw:: html
Internal scripting examples
---------------------------
These examples show you how to use the internal scripting functionality of PyMotorCAD.
.. raw:: html
.. thumbnail-parent-div-open
.. raw:: html
.. only:: html
.. image:: /examples/internal_scripting/images/thumb/sphx_glr_emag_thumb.png
:alt:
:ref:`sphx_glr_examples_internal_scripting_emag.py`
.. raw:: html
E-magnetic
.. raw:: html
.. only:: html
.. image:: /examples/internal_scripting/images/thumb/sphx_glr_mechanical_force_thumb.png
:alt:
:ref:`sphx_glr_examples_internal_scripting_mechanical_force.py`
.. raw:: html
Mechanical force
.. raw:: html
.. only:: html
.. image:: /examples/internal_scripting/images/thumb/sphx_glr_mechanical_stress_thumb.png
:alt:
:ref:`sphx_glr_examples_internal_scripting_mechanical_stress.py`
.. raw:: html
Mechanical stress
.. raw:: html
.. only:: html
.. image:: /examples/internal_scripting/images/thumb/sphx_glr_thermal_steady_state_thumb.png
:alt:
:ref:`sphx_glr_examples_internal_scripting_thermal_steady_state.py`
.. raw:: html
Thermal steady-state
.. raw:: html
.. only:: html
.. image:: /examples/internal_scripting/images/thumb/sphx_glr_thermal_transient_thumb.png
:alt:
:ref:`sphx_glr_examples_internal_scripting_thermal_transient.py`
.. raw:: html
Thermal transient
.. thumbnail-parent-div-close
.. raw:: html
Linking examples
~~~~~~~~~~~~~~~~
These examples show how you can link PyMotorCAD to other Ansys products.
.. raw:: html
.. thumbnail-parent-div-open
.. raw:: html
.. only:: html
.. image:: /examples/links/images/thumb/sphx_glr_ece_export_for_twinbuilder_thumb.png
:alt:
:ref:`sphx_glr_examples_links_ece_export_for_twinbuilder.py`
.. raw:: html
Motor-CAD EMag Twin Builder ECE
.. raw:: html
.. only:: html
.. image:: /examples/links/images/thumb/sphx_glr_thermal_twinbuilder_thumb.png
:alt:
:ref:`sphx_glr_examples_links_thermal_twinbuilder.py`
.. raw:: html
Motor-CAD Thermal Twin Builder ROM
.. thumbnail-parent-div-close
.. raw:: html
.. toctree::
:hidden:
:includehidden:
/examples/adaptive_library/index.rst
/examples/advanced/index.rst
/examples/basics/index.rst
/examples/internal_scripting/index.rst
/examples/links/index.rst
.. only:: html
.. rst-class:: sphx-glr-signature
`Gallery generated by Sphinx-Gallery