1 | within ;
|
---|
2 | model meshOnly
|
---|
3 |
|
---|
4 | Modelica.Electrical.QuasiStationary.SinglePhase.Sources.VoltageSource U(
|
---|
5 | V=10,
|
---|
6 | f=50,
|
---|
7 | phi=0.34906585039887) annotation (Placement(transformation(
|
---|
8 | extent={{-10,-10},{10,10}},
|
---|
9 | rotation=-90,
|
---|
10 | origin={-80,18})));
|
---|
11 | Modelica.Electrical.QuasiStationary.SinglePhase.Basic.Resistor resistor(R_ref
|
---|
12 | =1) annotation (Placement(transformation(
|
---|
13 | extent={{-10,-10},{10,10}},
|
---|
14 | rotation=0,
|
---|
15 | origin={-14,40})));
|
---|
16 | Modelica.Electrical.QuasiStationary.SinglePhase.Basic.Ground ground
|
---|
17 | annotation (Placement(transformation(extent={{-90,-42},{-70,-22}})));
|
---|
18 | Modelica.Electrical.QuasiStationary.SinglePhase.Sources.VoltageSource U1(
|
---|
19 | f=50,
|
---|
20 | V=10,
|
---|
21 | phi=0) annotation (Placement(transformation(
|
---|
22 | extent={{-10,-10},{10,10}},
|
---|
23 | rotation=-90,
|
---|
24 | origin={40,10})));
|
---|
25 | Modelica.Electrical.QuasiStationary.SinglePhase.Sensors.PowerSensor S
|
---|
26 | annotation (Placement(transformation(extent={{8,30},{28,50}})));
|
---|
27 | Modelica.Electrical.QuasiStationary.SinglePhase.Basic.Inductor inductor(L=
|
---|
28 | 0.01) annotation (Placement(visible=true, transformation(
|
---|
29 | origin={-47.5652,40.4348},
|
---|
30 | extent={{-10,-10},{10,10}},
|
---|
31 | rotation=0)));
|
---|
32 | equation
|
---|
33 | connect(inductor.pin_p, U.pin_p) annotation (Line(points={{-57.5652,40.4348},
|
---|
34 | {-80,40.4348},{-80,28}},color={85,170,255}));
|
---|
35 | connect(inductor.pin_n, resistor.pin_p) annotation (Line(points={{-37.5652,
|
---|
36 | 40.4348},{-24,40}}, color={85,170,255}));
|
---|
37 | connect(U.pin_n, ground.pin) annotation (Line(
|
---|
38 | points={{-80,8},{-80,-22}},
|
---|
39 | color={85,170,255},
|
---|
40 | smooth=Smooth.None));
|
---|
41 | connect(U1.pin_n, ground.pin) annotation (Line(
|
---|
42 | points={{40,0},{40,-8},{-80,-8},{-80,-22}},
|
---|
43 | color={85,170,255},
|
---|
44 | smooth=Smooth.None));
|
---|
45 | connect(S.currentP, resistor.pin_n) annotation (Line(
|
---|
46 | points={{8,40},{-4,40}},
|
---|
47 | color={85,170,255},
|
---|
48 | smooth=Smooth.None));
|
---|
49 | connect(S.currentN, U1.pin_p) annotation (Line(
|
---|
50 | points={{28,40},{40,40},{40,20}},
|
---|
51 | color={85,170,255},
|
---|
52 | smooth=Smooth.None));
|
---|
53 | connect(S.voltageP, S.currentP) annotation (Line(
|
---|
54 | points={{18,50},{8,50},{8,40}},
|
---|
55 | color={85,170,255},
|
---|
56 | smooth=Smooth.None));
|
---|
57 | connect(S.voltageN, ground.pin) annotation (Line(
|
---|
58 | points={{18,30},{18,-8},{-80,-8},{-80,-22}},
|
---|
59 | color={85,170,255},
|
---|
60 | smooth=Smooth.None));
|
---|
61 | annotation (Diagram(coordinateSystem(preserveAspectRatio=false, extent={{-100,
|
---|
62 | -100},{100,100}}), graphics), uses(Modelica(version="3.2")));
|
---|
63 | end meshOnly;
|
---|