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. [S0023] Performs a Fourier transform on the specified dataset

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

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

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

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

    Create a part set for multiple parts specified by names.

  5. [S0019] Export an RTT file from the results of an efficiency map study

    Export the RTT file with information such as the author and winding conductor information from the results of the efficiency map analysis study in speed-priority mode.

  6. [S0018] Set topology optimization option settings

    Set parameters and evaluation options for a genetic-algorithm-based topology optimization.

  7. [S0017] Create a 3-phase coil winding setting to a magnetic field analysis study using the coil winding function

    Setup coil winding settings to a rotating machine model using the coil winding function. Add a winding component to the circuit, set winding areas, and set winding parameters.

  8. [S0016] Define response values ​​from a result in table format

    Create response values ​​from a result in table format as a indicator representing the analysis results for comparing multiple analysis results.

  9. [S0015] Create the probe, vector and contour

    Create contour, vector and probe definitions to visualize distributed analysis results.

  10. [S0014] Create a custom material with electric properties

    Create an insulation material by defining only the electric properties required for the electric field analysis.

  11. [S0013] Change the setting of items in [Tools]-[Preferences]

    Change the setting of items in JMAG-Designer's [Tools]-[Preferences]. Here is an example of changing the background color, font etc. of the graphics window.

  12. [S0012] Get the analysis results in table format

    Get analysis results in table format, including units. For transient response analysis, also get a step time.

  13. [S0011] Apply heat transfer boundary condition to the part surfaces

    In a thermal analysis study, apply heat transfer boundary condition to the faces defined by the set.

  14. [S0010] Set up the automatic meshing property with Method 3: Automatic element size

    Set the mesh properties for the 2D magnetic field analysis to slide mesh method 3 (automatic element size).

  15. [S0009] Add result calculation of parts, faces, or edges for mesh groups

    Create result calculation definition of part, face or edge that target mesh groups.

  16. [S0008] Get the applied conditions by specifying the analysis condition type name

    Retrieve the conditions applied to the study by specifying the type name of the analysis condition. This method does not use the title or index of the condition.

  17. [S0007] Export an image specifying the size to the same folder as the project file

    Export an image of the JMAG-Designer model display as a file to the same folder as the opened project file.

  18. [S0006] Get the area or volume of a part with a specified name

    Get the volume in 3D or the area in 2D of a part or parts group with specified name

  19. [S0005] Set the orientation pattern of the magnetization material parts to a parallel pattern (circular any direction)

    In a magnetic field analysis, set the orientation pattern to a parallel pattern (circular any direction) in the properties of the part with the magnetization material

  20. [S0004] Add steady conditions to the step control in the study properties of a magnetic field transient analysis

    In a magnetic field transient analysis, add steady conditions to the step control to stop the analysis when a steady state is reached.

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