simulating a buck converter with a dc motor load

Leow Cheah Wei_21725
Leow Cheah Wei_21725 New Altair Community Member
edited October 2020 in Community Q&A

i want to simulate a simple buck converter connected to a simple load 

i try use the dc motor model but fail. 

 

<?xml version="1.0" encoding="UTF-8"?>image.thumb.png.d0b56e65e1aa41d495489e86b5363810.png

 

here is the error message

<?xml version="1.0" encoding="UTF-8"?>image.thumb.png.d9143db5d93e1281bd6e85b2fa48d8ec.png

 

here is my settings. is it i have to set all the parameters?

<?xml version="1.0" encoding="UTF-8"?>image.thumb.png.74c753a08c186e4000942dcb35753954.png

Answers

  • Philippe.LeMarrec
    Philippe.LeMarrec
    Altair Employee
    edited February 2020

    Hi Leow,

    I did not reach with the exact motor you have (but probably because I am not familar with motors). But I made a simple testcase to explain how you can pass the current from the spice side to the modelica one.

    On the red circle on the picture below, you will see that I put a current sensor (coming from the HyperSpice palett). This sensor is used to extract and convert an Spice current into a Signal (Activate signal). Then you can put a currentSignal source from the modelica palett (Modelica/Electrical/Analog/sources), to transform the Activate signal into a Modelica current. After that operation,  you can add your modelica circuit as you need.

    Here on the picture below I just put a simple resistor to show you the way to make it works. You can see that the voltage on the modelica resistor is the same than the voltage on the resistor from the HyperSpice side and the simulation is fine.

    You can use similar method for your motor.

    Regards,

    Philippe

    <?xml version="1.0" encoding="UTF-8"?>image.thumb.png.4a3f8988d0b4856a47b2b2e21f433de8.png