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. [S0043] Set parameter using a function to a condition of transient response analysis

    Set parameters such as current and electric potential, which change depending on time, angle, etc., using functions.

  2. [S0042] Create an efficiency map that has the drive cycle

    Create an efficiency map with a drive cycle for the result evaluation of the efficiency map study.

  3. [S0041] Create composite result display definition to display multiple distribution plots on a single screen

    Create a composite result definition to plot different result types or different components for each part and display on a single screen.

  4. [S0040] Create an equation in the case control

    Create an equation of an expression type with specifying the display order on equation list.

  5. [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.

  6. [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.

  7. [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.

  8. [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.

  9. [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.

  10. [S0034] Get the settings of measurement variables

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

  11. [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.

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

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

  13. [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.

  14. [S0030] Create a custom superconductor material

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

  15. [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.

  16. [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.

  17. [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.

  18. [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.

  19. [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.

  20. [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.

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