[Scilab-users] Scicos-OpenModelica
Ilaria La Rocca
ilarialr at tiscali.it
Mon Apr 10 12:14:47 CEST 2017
Hi,
I have a modelica model of a simple RL circuit. This is the
code:
model circuitoscicos
Modelica.Electrical.Analog.Basic.Ground
ground1 annotation(
Placement(visible = true, transformation(origin =
{-28, -38}, extent = {{-10, -10}, {10, 10}}, rotation = 0)));
Modelica.Electrical.Analog.Basic.Inductor inductor1(L = 0.1) annotation(
Placement(visible = true, transformation(origin = {8, 32}, extent =
{{-10, -10}, {10, 10}}, rotation = 0)));
Modelica.Electrical.Analog.Basic.Resistor resistor1(R = 1) annotation(
Placement(visible = true, transformation(origin = {-30, 32}, extent =
{{-10, -10}, {10, 10}}, rotation = 0)));
Modelica.Electrical.Analog.Sources.ConstantVoltage constantVoltage1(V =
220) annotation(
Placement(visible = true, transformation(origin =
{-58, 2}, extent = {{-10, -10}, {10, 10}}, rotation = -90)));
equation
connect(ground1.p, constantVoltage1.n) annotation(
Line(points =
{{-28, -28}, {-58, -28}, {-58, -8}, {-58, -8}}, color = {0, 0, 255}));
connect(inductor1.n, ground1.p) annotation(
Line(points = {{18, 32},
{20, 32}, {20, -28}, {-28, -28}, {-28, -28}}, color = {0, 0, 255}));
connect(resistor1.n, inductor1.p) annotation(
Line(points = {{-20,
32}, {-2, 32}, {-2, 32}, {-2, 32}}, color = {0, 0, 255}));
connect(constantVoltage1.p, resistor1.p) annotation(
Line(points =
{{-58, 12}, {-58, 32}, {-40, 32}}, color = {0, 0, 255}));
annotation(
uses(Modelica(version = "3.2.2")));
end circuitoscicos;
I would
like to know if it's possible to use this kind of code in Scicos using
Modelica generic block.
Thanks in advance.
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! http://casa.tiscali.it/mobile/
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.scilab.org/pipermail/users/attachments/20170410/94deef99/attachment.htm>
More information about the users
mailing list