Scicos-OpenModelica

classic Classic list List threaded Threaded
1 message Options
ila ila
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

Scicos-OpenModelica

This post has NOT been accepted by the mailing list yet.
Hi everyone,

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.
Loading...