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. [S0039] Create a full model from a partial model using the assembly pattern feature

    Load a CAD file prepared as a partial model and create a full model using assembly pattern features.

  2. [S0038] Retrieve the parts and sets information of the analysis template, associate them and apply to a model

    Retrieve information on parts and sets from the analysis template, including parts and sets that are not automatically associated. If the names match within certain rules, create pairs and the analysis template is applied to the model.

  3. [S0037] Create a 2D shape of the I-shaped rotor of an IPM motor

    Create the 2D shape of the I-shaped rotor of an IPM motor as a 1/4 model with 4 poles and mirror symmetry.

  4. [S0036] Set the Halbach array as the magnetization pattern for a permanent magnet

    Set a parallel pattern (circular Halbach array) to permanent magnets arranged in the circumferential direction.

  5. [S0035] Create a response table with corrections and skew applied in an efficiency map study

    Apply correction parameters to the results of the efficiency map analysis study and create a new response table.

  6. [S0034] Get the settings of measurement variables

    Retrieved and display the settings of the measurement variables according to the measurement type.

  7. [S0033] Define a 2D harmonic amplitude response value from a section graph data set

    Create and register a 2D harmonic amplitude response value from a dataset of calculation results obtained on the time and spatial axes.

  8. [S0032] Create a rectangular prism in the Geometry Editor

    Create a solid part of a rectangular prism by specifying the length, width and height.

  9. [S0031] Perform a 2D Fourier transform in time and space axes

    Perform a 2D Fourier transform on a dataset of calculation results defined by the time axis and the spatial axis.

  10. [S0030] Create a custom superconductor material

    Create a custom superconductor material with properties that depend on angle, temperature, and magnetic flux density.

  11. [S0029] Set a point array property to the analysis condition

    Create and set a point array to the table type parameter in the analysis condition.

  12. [S0028] Retrieve the values ​​of winding parameters calculated based on the input parameters.

    Get the values ​​of coil parameters in the winding setting calculated from the input ​​and the slot area on the model.

  13. [S0027] Register a user-defined response value

    Register the user-defined response values using a proprietary calculation method from the analysis results output by JMAG.

  14. [S0026] Check the warnings and error messages in the study

    Get the number of errors and warnings occurring in the study, along with their message content.

  15. [S0025] Generate a multi-layer coating mesh for the specified part

    Set multi-layer coating mesh that generates layered mesh automatically on the surface of a region in the 2D analysis.

  16. [S0024] Set to use subroutines and its user variables

    Set the electric potential of the electric potential source to be supplied by a user subroutine, and set user variables for this subroutine.

  17. [S0023] Performs a Fourier transform on the specified dataset

    Performs a Fourier transform on the time history result obtained from a transient response analysis.

  18. [S0022] Submit batch execution job of specified studies within an analysis group

    When submitting a job of an analysis group, run only the selected studies within the group instead of all of them.

  19. [S0021] Setup coil end cooling and set CSV output for terminal temperature

    Create and link a coil end cooling component and an equivalent temperature boundary pattern (rotation) condition to model the cooling of the coils of a rotating machine.

  20. [S0020] Create a parts set by specifying the part names

    Create a part set for multiple parts specified by names.

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