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.

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

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

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

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

  3. [D0021] Loading Topology Optimization Geometry

    Loading selected topology optimization geometry

  4. [D0019] Highlight parts that allow eddy current

    This script highlights parts where eddy currents will be calculated.

  5. [D0017] Generate sampling cases

    Generate sampling cases.

  6. [D0016] Extract anomalous eddy current loss coefficient

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

  7. [D0015] Export Jcf For External Circuit Link

    Export Jcf For External Circuit Link.

  8. [D0014] Calculate Efficiency from Drive Mode

    Uses results of the efficiency map analysis study to calculate efficiency of electric vehicles in a specified drive mode.

  9. [D0013] Create transfer function csv file

    Create a csv file of a transfer function.

  10. [D0010] Switch all FEM conductors to FEM coils

    This script replace all FEM conductors with FEM coils in the current study. Requires Version 15.1 or later

  11. [D0009] Recommended settings for 3D FEM conductor conditions

    Apply recommended settings for 3D FEM conductor conditions.

  12. [D0008] Switch all FEM coils to FEM conductors

    This script will replace all FEM coils with FEM conductor in the current study. Requires Version 15.1 or later.

  13. [D0007] Electrostatic Capacitance Coefficient Calculation

    Outputs the capacitance coefficient of a system consisting of multiple conductors in CSV file format.

  14. [D0005] All case create mesh

    Create mesh for all cases if the case does not have a mesh.

  15. [D0004] Set the coil material

    Sets the material for parts in the current study named "Coil" to copper.

  16. [D0003] Add current condition to coils

    Set a current condition on all parts named "Coil" in the current study.

  17. [D0002] Run all studies

    Run all studies in the project.

  18. [D0001] Add magnetic field strength contour

    Add magnetic field strength contour definition to the current study.

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