-
Notifications
You must be signed in to change notification settings - Fork 164
/
VariableInductor.mo
70 lines (69 loc) · 3.61 KB
/
VariableInductor.mo
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
within Modelica.Electrical.QuasiStatic.Polyphase.Basic;
model VariableInductor "Polyphase variable inductor"
extends Interfaces.TwoPlug;
Modelica.Blocks.Interfaces.RealInput L[m](each unit="H")
"Variable inductance" annotation (Placement(transformation(
origin={0,120},
extent={{-20,-20},{20,20}},
rotation=270), iconTransformation(
extent={{-20,-20},{20,20}},
rotation=270,
origin={0,120})));
QuasiStatic.SinglePhase.Basic.VariableInductor variableInductor[m]
annotation (Placement(transformation(extent={{-10,-10},{10,10}})));
equation
connect(variableInductor.pin_p, plugToPins_p.pin_p) annotation (Line(
points={{-10,0},{-24.5,0},{-24.5,0},{-39,0},{-39,0},{-68,0}}, color={85,170,255}));
connect(variableInductor.pin_n, plugToPins_n.pin_n) annotation (Line(
points={{10,0},{39,0},{39,0},{68,0}}, color={85,170,255}));
connect(variableInductor.L, L) annotation (Line(points={{0,12},{0,12},{0,120}}, color={0,0,127}));
annotation (defaultComponentName="inductor",
Icon(graphics={Line(points={{60,0},{90,0}},
color={85,170,255}),Line(points={{-90,0},{-60,0}}, color={85,170,255}),
Line(
points={{-60,0},{-59,6},{-52,14},{-38,14},{-31,6},{-30,0}},
color={85,170,255},
smooth=Smooth.Bezier),
Line(
points={{-30,0},{-29,6},{-22,14},{-8,14},{-1,6},{0,0}},
color={85,170,255},
smooth=Smooth.Bezier),
Line(
points={{0,0},{1,6},{8,14},{22,14},{29,6},{30,0}},
color={85,170,255},
smooth=Smooth.Bezier),
Line(
points={{30,0},{31,6},{38,14},{52,14},{59,6},{60,0}},
color={85,170,255},
smooth=Smooth.Bezier),
Text(
extent={{-150,90},{150,50}},
textString="%name",
textColor={0,0,255}),
Text(
extent={{150,-80},{-150,-40}},
textString="m=%m")}),
Documentation(info="<html>
<p>
The linear inductors connect the complex voltages <code><u>v</u></code> with the complex
currents <code><u>i</u></code> by <code><u>i</u>*j*ω*L = <u>v</u></code>,
using <code>m</code> <a href=\"modelica://Modelica.Electrical.QuasiStatic.SinglePhase.Basic.VariableInductor\">single-phase variable Inductors</a>.
The inductances <code>L</code> are given as <code>m</code> input signals.
</p>
<h4>See also</h4>
<p>
<a href=\"modelica://Modelica.Electrical.QuasiStatic.SinglePhase.Basic.Inductor\">Inductor</a>,
<a href=\"modelica://Modelica.Electrical.QuasiStatic.Polyphase.Basic.Resistor\">Resistor</a>,
<a href=\"modelica://Modelica.Electrical.QuasiStatic.Polyphase.Basic.Conductor\">Conductor</a>,
<a href=\"modelica://Modelica.Electrical.QuasiStatic.Polyphase.Basic.Capacitor\">Capacitor</a>,
<a href=\"modelica://Modelica.Electrical.QuasiStatic.Polyphase.Basic.Inductor\">Inductor</a>,
<a href=\"modelica://Modelica.Electrical.QuasiStatic.Polyphase.Basic.Impedance\">Impedance</a>,
<a href=\"modelica://Modelica.Electrical.QuasiStatic.Polyphase.Basic.Admittance\">Admittance</a>,
<a href=\"modelica://Modelica.Electrical.QuasiStatic.Polyphase.Basic.VariableResistor\">Variable resistor</a>,
<a href=\"modelica://Modelica.Electrical.QuasiStatic.Polyphase.Basic.VariableConductor\">Variable conductor</a>,
<a href=\"modelica://Modelica.Electrical.QuasiStatic.Polyphase.Basic.VariableCapacitor\">Variable capacitor</a>
<a href=\"modelica://Modelica.Electrical.QuasiStatic.Polyphase.Basic.VariableImpedance\">Variable impedance</a>,
<a href=\"modelica://Modelica.Electrical.QuasiStatic.Polyphase.Basic.VariableAdmittance\">Variable admittance</a>
</p>
</html>"));
end VariableInductor;