Skip to content

JMAG Direct Coupling

Symbol

Description

The JMAG direct coupling block executes a JMAG finite element analysis (FEA) model specified in the properties panel, exchanging physical values such as voltage, current, and torque with power electronics circuits in SIMBA. JMAG is FEA software developed by JSOL Corporation for designing and simulating electromagnetic components, including motors and transformers (https://www.jmag-international.com/). Both JMAG and JMAG-Designer are registered trademarks of JSOL Corporation.

To use the JMAG direct coupling block, JMAG-Designer must be installed on your computer. For operation and licensing information regarding JMAG, please contact a JMAG distributor in your region, which can be found at this link: (https://www.jmag-international.com/aboutus/members/)

Note that the JMAG direct coupling block will not display pins until the port information XML file is specified in the properties panel. Once the port information XML is loaded, the pins will be displayed accordingly.

Important

JMAG requires an environment variable named "InsDir" to be defined in your machine. This variable must be set to the path of the JMAG installation folder. For instance, if you have installed JMAG v24.1 in the default directory, you should set the variable as follows: InsDir=C:\Program Files\JMAG-Designer24.1

Information

When using the JMAG direct coupling block with the inverter circuit, it is recommended to specify the initial terminal voltage of the block as 0 at t = 0. This is to ensure the same result as when running JMAG alone without coupling with SIMBA. By doing this, the same initial value definition will be used in the JMAG solver and SIMBA solver.

The initial terminal voltage can be set by following either one of the approaches.

  • In SIMBA, insert a C-language block between the inverter switch and the PWM generator. In the C-language block, configure the switch to be open at t = 0.

  • In JMAG, insert a switch between the FEM coil and the voltage source with the external circuit condition Configure the switch to be open at t = 0.

Library

Electrical > Motors

Pins

Name Description

Parameters

Name Description
InputFilePath Path to the JMAG input file (String)
XmlFilePath Path to the port XML File (String)
DllPath Path to the JMAG library, jbdll.dll. (String)
InterfaceExecutablePath Path to the interface executable path
J0 J0
B0 B0