forked from modelica/ModelicaStandardLibrary
-
Notifications
You must be signed in to change notification settings - Fork 0
/
FrequencySensor.mo
35 lines (31 loc) · 1.55 KB
/
FrequencySensor.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
within Modelica.Electrical.QuasiStatic.SinglePhase.Sensors;
model FrequencySensor "Frequency sensor"
extends Interfaces.AbsoluteSensor;
import Modelica.Constants.pi;
Modelica.Blocks.Interfaces.RealOutput f(unit="Hz") "Frequency"
annotation (Placement(transformation(extent={{100,-10},{120,10}})));
equation
2*pi*f = omega;
annotation (Documentation(info="<html>
<p>
This sensor can be used to measure the frequency of the reference system.
</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.PotentialSensor\">PotentialSensor</a>,
<a href=\"modelica://Modelica.Electrical.QuasiStatic.SinglePhase.Sensors.VoltageSensor\">VoltageSensor</a>,
<a href=\"modelica://Modelica.Electrical.QuasiStatic.SinglePhase.Sensors.VoltageRMSSensor\">VoltageRMSSensor</a>,
<a href=\"modelica://Modelica.Electrical.QuasiStatic.SinglePhase.Sensors.CurrentSensor\">CurrentSensor</a>,
<a href=\"modelica://Modelica.Electrical.QuasiStatic.SinglePhase.Sensors.CurrentRMSSensor\">CurrentRMSSensor</a>,
<a href=\"modelica://Modelica.Electrical.QuasiStatic.SinglePhase.Sensors.PowerSensor\">PowerSensor</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="Hz"),
Line(points={{100,0},{70,0}}, color={0,0,127})}));
end FrequencySensor;