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.
JMAG Script Library
-
[D0039] Set Cooling (Natural Convection)
Set Cooling by Natural Convection
-
[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.
-
[D0005] All case create mesh
Create mesh for all cases if the case does not have a mesh.
-
[D0024] NVH Force Export (Nodal Force)
Export toque and force to the CSV file for motor NVH.
-
[D0040] Contact Resistance between Stator Core and Case
Contact Resistance between Stator Core and Case
-
[D0013] Create transfer function csv file
Create a csv file of a transfer function.
-
[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.
-
[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
-
[D0025] NVH Force Export (Surface Force)
Export toque and force to the CSV file for motor NVH.
-
[D0038] Contact Resistance between Magnet and Rotor Core
Set Contact Heat Resistance between Magnet and Rotor Core
-
[D0019] Highlight parts that allow eddy current
This script highlights parts where eddy currents will be calculated.
-
[D0015] Export Jcf For External Circuit Link
Export Jcf For External Circuit Link.
-
[D0035] Vibration Evaluation with Transfer Function
Evaluate the vibration of an observation point using the transfer function.
-
[D0021] Loading Topology Optimization Geometry
Loading selected topology optimization geometry
-
[D0017] Generate sampling cases
Generate sampling cases.
-
[D0036] Heat Transfer at Airgap
Set Heat Transfer at Airgap


