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

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

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

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

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

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

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

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

  9. [S0003] Place a PWM 120deg conduction system (3-phase) component in the circuit

    Place a PWM 120deg conduction system (3-phase) macro component in the circuit of a magnetic field transient analysis study or an integration analysis study

  10. [S0002] Set the rotation motion condition to all parts within a specified radius from the origin

    In the model of a magnetic field analysis study, set the rotation motion condition to parts within a specified radius from the origin

  11. [S0001] In 2D magnetic field analysis, set the rotation periodic boundary condition to all edges on the X axis

    In 2D magnetic field analysis model, set the periodic boundary condition to all edges on the X axis where X>=0

  12. [S9390] Script for setting the switching timing of the PAM inverter

    The following is an example of a script for setting the switching timing of a PAM inverter.

  13. [S9210] Script to create a DC superimposed current sequence and set it as the current condition

    I want to create a DC superimposed current sequence using a script and set it as the current condition.

  14. [S8626] Script for setting skin depth based on material and frequency

    The following is an example of a script for setting the skin depth based on material and frequency.

  15. [S8570] Script to remove duplicate nodes in the Geometry Editor

    The following is an example of a script for removing duplicate nodes in the Geometry Editor.

  16. [S8553] Script for performing assembly circular pattern copying in the Geometry Editor

    The following is an example of a script for performing an assembly circular pattern copy in the Geometry Editor.

  17. [S8545] Script to set concentrated load conditions at nodes on a circle

    The following is an example of a script for setting concentrated load conditions at nodes on a circle.

  18. [S8507] Script to output a result table of nodes with nodal forces above the threshold value

    The following is an example of a script that outputs a result table of nodes with nodal forces above the threshold.

  19. [S8493] Script to calculate the induced voltage constant Ke from the analysis results and register it in the response value

    The following is an example of a script that calculates the induced voltage constant Ke from the analysis results and registers it in the response value.

  20. [S8481] Script for placing the starting point of flux line rendering circumferentially in a 3D model

    The following is an example of a script that places the starting point of the flux line rendering in a circular direction in a 3D model.

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