JMAG Script Library

Users can operate almost every feature in JMAG through scripts. Although the JMAG website previously restricted access to sample scripts to authenticated users, we would now like to make this library available to everyone.

Most of the sample scripts written in Python are easy to use with some general programming knowledge. In addition, we are also releasing instructional materials that describe various scripting methods alongside usage examples. These materials should give even those new to JMAG confidence to use the scripting tools to easily automate and streamline analyses and design processes. Going forward, we will continue to enhance this library so that everyone can realize more flexible workflows through scripts.

Batch download of S**.py

  1. [S8333] Script to FFT and output csv

    I want to automate the process of performing FFT on the results and outputting them as a CSV file.

  2. [S8332] Script to add cases and specify the direction of magnetization for each

    The following is an example of a script that adds three cases and sets the direction of the reference axis for the magnetization direction for each.

  3. [S8329] Script to create a sectiongraph and export the results to a CSV file

    The following is an example of a script to export a CSV file after setting up a new arc graph from the displayed model using “Results” > ‘Section’ > “Arbitrary Region” > “New Arc ...”.

  4. [D0040] Contact Resistance between Stator Core and Case

    Contact Resistance between Stator Core and Case

  5. [D0039] Set Cooling (Natural Convection)

    Set Cooling by Natural Convection

  6. [D0038] Contact Resistance between Magnet and Rotor Core

    Set Contact Heat Resistance between Magnet and Rotor Core

  7. [D0037] Set Cooling (Forced Convection)

    Set Cooling by Forced Convection

  8. [D0036] Heat Transfer at Airgap

    Set Heat Transfer at Airgap

  9. [D0035] Vibration Evaluation with Transfer Function

    Evaluate the vibration of an observation point using the transfer function.

  10. [D0032] Setup study for transfer function creation

    Set up a frequency analysis study for transfer function creation.

  11. [D0031] Set FEM Conductors for Parts in a set

    This script set FEM conductor conditions on all wires of a set in the current study. Requires V15.1 or later.

  12. [D0030] Allow Eddy Current for selected parts

    This script sets the "Allow Eddy Current" flag for selected parts.

  13. [D0028] Search Size Range in Optimization Table

    Search for the maximum value and the minimum value of the parametric variable range of optimization.

  14. [D0025] NVH Force Export (Surface Force)

    Export toque and force to the CSV file for motor NVH.

  15. [D0024] NVH Force Export (Nodal Force)

    Export toque and force to the CSV file for motor NVH.

  16. [D0021] Loading Topology Optimization Geometry

    Loading selected topology optimization geometry

  17. [D0019] Highlight parts that allow eddy current

    This script highlights parts where eddy currents will be calculated.

  18. [D0017] Generate sampling cases

    Generate sampling cases.

  19. [D0016] Extract anomalous eddy current loss coefficient

    Make anomalous eddy current loss coefficient table from a Custom material.

  20. [D0015] Export Jcf For External Circuit Link

    Export Jcf For External Circuit Link.

How to use script file

Use the JMAG Script Library after reading and agreeing to the following terms of use.

Search Filter
  • All Categories

An engineer's diary
JMAG-Express Online