-
Notifications
You must be signed in to change notification settings - Fork 164
/
PotentialSensor.mo
34 lines (30 loc) · 1.52 KB
/
PotentialSensor.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
within Modelica.Electrical.QuasiStatic.SinglePhase.Sensors;
model PotentialSensor "Potential sensor"
extends Interfaces.AbsoluteSensor;
Modelica.ComplexBlocks.Interfaces.ComplexOutput v "Complex potential"
annotation (Placement(transformation(extent={{100,-10},{120,10}})));
Modelica.SIunits.Voltage abs_y=Modelica.ComplexMath.abs(v) "Magnitude of complex potential";
Modelica.SIunits.Angle arg_y=Modelica.ComplexMath.arg(v) "Argument of complex potential";
equation
v = pin.v;
annotation (Documentation(info="<html>
<p>
This sensor can be used to measure the complex potential.
</p>
<h4>See also</h4>
<p>
<a href=\"modelica://Modelica.Electrical.QuasiStatic.SinglePhase.Sensors.ReferenceSensor\">ReferenceSensor</a>,
<a href=\"modelica://Modelica.Electrical.QuasiStatic.SinglePhase.Sensors.FrequencySensor\">FrequencySensor</a>,
<a href=\"modelica://Modelica.Electrical.QuasiStatic.SinglePhase.Sensors.VoltageSensor\">VoltageSensor</a>,
<a href=\"modelica://Modelica.Electrical.QuasiStatic.SinglePhase.Sensors.CurrentSensor\">CurrentSensor</a>,
<a href=\"modelica://Modelica.Electrical.QuasiStatic.SinglePhase.Sensors.PowerSensor\">PowerSensor</a>,
<a href=\"modelica://Modelica.Electrical.QuasiStatic.SinglePhase.Sensors.MultiSensor\">MultiSensor</a>,
<a href=\"modelica://Modelica.Electrical.QuasiStatic.SinglePhase.Sensors.MultiSensor\">MultiSensor</a>
</p>
</html>"),
Icon(graphics={
Text(
extent={{-30,-10},{30,-70}},
textColor={64,64,64},
textString="V")}));
end PotentialSensor;