Resources

Designing a 3-Phase Inverter in Ansys Simplorer and Coupling with Maxwell FEA for a 160kW PMSM

Written by Batuhan Sirri YILMAZ | Aug 1, 2025 2:35:37 PM

 

INTRODUCTION

In this blog post, we’ll explore how to design a 3-phase inverter using Ansys Simplorer and couple it with an electromagnetic FEA model in Ansys Maxwell to achieve accurate system-level results.

Ansys Electronics offers a robust ecosystem for multi-domain simulation, enabling seamless integration across various physics domains. Maxwell is used for electromagnetic finite element analysis (FEA), Simplorer (Twin Builder) for system-level inverter and controller design, and Icepak for thermal simulations in electronics.

As an example, we’ll walk through the inverter design process for a 160 kW, 8-pole Permanent Magnet Synchronous Motor (PMSM) using Simplorer. Let’s get started!

 


 1. Inverter Design

There are two common topologies for implementing a 3-phase inverter:

  • Battery-fed Inverter: Power is delivered from a DC battery to the motor through an inverter—commonly used in electric vehicles.

  • Grid-fed Inverter: Power flows from an AC grid through a rectifier and then to the motor via the inverter—common in industrial systems.

In this post, we’ll demonstrate how to build both cases in Ansys Simplorer.

1.1 Battery-fed 3-Phase Inverter

 

Step 1: Setup the DC Source

  1. Launch Ansys Simplorer within the Electronics Desktop.

2. From the Component Libraries, go to:

3. Drag the Voltage Source block into the workspace. Double-click it, rename it to “Battery,” and set the DC link voltage (e.g., 450 V).

 

 

Step 2: Add the 3-Phase Inverter Block

  1. Search for TPRC (Three-Phase Resonance Converter).

  2. Drag and drop it onto the canvas.

  3. Connect the battery to the inverter.

  4. Double-click the inverter block and go to the Output/Display tab. Uncheck signals ctrl11/12/21/22/31/32 to reduce wire clutter.

At this point, your battery is connected to the switching unit. The control signals will be generated later.

Let's connect the 3-phase inverter to an electric motor. In this blog we will show how to couple FEA model, in next blogs we will show how to extract the equivalent circuit of an electric motor to use in Simplorer for faster simulations.

1.2 Maxwell-Simplorer Coupling

Before proceeding, note the following:

  • If your windings are set as stranded, Maxwell does not calculate resistance and inductance.

  • You will need to manually insert:

    • Resistance = 5 mΩ

    • Inductance = 5 µH

Use the Component Libraries to add these elements, along with an Ammeter to measure phase currents—this will help with controller feedback.

Note: If your windings are solid (e.g., hairpin type), Maxwell will calculate resistance and inductance automatically, and this step can be skipped.

 

Step 1: Enable Maxwell Coupling

  1. Open your motor model in Maxwell.

  2. Ensure both Simplorer and Maxwell designs are under the same project.

  3. In Maxwell:

    • Go to Maxwell 2D > Design Settings > Advanced Product Coupling

    • Enable Transient–Transient Link

 

 

 

 

 

Step 2: Add Maxwell Model to Simplorer

  1. In Simplorer:

    • Go to Twin Builder > Add Component > Maxwell Component > Add Transient Cosimulation…

  2. Ensure the correct Maxwell project and solution are selected, then click OK.

 3. Place the model on your circuit canvas.

 4. Connect the phase terminals and configure the motor as star-connected (or delta as needed).


1.3 Simplorer Motion & Measurement Setup

To simulate the motor’s motion:

  1. Search V_ROTB in the component library.

  2. Connect it to MotionSetup1_in to provide angular velocity (e.g., 3000 rpm).

  3. Set the initial angle to 7.5°.

 

To measure rotation:

  • Add VM_ROTB parallel to the rotation input.

  • Add FM_ROTB in series if you want to observe torque.

  • Use SM_ROTB to measure angular velocity. Check “show pin” for angle output and use it for control logic.

 

 

1.4 Electrical Angle Conversion

To convert mechanical angle to electrical:

  1. Use:

    • One SUM block to subtract the 7.5° offset.

    • One GAIN block to multiply by the number of pole pairs.

    • One final SUM block for phase correction.

 

 

 

 

 

 

 

 

 

 

The first summation block is used to correct the initial electrical angle of the motor, which we previously set as 7.5°. To adjust this:

  • Double-click the block, change the ‘+’ sign to ‘–’ to subtract the offset,

  • Enter 7.5*PI/180 for Signal 2,

  • Uncheck "Show Pin" for a cleaner layout.

The Gain block is used to convert the mechanical angle to electrical angle by multiplying it with the number of pole pairs.

The final summation block applies phase inversion, which is required for the Clarke/Park transformation.

Your final configuration should look like the images below.

 

1.3. Park Transformation

Since we already have the rotational position of the rotor, we can convert the ABC phase currents to DQ components, which are commonly used in control algorithms.

Ansys Simplorer provides a ready-to-use block for this:

  • Search for abc2dq in the component library.

  • Drag it into your circuit workspace and connect it as shown to the phase current signals.

  • (Tip: You can use pin names instead of wires to keep the diagram visually clean and organized.)

This will enable you to work with DQ currents in your controller design.

 

1.6 Current Controllers

To control id and iq currents:

  1. Search PI_ and drag two blocks.

  2. Connect outputs of abc2dq to PI controllers.



You can assign the values as shown below for the d-axis and q-axis PI controllers. In this setup, the input signals for the d and q currents are assigned manually. However, you can further advance the model by implementing a Field-Oriented Control (FOC) algorithm to dynamically predict the current references based on your torque or speed commands, and connect those outputs to the reference inputs of the PI controllers.

Please note that the PI values provided are tuned for this specific motor and inverter combination—you may need to adjust them to suit the parameters of your own system.

1.7 SVPWM & Final Switching

To generate switching signals:

  1. Add dq02abc and SVPWM blocks.

  2. Connect them in the following order:

 3. In SVPWM:

  • Uncheck “z” pin and zero input.

  • Set:

    • freq = 10,000 Hz

    • dead_time = 1e-6

    • v_dc = Vdc_bus (parameter set earlier)

v

 

Now we have ended the circuit of the 3-phase SVPWM inverter coupled with FEA.

 

1.8 Final Setup

  1. Double-click the TPRC inverter block.

  2. Assign:  svpwm1.t1 , svpwm1.t2 and so on for the switching signals. 

 3. Set analysis parameters:

  • End Time = 10 ms

  • Min/Max Step Size = 4 µs

 

 

Results

Your simulation setup is now complete and ready to run!

Simulation Time

Go ahead and run the simulation. Depending on your step size, solver settings, and model complexity, the simulation may take anywhere from 10 to 60 minutes.

 

 

Phase Current Comparison

The phase currents for both pure sinusoidal excitation and the inverter-fed excitation are plotted below. As seen from the results, the fundamental magnitudes are identical, confirming that the inverter is functioning correctly and generating the required waveform.

 

Torque Comparison

The torque output was also analyzed at 3000 rpm under both excitation methods:

  • The average torque remains consistent across both simulations.

  • However, the inverter-fed model exhibits higher torque ripple, with approximately 15% more peak-to-peak variation compared to the pure sinusoidal case.

  • This increased ripple is due to the harmonic content introduced by the switching behavior of the inverter.

 

Core Loss Comparison

When comparing the core losses between the two excitation scenarios:

  • The inverter-fed model results in approximately 24% higher core loss than the pure sinusoidal excitation.

  • This increase can be attributed to the additional high-frequency harmonics generated by the pulse-width modulation (PWM) switching, which elevates local eddy currents and hysteresis effects in the magnetic core.

 

1.1 Grid-Fed 3-Phase Inverter

To model a grid-fed inverter system, we’ll replace the DC battery source with an AC grid input and add a rectification stage.

Step 1: Add the AC Grid Source and Rectifier

  1. Remove the DC voltage source (Battery) used in the previous section.

  2. From the Component Library, search for and add a 3-phase AC voltage source.

  3. Then, search for rectifier_6pulse and drag it onto the workspace.

  4. Add a filter capacitor (e.g., 1 mF) between the rectifier output terminals.

  5. Connect the AC source to the rectifier input and the capacitor across the rectifier output.

 

 

Step 2: DC Link Voltage

  1. Add a voltmeter across the capacitor to monitor the DC link voltage.

  2. Rename the measured value to VM1.V and use this as the reference for Vdc_bus in your inverter settings instead of the fixed 450 V.

This setup converts the 3-phase AC input into a smoothed DC voltage that feeds the inverter.

 

Congratulations! Your inverter is now connected to the grid and ready for simulation.


You can access the model from this link to refer your projects: CO-Simulation2025R2.zip

 

VIDEO

 

 

Conclusion

This blog demonstrated how to build a 3-phase inverter system in Ansys Simplorer and couple it with a detailed electromagnetic model from Ansys Maxwell. The results confirmed that the inverter-fed system performs equivalently in terms of average torque compared to a pure sinusoidal source, while also highlighting important differences in torque ripple and core losses due to PWM switching.

Coupling system-level control and drive circuitry with detailed finite element models is crucial for accurately capturing real-world behaviors, especially in electric motor applications. This workflow not only enables more precise loss and torque analysis but also supports the development of advanced control strategies like FOC (Field-Oriented Control).

Ansys Simplorer and Maxwell offer powerful capabilities for co-simulation, providing a unified environment to evaluate the electrical, magnetic, and control interactions within your design. Whether you're optimizing performance, validating control logic, or exploring thermal and NVH impacts in future stages, this flexible and integrated toolchain ensures you can do it all—efficiently and accurately.

Stay tuned for the next blog, where we’ll show how to extract an equivalent circuit model from Maxwell and use it in Simplorer for faster simulations.

 

Ozen Engineering Expertise

Ozen Engineering Inc. leverages its extensive consulting expertise in CFD, FEA, optics, photonics, and electromagnetic simulations to achieve exceptional results across various engineering projects, addressing complex challenges such as antenna design, signal integrity, electromagnetic interference (EMI), and electric motor analysis using Ansys software.

We offer support, mentoring, and consulting services to enhance the performance and reliability of your electronics systems. Trust our proven track record to accelerate projects, optimize performance, and deliver high-quality, cost-effective results. For more information, please visit https://ozeninc.com.

If you want to learn more about our consulting services, please visit: https://www.ozeninc.com/consulting/

CFD: https://www.ozeninc.com/consulting/cfd-consulting/ 

FEA: https://www.ozeninc.com/consulting/fea-consulting/ 

Optics: https://www.ozeninc.com/consulting/optics-photonics/ 

Photonics: https://www.ozeninc.com/consulting/optics-photonics/ 

Electromagnetic Simulations: https://www.ozeninc.com/consulting/electromagnetic-consulting/ 

Thermal Analysis & Electronics Cooling: https://www.ozeninc.com/consulting/thermal-engineering-electronics-cooling/