Ticket #2996: test.mo

File test.mo, 3.4 KB (added by massimo ceraolo, 10 years ago)
Line 
1model test
2 Modelica.Electrical.Analog.Basic.Resistor Load(R = 10) annotation(Placement(visible = true, transformation(origin = {58, -22}, extent = {{-10, -10}, {10, 10}}, rotation = 270)));
3 Modelica.Electrical.Analog.Basic.Inductor Lf2(L = 0.001) annotation(Placement(visible = true, transformation(origin = {-28, -48}, extent = {{-10, -10}, {10, 10}}, rotation = 0)));
4 Modelica.Electrical.Analog.Basic.Capacitor dcCap(C = 0.005, v(start = 100, fixed = true)) annotation(Placement(visible = true, transformation(origin = {-6, 0}, extent = {{-10, -10}, {10, 10}}, rotation = -90)));
5 Modelica.Electrical.Analog.Basic.Inductor Lf1(L = 0.001) annotation(Placement(visible = true, transformation(origin = {-28, 48}, extent = {{-10, -10}, {10, 10}}, rotation = 0)));
6 Modelica.Electrical.Analog.Basic.Resistor rUp(R = 1) annotation(Placement(visible = true, transformation(origin = {16, 30}, extent = {{-10, -10}, {10, 10}}, rotation = 270)));
7 Modelica.Electrical.Analog.Basic.Resistor rDn(R = 2) annotation(Placement(visible = true, transformation(origin = {16, -38}, extent = {{-10, -10}, {10, 10}}, rotation = 270)));
8 Modelica.Electrical.Analog.Basic.Ground ground1 annotation(Placement(visible = true, transformation(origin = {58, -46}, extent = {{-10, -10}, {10, 10}}, rotation = 0)));
9 Modelica.Electrical.Analog.Sources.ConstantVoltage V1(V = 50) annotation(Placement(visible = true, transformation(origin = {-54, 16}, extent = {{-10, -10}, {10, 10}}, rotation = 270)));
10 Modelica.Electrical.Analog.Basic.Inductor Lf(L = 0.001) annotation(Placement(visible = true, transformation(origin = {38, -4}, extent = {{-10, -10}, {10, 10}}, rotation = 0)));
11 Modelica.Electrical.Analog.Basic.Ground ground annotation(Placement(visible = true, transformation(origin = {-68, -14}, extent = {{-10, -10}, {10, 10}}, rotation = 0)));
12 Modelica.Electrical.Analog.Sources.ConstantVoltage V2(V = 50) annotation(Placement(visible = true, transformation(origin = {-54, -28}, extent = {{-10, -10}, {10, 10}}, rotation = 270)));
13equation
14 connect(dcCap.p, Lf1.n) annotation(Line(points = {{-6, 10}, {-6, 48}, {-18, 48}, {-18, 48}, {-18, 48}}, color = {0, 0, 255}));
15 connect(ground.p, V2.p) annotation(Line(points = {{-68, -4}, {-54, -4}, {-54, -18}}, color = {0, 0, 255}));
16 connect(V1.n, V2.p) annotation(Line(points = {{-54, 6}, {-54, -18}}, color = {0, 0, 255}));
17 connect(Lf2.p, V2.n) annotation(Line(points = {{-38, -48}, {-54, -48}, {-54, -40}, {-54, -40}, {-54, -40}}, color = {0, 0, 255}));
18 connect(Lf.p, rUp.n) annotation(Line(points = {{28, -4}, {16, -4}, {16, 30}, {16, 20}}, color = {0, 0, 255}));
19 connect(Load.p, Lf.n) annotation(Line(points = {{58, -12}, {58, -4}, {48, -4}}, color = {0, 0, 255}));
20 connect(Lf1.p, V1.p) annotation(Line(points = {{-38, 48}, {-54, 48}, {-54, 24}, {-54, 24}}, color = {0, 0, 255}));
21 connect(ground1.p, Load.n) annotation(Line(points = {{58, -36}, {58, -36}, {58, -32}, {58, -32}, {58, -32}}, color = {0, 0, 255}));
22 connect(rDn.n, Lf2.n) annotation(Line(points = {{16, -48}, {16, -48}, {-18, -48}, {-18, -48}}, color = {0, 0, 255}));
23 connect(rUp.n, rDn.p) annotation(Line(points = {{16, 20}, {16, -28}, {16, -28}, {16, -28}}, color = {0, 0, 255}));
24 connect(Lf1.n, rUp.p) annotation(Line(points = {{-18, 48}, {16, 48}, {16, 38}, {16, 38}, {16, 38}}, color = {0, 0, 255}));
25 connect(dcCap.n, Lf2.n) annotation(Line(points = {{-6, -10}, {-6, -48}, {-18, -48}, {-18, -48}}, color = {0, 0, 255}));
26end test;