:orphan:

Examples
========

These examples train GradNet current and flux linkage maps from measured and FEM datasets and compare the trained maps with the data. The datasets in ``examples/datasets`` are for two PM synchronous reluctance machines: a four-pole 5.6-kW machine (Baldor ECS101M0H7EF4) and a 10-pole 28-kW machine (Brusa HSM1.10.18.04). For the 5.6-kW machine, a FEM dataset with spatial harmonics is also provided. The trained models in ``examples/trained_models`` are loaded if they exist, so the examples run without training; delete a model file to retrain it. The scripts ``train_*.py`` train the FEM-data models used in the simulation examples of motulator (which has its own copies of the trained models it uses); they produce no figures and are shown without being executed.


.. raw:: html

  <div id='sg-tag-list' class='sphx-glr-tag-list'></div>


.. raw:: html

    <div class="sphx-glr-thumbnails">

.. thumbnail-parent-div-open

.. raw:: html

    <div class="sphx-glr-thumbcontainer" tooltip="This example trains a GradNet flux-linkage map for a 10-pole 28-kW PM synchronous reluctance machine (Brusa HSM1.10.18.04) from a measured dataset. The procedure is the same as in /examples/plot_6kw_pmsyrm_flux_map_meas.">

.. only:: html

  .. image:: /examples/images/thumb/sphx_glr_plot_28kw_pmsyrm_flux_map_meas_thumb.png
    :alt:

  :doc:`/examples/plot_28kw_pmsyrm_flux_map_meas`

.. raw:: html

      <div class="sphx-glr-thumbnail-title">28-kW PM-SyRM, train flux map, measured data</div>
    </div>


.. raw:: html

    <div class="sphx-glr-thumbcontainer" tooltip="This example trains a GradNet flux-linkage map for a four-pole 5.6-kW PM synchronous reluctance machine (Baldor ECS101M0H7EF4) from a measured dataset.">

.. only:: html

  .. image:: /examples/images/thumb/sphx_glr_plot_6kw_pmsyrm_flux_map_meas_thumb.png
    :alt:

  :doc:`/examples/plot_6kw_pmsyrm_flux_map_meas`

.. raw:: html

      <div class="sphx-glr-thumbnail-title">5.6-kW PM-SyRM, train flux map, measured data</div>
    </div>


.. raw:: html

    <div class="sphx-glr-thumbcontainer" tooltip="This example trains a GradNet current map for a four-pole 5.6-kW PM synchronous reluctance machine (Baldor ECS101M0H7EF4) from a measured dataset.">

.. only:: html

  .. image:: /examples/images/thumb/sphx_glr_plot_6kw_pmsyrm_curr_map_meas_thumb.png
    :alt:

  :doc:`/examples/plot_6kw_pmsyrm_curr_map_meas`

.. raw:: html

      <div class="sphx-glr-thumbnail-title">5.6-kW PM-SyRM, train current map, measured data</div>
    </div>


.. raw:: html

    <div class="sphx-glr-thumbcontainer" tooltip="This example trains a GradNet current map for a 10-pole 28-kW PM synchronous reluctance machine (Brusa HSM1.10.18.04) from a measured dataset. The procedure is the same as in /examples/plot_6kw_pmsyrm_curr_map_meas.">

.. only:: html

  .. image:: /examples/images/thumb/sphx_glr_plot_28kw_pmsyrm_curr_map_meas_thumb.png
    :alt:

  :doc:`/examples/plot_28kw_pmsyrm_curr_map_meas`

.. raw:: html

      <div class="sphx-glr-thumbnail-title">28-kW PM-SyRM, train current map, measured data</div>
    </div>


.. raw:: html

    <div class="sphx-glr-thumbcontainer" tooltip="This example trains a GradNet flux-linkage map for a four-pole 5.6-kW PM synchronous reluctance machine (Baldor ECS101M0H7EF4) from a FEM dataset with spatial harmonics.">

.. only:: html

  .. image:: /examples/images/thumb/sphx_glr_plot_6kw_pmsyrm_flux_map_fem_harm_thumb.png
    :alt:

  :doc:`/examples/plot_6kw_pmsyrm_flux_map_fem_harm`

.. raw:: html

      <div class="sphx-glr-thumbnail-title">5.6-kW PM-SyRM, train flux map, FEM data with spatial harmonics</div>
    </div>


.. raw:: html

    <div class="sphx-glr-thumbcontainer" tooltip="This example trains a GradNet flux-linkage map for a four-pole 5.6-kW PM synchronous reluctance machine (Baldor ECS101M0H7EF4) from a FEM dataset without spatial harmonics.">

.. only:: html

  .. image:: /examples/images/thumb/sphx_glr_train_6kw_pmsyrm_flux_map_fem_no_harm_thumb.png
    :alt:

  :doc:`/examples/train_6kw_pmsyrm_flux_map_fem_no_harm`

.. raw:: html

      <div class="sphx-glr-thumbnail-title">5.6-kW PM-SyRM, train flux map, FEM data, no spatial harmonics</div>
    </div>


.. raw:: html

    <div class="sphx-glr-thumbcontainer" tooltip="This example trains a GradNet current map for a four-pole 5.6-kW PM synchronous reluctance machine (Baldor ECS101M0H7EF4) from a FEM dataset with spatial harmonics.">

.. only:: html

  .. image:: /examples/images/thumb/sphx_glr_train_6kw_pmsyrm_curr_map_fem_thumb.png
    :alt:

  :doc:`/examples/train_6kw_pmsyrm_curr_map_fem`

.. raw:: html

      <div class="sphx-glr-thumbnail-title">5.6-kW PM-SyRM, train current map, FEM data with spatial harmonics</div>
    </div>


.. thumbnail-parent-div-close

.. raw:: html

    </div>


.. toctree::
   :hidden:

   /examples/plot_28kw_pmsyrm_flux_map_meas
   /examples/plot_6kw_pmsyrm_flux_map_meas
   /examples/plot_6kw_pmsyrm_curr_map_meas
   /examples/plot_28kw_pmsyrm_curr_map_meas
   /examples/plot_6kw_pmsyrm_flux_map_fem_harm
   /examples/train_6kw_pmsyrm_flux_map_fem_no_harm
   /examples/train_6kw_pmsyrm_curr_map_fem


.. only:: html

  .. container:: sphx-glr-footer sphx-glr-footer-gallery

    .. container:: sphx-glr-download sphx-glr-download-python

      :download:`Download all examples in Python source code: examples_python.zip </examples/examples_python.zip>`

    .. container:: sphx-glr-download sphx-glr-download-jupyter

      :download:`Download all examples in Jupyter notebooks: examples_jupyter.zip </examples/examples_jupyter.zip>`


.. only:: html

 .. rst-class:: sphx-glr-signature

    `Gallery generated by Sphinx-Gallery <https://sphinx-gallery.github.io>`_
