Вы находитесь на странице: 1из 19
Simplorer v10 M01 Co-simulation with Maxwell Example of co-simulation of Simplorer and Maxwell: Motor-Drive simulation

Simplorer v10

M01

Co-simulation with Maxwell

Simplorer v10 M01 Co-simulation with Maxwell Example of co-simulation of Simplorer and Maxwell: Motor-Drive simulation

Example of co-simulation of Simplorer and Maxwell:

Motor-Drive simulation

The goal of this Lab is to realize the inverter and the motor cosimulation, using a Transient-Transient linkof Simplorer and Maxwell: Motor-Drive simulation The Motor is a 3 phase Synchronous machine with permanent

The Motor is a 3 phase Synchronous machine with permanentand the motor cosimulation, using a Transient-Transient link magnets. The inverter is a basic one level

magnets. The inverter is a basic one level inverter

with permanent magnets. The inverter is a basic one level inverter Simplorer v10 User’s Guide M01
Simplorer v10 M01 Co-simulation with Maxwell Technical Background The co-simulation is the most accurate way

Simplorer v10

M01

Co-simulation with Maxwell

Simplorer v10 M01 Co-simulation with Maxwell Technical Background The co-simulation is the most accurate way of

Technical Background

The co-simulation is the most accurate way of coupling the drive and the motor model. The advantage of this method is the high accuraty, having the real inverter currents as source in Maxwell, and the back-emf of the motor on the inverter side.v10 M01 Co-simulation with Maxwell Technical Background The transient-transient link enables the use to pass data

The transient-transient link enables the use to pass data between Simplorer and Maxwell during the simulation:Maxwell, and the back-emf of the motor on the inverter side. Maxwell2D and Maxwell3D can be

Maxwell2D and Maxwell3D can be useddata between Simplorer and Maxwell during the simulation: Simplorer and Maxwell will run altogether Simplorer is

Simplorer and Maxwell will run altogetherduring the simulation: Maxwell2D and Maxwell3D can be used Simplorer is the Master, Maxwell is the

Simplorer is the Master, Maxwell is the slavecan be used Simplorer and Maxwell will run altogether At a given time step, the Winding

At a given time step, the Winding currents and the Rotor angle are passed from Simplorer to Maxwell, the Back EMF and the Torque are passed from Maxwell to Simplorerrun altogether Simplorer is the Master, Maxwell is the slave The complexity of the drive system

The complexity of the drive system and of the mechanical system is not limitedBack EMF and the Torque are passed from Maxwell to Simplorer Insights on the coupling Method

Insights on the coupling Methodthe drive system and of the mechanical system is not limited The Simplorer time steps and

The Simplorer time steps and the Maxwell time steps don’t have to be the same. Usually, Simplorer requires much more time steps than Maxwell. same. Usually, Simplorer requires much more time steps than Maxwell.

Assume the current simulation time is t 0 0

Simplorer, based on the previous time steps, gives a forward meeting time t 1 to Maxwell where both simulators will exchange data. Between t 0 and t t 1 to Maxwell where both simulators will exchange data. Between t 0 and t 1 , both code run by themselves.

At t 1 , both codes exchange data. If during the t 0 -t 1 period, some 1 , both codes exchange data. If during the t 0 -t 1 period, some event appears on Simplorer side (state graph transition, large change of the dynamic of the circuit), Simplorer will roll back to t 0 and set a new forward meeting time t 1 , t 1 < t 1 .

Simplorer v10 M01 Co-simulation with Maxwell Simplorer Schematic The first step is to build the

Simplorer v10

M01

Co-simulation with Maxwell

Simplorer v10 M01 Co-simulation with Maxwell Simplorer Schematic The first step is to build the inverter

Simplorer Schematic

The first step is to build the inverter circuit.v10 M01 Co-simulation with Maxwell Simplorer Schematic Open Simplorer, then go to File > New Save

Open Simplorer, then go to File > New File > New

Save the project: File > Save as > Inverter File > Save as > Inverter

Select the Components tab from the Project Manager Window Components tab from the Project Manager Window

the Components tab from the Project Manager Window Select, from the Basic Elements > Circuit >
the Components tab from the Project Manager Window Select, from the Basic Elements > Circuit >

Select, from the Basic Elements > Circuit > Semiconductors System Level library the Basic Elements > Circuit > Semiconductors System Level library

the diode model and the IGBT model. Please make a note of the numbering of IGBTs as rest of exercise depends on this.

Add two voltage sources (E1 , E2 ), one Voltmeter ( VM1 ) and 3 resistances E1, E2), one Voltmeter (VM1) and 3 resistances

(RphaseA, RphaseB, RphaseC) as shown below

) and 3 resistances ( RphaseA , RphaseB , RphaseC ) as shown below Simplorer v10
Simplorer v10 M01 Co-simulation with Maxwell Simplorer Schematic The reference waveforms are implemented using time

Simplorer v10

M01

Co-simulation with Maxwell

Simplorer v10 M01 Co-simulation with Maxwell Simplorer Schematic The reference waveforms are implemented using time

Simplorer Schematic

The reference waveforms are implemented using time functions: pick the Sinev10 M01 Co-simulation with Maxwell Simplorer Schematic Wave in the Basic Elements > Tools > Time

Wave in the Basic Elements > Tools > Time Functions library.

Basic Elements > Tools > Time Functions library . Put 3 Sine Wave blocks on the

Put 3 Sine Wave blocks on the schematic, with the parameters as aboveBasic Elements > Tools > Time Functions library . Add a Triangular wave time function block

Add a Triangular wave time function blockWave blocks on the schematic, with the parameters as above The switching of the IGBTs is

as above Add a Triangular wave time function block The switching of the IGBTs is done

The switching of the IGBTs is done through a state graph that will compare the reference wave forms and the chopper signalthe parameters as above Add a Triangular wave time function block Simplorer v10 User’s Guide M01

Simplorer v10 M01 Co-simulation with Maxwell Simplorer Schematic In the Basic Elements > States library,

Simplorer v10

M01

Co-simulation with Maxwell

Simplorer v10 M01 Co-simulation with Maxwell Simplorer Schematic In the Basic Elements > States library, pick

Simplorer Schematic

In the Basic Elements > States library, pick up two STATE_11, two TRANS the Basic Elements > States library, pick up two STATE_11, two TRANS

Build the graph below then make two additional copies to have 3 circuits, one for each phase> States library, pick up two STATE_11, two TRANS We will use first state graph to

two additional copies to have 3 circuits, one for each phase We will use first state

We will use first state graph to monitor IGBT1 and IGBT2 IGBT1 and IGBT2

phase We will use first state graph to monitor IGBT1 and IGBT2 Simplorer v10 User’s Guide
Simplorer v10 M01 Co-simulation with Maxwell Simplorer Schematic We will specify the signal from state

Simplorer v10

M01

Co-simulation with Maxwell

Simplorer v10 M01 Co-simulation with Maxwell Simplorer Schematic We will specify the signal from state graphs

Simplorer Schematic

We will specify the signal from state graphs as a control signal for IGBT1 . Double click on IGBT1 and specify igbt1 as control signal (you need to IGBT1 . Double click on IGBT1 and specify igbt1 as control signal (you need to uncheck the use Pin button). Name the control signals of IGBT2 as igbt2

Pin button). Name the control signals of IGBT2 as igbt2 Specify the the second State graphs

Specify the the second State graphs to control IGBT3 and IGBT4. Use third state graph to control IGBT5 and IGBT6. Name the control IGBT3 and IGBT4. Use third state graph to control IGBT5 and IGBT6. Name the control signal for rest of the IGBTs accordingly. The final circuit should look like as below.

the IGBTs accordingly. The final circuit should look like as below. Simplorer v10 User’s Guide M01
Mawell Project Simplorer v10 M01 Co-simulation with Maxwell Open the Maxwell project PM_SyncMotor.mxwl This is
Mawell Project Simplorer v10 M01 Co-simulation with Maxwell Open the Maxwell project PM_SyncMotor.mxwl This is

Mawell Project

Simplorer v10

M01

Co-simulation with Maxwell

Open the Maxwell project PM_SyncMotor.mxwl PM_SyncMotor.mxwl

This is a 3 phase synchronous motor. The excitation is defined with current sources.with Maxwell Open the Maxwell project PM_SyncMotor.mxwl Run the Maxwell simulation: right mouse click on Setup1

Run the Maxwell simulation: right mouse click on Setup1 , and select Analyse Setup1, and select Analyse

right mouse click on Setup1 , and select Analyse The post processing is the same as
right mouse click on Setup1 , and select Analyse The post processing is the same as

The post processing is the same as Simplorer, The Winding currents and the Torque displays are already definedright mouse click on Setup1 , and select Analyse The Maxwell excitation is basic and does

Winding currents and the Torque displays are already defined The Maxwell excitation is basic and does
Winding currents and the Torque displays are already defined The Maxwell excitation is basic and does

The Maxwell excitation is basic and does not represent real life systemThe Winding currents and the Torque displays are already defined Simplorer v10 User’s Guide M01 E.01-

Simplorer v10 M01 Co-simulation with Maxwell Maxwell in Simplorer In order to use a Maxwell

Simplorer v10

M01

Co-simulation with Maxwell

Simplorer v10 M01 Co-simulation with Maxwell Maxwell in Simplorer In order to use a Maxwell model

Maxwell in Simplorer

In order to use a Maxwell model in co-simulation with Simplorer, the user just needs to do a couple of modifications on the Maxwell side.v10 M01 Co-simulation with Maxwell Maxwell in Simplorer Right mouse click on the Maxwelldesign name and

Right mouse click on the Maxwelldesign name and select copyneeds to do a couple of modifications on the Maxwell side. Right mouse click on the

Right mouse click on the Project name and select pasteRight mouse click on the Maxwelldesign name and select copy Rename the copied design name in

copy Right mouse click on the Project name and select paste Rename the copied design name
copy Right mouse click on the Project name and select paste Rename the copied design name

Rename the copied design name in 2_Maxwell_Simplorer 2_Maxwell_Simplorer

paste Rename the copied design name in 2_Maxwell_Simplorer Go to the Maxwell menu item Maxwell 2D
paste Rename the copied design name in 2_Maxwell_Simplorer Go to the Maxwell menu item Maxwell 2D

Go to the Maxwell menu item Maxwell 2D > Design Settings Maxwell 2D > Design Settings

Go to the Advanced Product Coupling tab and enable transient-transient link with Advanced Product Coupling tab and enable transient-transient link with

Simplorer. That will let Maxwell know that everything linked to rotor position and

winding information are to be taken from Simplorer

position and winding information are to be taken from Simplorer Simplorer v10 User’s Guide M01 E.01-
Simplorer v10 M01 Co-simulation with Maxwell Maxwell in Simplorer Go to the winding definition under

Simplorer v10

M01

Co-simulation with Maxwell

Simplorer v10 M01 Co-simulation with Maxwell Maxwell in Simplorer Go to the winding definition under the

Maxwell in Simplorer

Go to the winding definition under the Excitation tab, double click on PhaseA , to open its definition Excitation tab, double click on PhaseA, to open its definition

For each winding, you need to enter that you want the current information to be read in Simplorer.tab, double click on PhaseA , to open its definition Select External in the ‘ Type

Select External in the ‘ Type ’ pull down menu in the ‘Type’ pull down menu

Make sure that the initial current is 0Select External in the ‘ Type ’ pull down menu Repeat the same operation for PhaseB

’ pull down menu Make sure that the initial current is 0 Repeat the same operation
’ pull down menu Make sure that the initial current is 0 Repeat the same operation

Repeat the same operation for PhaseB and PhaseC . PhaseB and PhaseC.

That’s all for the Maxwell part. all for the Maxwell part.

Save and close the Maxwell project.PhaseB and PhaseC . That’s all for the Maxwell part. Make sure to know where the

Make sure to know where the project is saved on the diskall for the Maxwell part. Save and close the Maxwell project. Simplorer v10 User’s Guide M01

Simplorer v10 M01 Co-simulation with Maxwell Simplorer Schematic Go to Simplorer Circuit > Subcircuit >

Simplorer v10

M01

Co-simulation with Maxwell

Simplorer v10 M01 Co-simulation with Maxwell Simplorer Schematic Go to Simplorer Circuit > Subcircuit > Maxwell

Simplorer Schematic

Go to Simplorer Circuit > Subcircuit > Maxwell Component > Add Transient Cosimulation Simplorer Circuit > Subcircuit > Maxwell Component > Add Transient Cosimulation

> Maxwell Component > Add Transient Cosimulation In the Transient-Transient coupling window, open the link

In the Transient-Transient coupling window, open the link File area, and select the Maxwell project> Maxwell Component > Add Transient Cosimulation Maxwell is opened and loads the project On the

Maxwell is opened and loads the projectopen the link File area, and select the Maxwell project On the Transient-Transient link Simplorer window,

On the Transient-Transient link Simplorer window, the project information are loadedselect the Maxwell project Maxwell is opened and loads the project Simplorer v10 User’s Guide M01

link Simplorer window, the project information are loaded Simplorer v10 User’s Guide M01 E.01- ‹#› -10
link Simplorer window, the project information are loaded Simplorer v10 User’s Guide M01 E.01- ‹#› -10
Simplorer v10 M01 Co-simulation with Maxwell Simplorer Schematic Select 2D for the Design type, and

Simplorer v10

M01

Co-simulation with Maxwell

Simplorer v10 M01 Co-simulation with Maxwell Simplorer Schematic Select 2D for the Design type, and choose

Simplorer Schematic

Select 2D for the Design type, and choose the design 2_Maxwell_Simplorer 2D for the Design type, and choose the design 2_Maxwell_Simplorer

In the Options tab, select Pin Description and click OK. Pin Description and click OK.

In the Options tab, select Pin Description and click OK. Place the Component on the schematic,
In the Options tab, select Pin Description and click OK. Place the Component on the schematic,

Place the Component on the schematic, nearby the phase resistancesIn the Options tab, select Pin Description and click OK. The component has 8 pins :

the Component on the schematic, nearby the phase resistances The component has 8 pins : 2

The component has 8 pins : 2 pins for each phase and 2 mechanical pins for the rotorPlace the Component on the schematic, nearby the phase resistances Simplorer v10 User’s Guide M01 E.01-

Simplorer v10 M01 Co-simulation with Maxwell Simplorer Schematic We need to increase the symbol size

Simplorer v10

M01

Co-simulation with Maxwell

Simplorer v10 M01 Co-simulation with Maxwell Simplorer Schematic We need to increase the symbol size of

Simplorer Schematic

We need to increase the symbol size of the added component. Right click on the added component and select Edit Symbol Edit Symbol

Right click on the added component and select Edit Symbol The Symbol Editor window pops up

The Symbol Editor window pops upRight click on the added component and select Edit Symbol Click on the motor image, and

Click on the motor image, and move the image away in order to have access to the symbol footprintcomponent and select Edit Symbol The Symbol Editor window pops up Simplorer v10 User’s Guide M01

move the image away in order to have access to the symbol footprint Simplorer v10 User’s
Simplorer v10 M01 Co-simulation with Maxwell Simplorer Schematic Enlarge the footprint to the desired size.

Simplorer v10

M01

Co-simulation with Maxwell

Simplorer v10 M01 Co-simulation with Maxwell Simplorer Schematic Enlarge the footprint to the desired size. The

Simplorer Schematic

Enlarge the footprint to the desired size.v10 M01 Co-simulation with Maxwell Simplorer Schematic The Pins should also be moved, as well as

The Pins should also be moved, as well as the pin description text zonesSchematic Enlarge the footprint to the desired size. The motor image needs to be resized and

also be moved, as well as the pin description text zones The motor image needs to

The motor image needs to be resized and re centeredshould also be moved, as well as the pin description text zones Simplorer v10 User’s Guide

text zones The motor image needs to be resized and re centered Simplorer v10 User’s Guide
Simplorer v10 M01 Co-simulation with Maxwell Simplorer Schematic Update the project, using the icon,just above

Simplorer v10

M01

Co-simulation with Maxwell

Simplorer v10 M01 Co-simulation with Maxwell Simplorer Schematic Update the project, using the icon,just above the

Simplorer Schematic

Update the project, using thev10 M01 Co-simulation with Maxwell Simplorer Schematic icon,just above the project name Once the project is

Maxwell Simplorer Schematic Update the project, using the icon,just above the project name Once the project

icon,just above the project name

the project, using the icon,just above the project name Once the project is updated, double click

Once the project is updated, double click on the schematic name, then wire the motor to the phase resistances. PhaseA_out , PhaseB_out and PhaseC_out pinsare linked together in this example PhaseA_out, PhaseB_out and PhaseC_out pinsare linked together in this example

and PhaseC_out pinsare linked together in this example Simplorer v10 User’s Guide M01 E.01- ‹#› -14
Simplorer v10 M01 Co-simulation with Maxwell Simplorer Schematic A constant speed is used. Go to

Simplorer v10

M01

Co-simulation with Maxwell

Simplorer v10 M01 Co-simulation with Maxwell Simplorer Schematic A constant speed is used. Go to the

Simplorer Schematic

A constant speed is used. Go to the Component tab, in the Basic Elements > Basic Elements >

Physical Domains > Mechanical > Displacement Force Representation >

Rotational_V

folder, choose the V_ROTB: Angular Velocity Source

folder, choose the V_ROTB: Angular Velocity Source Enter 4500 rpm and link this component to the
folder, choose the V_ROTB: Angular Velocity Source Enter 4500 rpm and link this component to the

Enter 4500 rpm and link this component to the MotionSetup1_out pin 4500 rpm and link this component to the MotionSetup1_out pin

Link the MotionSetup1 pin to the (mechanical) ground MotionSetup1 pin to the (mechanical) ground

pin Link the MotionSetup1 pin to the (mechanical) ground Note: Simplorer allows you to have much

Note: Simplorer allows you to have much more complicated mechanical systemspin Link the MotionSetup1 pin to the (mechanical) ground Simplorer v10 User’s Guide M01 E.01- ‹#›

Simplorer v10 M01 Co-simulation with Maxwell Simplorer Simulation Final circuit should look as below Set

Simplorer v10

M01

Co-simulation with Maxwell

Simplorer v10 M01 Co-simulation with Maxwell Simplorer Simulation Final circuit should look as below Set transient

Simplorer Simulation

Final circuit should look as belowv10 M01 Co-simulation with Maxwell Simplorer Simulation Set transient setup as shown in below image Simplorer

Simplorer Simulation Final circuit should look as below Set transient setup as shown in below image

Set transient setup as shown in below imageMaxwell Simplorer Simulation Final circuit should look as below Simplorer v10 User’s Guide M01 E.01- ‹#›

should look as below Set transient setup as shown in below image Simplorer v10 User’s Guide
Simplorer v10 M01 Co-simulation with Maxwell Simplorer Simulation Before simulating, the outputs data that will

Simplorer v10

M01

Co-simulation with Maxwell

Simplorer v10 M01 Co-simulation with Maxwell Simplorer Simulation Before simulating, the outputs data that will be

Simplorer Simulation

Before simulating, the outputs data that will be available in Simplorer need to be defined. Open the Output Dialogv10 M01 Co-simulation with Maxwell Simplorer Simulation By default, most of the common outps are saved

in Simplorer need to be defined. Open the Output Dialog By default, most of the common

By default, most of the common outps are saved by default. Browse to the FEA1 folder, then select the desired outps from Maxwell2D that you want to keep, then click on OKavailable in Simplorer need to be defined. Open the Output Dialog Simplorer v10 User’s Guide M01

outps from Maxwell2D that you want to keep, then click on OK Simplorer v10 User’s Guide
Simplorer v10 M01 Co-simulation with Maxwell Simulation Results Solve the analysis The Co-simulation starts. Both

Simplorer v10

M01

Co-simulation with Maxwell

Simplorer v10 M01 Co-simulation with Maxwell Simulation Results Solve the analysis The Co-simulation starts. Both

Simulation Results

Solve the analysisv10 M01 Co-simulation with Maxwell Simulation Results The Co-simulation starts. Both Simplorer and Maxwell are

The Co-simulation starts. Both Simplorer and Maxwell are running at the same time. The progress bar display both the Simplorer progress and the Maxwell progresswith Maxwell Simulation Results Solve the analysis It is also possible to look at the simulation

It is also possible to look at the simulation results in the Maxwell Desktopdisplay both the Simplorer progress and the Maxwell progress The example runs in about 5 min.

to look at the simulation results in the Maxwell Desktop The example runs in about 5

The example runs in about 5 min.to look at the simulation results in the Maxwell Desktop It is possible in Simplorer to

It is possible in Simplorer to display the Torque, the winding currentsresults in the Maxwell Desktop The example runs in about 5 min. Simplorer v10 User’s Guide

Simplorer v10 M01 Co-simulation with Maxwell Simulation Results End Simplorer v10 User’s Guide M01 E.01-

Simplorer v10

M01

Co-simulation with Maxwell

Simulation Results

Simplorer v10 M01 Co-simulation with Maxwell Simulation Results End Simplorer v10 User’s Guide M01 E.01- ‹#›
Simplorer v10 M01 Co-simulation with Maxwell Simulation Results End Simplorer v10 User’s Guide M01 E.01- ‹#›

End