<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN">
<html><body>
<span>Hi, </span><br /><br /><span>I have a modelica model of a simple RL circuit. This is the code: </span><br /><br /><span>model circuitoscicos </span><br /><span> Modelica.Electrical.Analog.Basic.Ground ground1 annotation( </span><br /><span> Placement(visible = true, transformation(origin = {-28, -38}, extent = {{-10, -10}, {10, 10}}, rotation = 0))); </span><br /><span> Modelica.Electrical.Analog.Basic.Inductor inductor1(L = 0.1) annotation( </span><br /><span> Placement(visible = true, transformation(origin = {8, 32}, extent = {{-10, -10}, {10, 10}}, rotation = 0))); </span><br /><span> Modelica.Electrical.Analog.Basic.Resistor resistor1(R = 1) annotation( </span><br /><span> Placement(visible = true, transformation(origin = {-30, 32}, extent = {{-10, -10}, {10, 10}}, rotation = 0))); </span><br /><span> Modelica.Electrical.Analog.Sources.ConstantVoltage constantVoltage1(V = 220) annotation( </span><br /><span> Placement(visible = true, transformation(origin = {-58, 2}, extent = {{-10, -10}, {10, 10}}, rotation = -90))); </span><br /><span>equation </span><br /><span> connect(ground1.p, constantVoltage1.n) annotation( </span><br /><span> Line(points = {{-28, -28}, {-58, -28}, {-58, -8}, {-58, -8}}, color = {0, 0, 255})); </span><br /><span> connect(inductor1.n, ground1.p) annotation( </span><br /><span> Line(points = {{18, 32}, {20, 32}, {20, -28}, {-28, -28}, {-28, -28}}, color = {0, 0, 255})); </span><br /><span> connect(resistor1.n, inductor1.p) annotation( </span><br /><span> Line(points = {{-20, 32}, {-2, 32}, {-2, 32}, {-2, 32}}, color = {0, 0, 255})); </span><br /><span> connect(constantVoltage1.p, resistor1.p) annotation( </span><br /><span> Line(points = {{-58, 12}, {-58, 32}, {-40, 32}}, color = {0, 0, 255})); </span><br /><span> annotation( </span><br /><span> uses(Modelica(version = "3.2.2"))); </span><br /><span>end circuitoscicos; </span><br /><br /><span>I would like to know if it's possible to use this kind of code in Scicos using Modelica generic block. </span><br /><br /><span>Thanks in advance.</span>
</body></html>
<br><br/><br/>Con Open 4 Giga a 9 euro/4 sett navighi veloce, chiami e invii SMS dal tuo smartphone verso tutti i fissi e mobili in Italia. Passa a Tiscali Mobile! <a href='http://casa.tiscali.it/mobile/' target='_blank'>http://casa.tiscali.it/mobile/</a><br/><br/>