-
Notifications
You must be signed in to change notification settings - Fork 164
/
ReferenceSource.mo
37 lines (35 loc) · 1.64 KB
/
ReferenceSource.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
within Modelica.Electrical.QuasiStatic.Polyphase.Interfaces;
partial model ReferenceSource
"Partial of voltage or current source with reference input"
extends QuasiStatic.Polyphase.Interfaces.OnePort;
import Modelica.Constants.pi;
equation
Connections.root(plug_p.reference);
annotation (Icon(graphics={Ellipse(
extent={{-50,50},{50,-50}},
lineColor={85,170,255},
fillColor={255,255,255},
fillPattern=FillPattern.Solid),
Line(points={{-90,0},{-50,0}}, color={85,170,255}),
Line(points={{50,0},{90,0}}, color={85,170,255}),
Text(
extent={{160,-100},{-160,-60}},
textString="m=%m"),
Text(
extent={{-150,60},{150,100}},
textString="%name",
textColor={0,0,255})}), Documentation(info="<html>
<p>
The source partial model relies on the
<a href=\"modelica://Modelica.Electrical.QuasiStatic.Polyphase.Interfaces.TwoPlug\">TwoPlug</a> and contains a proper icon.
</p>
<h4>See also</h4>
<p>
<a href=\"modelica://Modelica.Electrical.QuasiStatic.Polyphase.Sources.VoltageSource\">VoltageSource</a>,
<a href=\"modelica://Modelica.Electrical.QuasiStatic.Polyphase.Sources.VariableVoltageSource\">VariableVoltageSource</a>,
<a href=\"modelica://Modelica.Electrical.QuasiStatic.Polyphase.Sources.CurrentSource\">CurrentSource</a>,
<a href=\"modelica://Modelica.Electrical.QuasiStatic.Polyphase.Sources.VariableCurrentSource\">VariableCurrentSource</a>,
<a href=\"modelica://Modelica.Electrical.QuasiStatic.SinglePhase.Interfaces.Source\">SinglePhase.Interfaces.Source</a>.
</p>
</html>"));
end ReferenceSource;