Jump to content
Sign in to follow this  
Leow Cheah Wei

simulating a buck converter with a dc motor load

Recommended Posts

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

i try use the dc motor model but fail. 

 

image.thumb.png.d0b56e65e1aa41d495489e86b5363810.png

 

here is the error message

image.thumb.png.d9143db5d93e1281bd6e85b2fa48d8ec.png

 

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

image.thumb.png.74c753a08c186e4000942dcb35753954.png

Share this post


Link to post
Share on other sites

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

image.thumb.png.4a3f8988d0b4856a47b2b2e21f433de8.png

Share this post


Link to post
Share on other sites
Sign in to follow this  

×
×
  • Create New...