E.01Co-simulationwithMaxwellSimplorerM01Exampleofco-simulationofSimplorerandMaxwell:Motor-DrivesimulationThegoalofthisLabistorealizetheinverterandthemotoriliiTiTilikcosimulation,usingaTransient-TransientlinkTheMotorisa3phaseSynchronousmachinewithpermanentmagnets.Theinverterisabasiconelevelinverter400.00500.00AnsoftCorporationBasic_Inverter1TorqueCurveInfoFEA1.TORQUETR0.002.505.007.5010.0012.5015.0017.5020.00Time[ms]-200.00-100.000.00100.00200.00300.00FEA1.TORQUE0.002.505.007.5010.0012.5015.0017.5020.00Time[ms]-125.00-100.00-75.00-50.00-25.000.0025.0050.0075.00100.00Y1[V]AnsoftCorporationBasic_Inverter1BackEMFCurveInfoFEA1.EIT1TRFEA1.EIT2TRFEA1.EIT3TRSINE2SINE1SINE3TRIANG10IGBT3D11IGBT1IGBT5D7D9+VVM1E1E2R37R43R48ωT1T2T3T4T5T6T7T8Simplorerv9User’sGuideE.01-1M01-1IGBT2D10D8IGBT4D12IGBT6ω+V_ROTB1E.01Co-simulationwithMaxwellSimplorerM01TechnicalBackgroundTheco-simulationisthemostaccuratewayofcouplingthedriveandthemotormodel.Theadvantageofthismethodisthehighaccuraty,havingtherealinvertercurrentsassourceinMaxwellandthebackemfofthemotorontheinvertercurrentsassourceinMaxwell,andtheback-emfofthemotorontheinverterside.Thetransient-transientlinkenablestheusetopassdatabetweenSimplorerandMaxwellduringthesimulation:Maxwell2DandMaxwell3DcanbeusedSimplorerandMaxwellwillrunaltogetherSimploreristheMaster,MaxwellistheslaveAtagiventimestep,theWindingcurrentsandtheRotoranglearepassedfromSimplorertoMaxwell,theBackEMFandtheTorquearepassedfromMaxwelltoSimplorerThecomplexityofthedrivesystemandofthemechanicalsystemisnotThecomplexityofthedrivesystemandofthemechanicalsystemisnotlimitedInsightsonthecouplingMethodTheSimplorertimestepsandtheMaxwelltimestepsdon’thavetobethesame.Usually,SimplorerrequiresmuchmoretimestepsthanMaxwell.Assumethecurrentsimulationtimeist0Simplorer,basedontheprevioustimesteps,givesaforwardmeetingtimet1toMaxwellwherebothsimulatorswillexchangedata.Betweent0andt1,bothcoderunbythemselves.Att1,bothcodesexchangedata.Ifduringthet0-t1period,someeventappearsonSimplorerside(stategraphtransition,largechangeoftheppp(gp,ggdynamicofthecircuit),Simplorerwillrollbacktot0andsetanewforwardmeetingtimet1’,t1’t1.Simplorerv9User’sGuideE.01-2M01-2E.01Co-simulationwithMaxwellSimplorerM01SimplorerSchematicThefirststepistobuildtheinvertercircuit.OpenSimplorer,thengotoFileNewSavetheproject:FileSaveasInverterSelecttheComponentstabfromtheProjectManagerWindowSelect,fromtheBasicElementsCircuitSemiconductorsSystemLevellibrarythediodemodelandtheIGBTmodel.Addtwovoltagesources(E1,E2),oneVoltmeter(VM1)and3resistances(RphaseA,RphaseB,RphaseC)asshownbelowD3D1D5R=10mOhmRphaseCRphaseBRphaseAE1+VVM1D3D1IGBT5IGBT1IGBT3VotagesourcesEMF=12VSimplorerv9User’sGuideE.01-3M01-3E2IGBT6D6IGBT4D2D4IGBT2E.01Co-simulationwithMaxwellSimplorerM01SimplorerSchematicWeuseacontrolsignalforeachigbt.IGBT1hastheigbt1controlsignal(youneedtounchecktheusePinbutton).NamethecontrolsignalsofIGBT2toIGBT6accordingly.FollowthenamingasbelowSimplorerv9User’sGuideE.01-4M01-4E.01Co-simulationwithMaxwellSimplorerM01SimplorerSchematicThereferencewaveformsareimplementedusingtimefunctions:picktheSineWaveintheBasicElementsToolsTimeFunctionslibrary.Put3SineWaveblocksontheschematic,withtheparametersasaboveAddaTriangularwavetimefunctionblockTheswitchingoftheIGBTsisdonethroughastategraphthatwillcomparethereferencewaveformsandthechoppersignalSimplorerv9User’sGuideE.01-5M01-5E.01Co-simulationwithMaxwellSimplorerM01SimplorerSchematicSimplorerSchematicIntheBasicElementsStateslibrary,pickuptwoSTATE_11,twoTRANSBuildthegraphbelowthenmaketwoadditionalcopiestohave3circuits,oneforeachphaseForthefirststategraph,wewillmonitorIGBT1andIGBT2Simplorerv9User’sGuideE.01-6M01-6E.01Co-simulationwithMaxwellSimplorerM01SimplorerSchematicFilltherestofthegraphs:thesecondstategraphmonitorsIGBT3andIGBT4andthirdstategraphmonitorsIGBT5andIGBT6.ThereferencewaveformsforthesecondandthirdstategrapharetheSIN2andSIN3blocksrespectively.gppyTheinverterlookslikethis:SINE2SINE1SINE3IGBT3D11IGBT1IGBT5D7D9TRIANG1IGBT3IGBT2D10D11D8IGBT1IGBT4IGBT5D7D12D9IGBT6+VVM1E1E2R37R43R48D12IGBT6Simplorerv9User’sGuideE.01-7M01-7E.01Co-simulationwithMaxwellSimplorerM01MawellProjectOpentheMaxwellprojectPM_SyncMotor.mxwlThisisa3phasesynchronousmotor.Theexcitationisdefinedwithcurrentsources.RuntheMaxwellsimulation:rightmouseclinonSetup1andselectAnalyseRuntheMaxwellsimulation:rightmouseclinonSetup1,andselectAnalyseThepostprocessingisthesameasSimplorer,TheWindingcurrentsandtheTorquedisplaysarealreadydefined400.00AnsoftLLC1_Maxwell_onlyTorqueCurveInfoavg1500.00AnsoftLLC1_Maxwell_onlyCurrentsCurveInfo-200.00-100.000.00100.00200.00300.00Moving1.Torque[NewtonMeter]CurveInfoavgMoving1.TorqueSetup1:Transient43.3227-500.000.00500.001000.00Y1[A]CurveInfoInputCurrent(PhaseA)Setup1:TransientInputCurrent(PhaseB)Setup1:TransientInputCurrent(PhaseC)Setup1:TransientTheMaxwellexcitationisbasicanddoesnotrepresentreallifesystem0.005.0010.0015.0020.0025.0030.00Time[ms]-400.00-300.00M0.005.0010.0015.0020.0025.0030.00Time[ms]-1500.00-1000.00Simplorerv9User’sGuideE.01