[Scilab-users] Problem with Xcos Modelica Inductor

Romain Desbats romain.desbats at ifsttar.fr
Fri Mar 21 14:32:14 CET 2014


Hi everyone, 

I found something surprising using the Inductor block in Xcos. 

I simulate an electrical diagram with only an inductor and I impose voltage or current. The problem is that if I impose the current, I get a voltage in the inductor equal to zero, whatever the value of the inductor. If I impose the voltage, I get a current in the inductor varying with L which is what I expect. 

Could anyone give me his opinion or tell me if I am doing something wrong? I attached my script that simulates the two cases and plots results. 

Thanks a lot, 


Romain 
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.scilab.org/pipermail/users/attachments/20140321/2abbd8a4/attachment.htm>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: test.sce
Type: text/x-csrc
Size: 2727 bytes
Desc: not available
URL: <https://lists.scilab.org/pipermail/users/attachments/20140321/2abbd8a4/attachment.bin>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: input.csv
Type: text/csv
Size: 30445 bytes
Desc: not available
URL: <https://lists.scilab.org/pipermail/users/attachments/20140321/2abbd8a4/attachment.csv>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: model_imposed_current.xcos
Type: application/xml
Size: 81721 bytes
Desc: not available
URL: <https://lists.scilab.org/pipermail/users/attachments/20140321/2abbd8a4/attachment.wsdl>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: model_imposed_voltage.xcos
Type: application/xml
Size: 80870 bytes
Desc: not available
URL: <https://lists.scilab.org/pipermail/users/attachments/20140321/2abbd8a4/attachment-0001.wsdl>


More information about the users mailing list