Modelica.Electrical.Machines.Sensors

Sensors for machine modelling

Information

This package contains sensors that are useful when modelling machines.

Extends from Modelica.Icons.SensorsPackage (Icon for packages containing sensors).

Package Content

Name Description
Modelica.Electrical.Machines.Sensors.VoltageQuasiRMSSensor VoltageQuasiRMSSensor Length of space phasor -> RMS voltage
Modelica.Electrical.Machines.Sensors.CurrentQuasiRMSSensor CurrentQuasiRMSSensor Length of space phasor -> RMS current
Modelica.Electrical.Machines.Sensors.ElectricalPowerSensor ElectricalPowerSensor Instantaneous power from space phasors
Modelica.Electrical.Machines.Sensors.MechanicalPowerSensor MechanicalPowerSensor Mechanical power = torque x speed
Modelica.Electrical.Machines.Sensors.RotorDisplacementAngle RotorDisplacementAngle Rotor lagging angle
Modelica.Electrical.Machines.Sensors.HallSensor HallSensor Hall sensor
Modelica.Electrical.Machines.Sensors.SinCosResolver SinCosResolver Sin-Cos-Resolver

Modelica.Electrical.Machines.Sensors.VoltageQuasiRMSSensor Modelica.Electrical.Machines.Sensors.VoltageQuasiRMSSensor

Length of space phasor -> RMS voltage

Information

Measured three-phase instantaneous voltages are transformed to the corresponding space phasor; output is length of the space phasor divided by sqrt(2), thus giving in sinusoidal stationary state RMS voltage.

Extends from Modelica.Icons.RoundSensor (Icon representing a round measurement device).

Connectors

NameDescription
V[V]
plug_p 
plug_n 

Modelica.Electrical.Machines.Sensors.CurrentQuasiRMSSensor Modelica.Electrical.Machines.Sensors.CurrentQuasiRMSSensor

Length of space phasor -> RMS current

Information

Measured three-phase instantaneous currents are transformed to the corresponding space phasor; output is length of the space phasor divided by sqrt(2), thus giving in sinusoidal stationary state RMS current.

Extends from Modelica.Icons.RoundSensor (Icon representing a round measurement device).

Connectors

NameDescription
I[A]
plug_p 
plug_n 

Modelica.Electrical.Machines.Sensors.ElectricalPowerSensor Modelica.Electrical.Machines.Sensors.ElectricalPowerSensor

Instantaneous power from space phasors

Information

Three-phase instantaneous voltages (plug_p - plug_nv) and currents (plug_p - plug_ni) are transformed to the corresponding space phasors,
which are used to calculate power quantities:

Extends from Modelica.Icons.RoundSensor (Icon representing a round measurement device).

Connectors

NameDescription
P[W]
Q[var]
plug_p 
plug_ni 
plug_nv 

Modelica.Electrical.Machines.Sensors.MechanicalPowerSensor Modelica.Electrical.Machines.Sensors.MechanicalPowerSensor

Mechanical power = torque x speed

Information

Calculates (mechanical) power from torque times angular speed.

Extends from Modelica.Icons.RoundSensor (Icon representing a round measurement device), Modelica.Mechanics.Rotational.Interfaces.PartialTwoFlanges (Partial model for a component with two rotational 1-dim. shaft flanges).

Parameters

NameDescription
useSupportUse support or fixed housing

Connectors

NameDescription
flange_aFlange of left shaft
flange_bFlange of right shaft
P[W]
supportSupport at which the reaction torque is acting

Modelica.Electrical.Machines.Sensors.RotorDisplacementAngle Modelica.Electrical.Machines.Sensors.RotorDisplacementAngle

Rotor lagging angle

Information

Calculates rotor lagging angle by measuring the stator phase voltages, transforming them to the corresponding space phasor in stator-fixed coordinate system,
rotating the space phasor to the rotor-fixed coordinate system and calculating the angle of this space phasor.

The sensor's housing can be implicitly fixed (useSupport=false).
If the machine's stator also implicitly fixed (useSupport=false), the angle at the flange is equal to the angle of the machine's rotor against the stator.
Otherwise, the sensor's support has to be connected to the machine's support.

Parameters

NameDescription
mNumber of phases
pNumber of pole pairs
positiveRangeUse only positive output range, if true
thresholdBelow threshold the voltage is considered as zero
useSupportUse support or fixed housing

Connectors

NameDescription
rotorDisplacementAngle[rad]
plug_p 
plug_n 
flange 
supportSupport at which the reaction torque is acting

Modelica.Electrical.Machines.Sensors.HallSensor Modelica.Electrical.Machines.Sensors.HallSensor

Hall sensor

Information

Simple model of a hall sensor, i.e. measuring the angle of the flange (w.r.t. the optional support), multiplying by the number of phases p to obtain the electrical angle, and adding a correction term i.e. the initial angle of the flange phi0.

Note that phi0 has to be set that way, that in shaft position phi0 the flux linkage of phase 1 is a maximum.

Extends from Modelica.Mechanics.Rotational.Interfaces.PartialElementaryOneFlangeAndSupport2 (Partial model for a component with one rotational 1-dim. shaft flange and a support used for textual modeling, i.e., for elementary models).

Parameters

NameDescription
useSupport= true, if support flange enabled, otherwise implicitly grounded
pNumber of pole pairs
phi0Initial mechanical angle [rad]

Connectors

NameDescription
flangeFlange of shaft
supportSupport/housing of component
y"Electrical angle" [rad]

Modelica.Electrical.Machines.Sensors.SinCosResolver Modelica.Electrical.Machines.Sensors.SinCosResolver

Sin-Cos-Resolver

Information

Simple model of a sin-cos-resolver, i.e. sensing the angle of the flange phi (w.r.t. the optional support) and multiplied by p, providing 4 signals:

Thus the sine and cosine signals have p periods per mechanical revolution. Adding an offset > amplitude, the loss of one track can be determined. Subtracting the negated signal from the signal, the offset is removed and a cosine and a sine with doubled amplitude are accessible. From this signal, the angle within one pole pair of a machine can be determined for field oriented control. Block SinCosEvaluation can be used.

This model can be used to export FMUs of drives to develop control strategies in other environments. When switching to a real drive, the same inputs as from the FMU can be used.

Note that phi0 has to be set that way, that in shaft position phi0 the flux linkage of phase 1 is a maximum. In order to sense the mechanical angle of the shaft p = 1 has to be set.

Extends from Modelica.Mechanics.Rotational.Interfaces.PartialElementaryOneFlangeAndSupport2 (Partial model for a component with one rotational 1-dim. shaft flange and a support used for textual modeling, i.e., for elementary models).

Parameters

NameDescription
useSupport= true, if support flange enabled, otherwise implicitly grounded
pNumber of pole pairs
amplitudeAmplitude of signals
offsetOffset of signals
phi0Initial mechanical angle [rad]

Connectors

NameDescription
flangeFlange of shaft
supportSupport/housing of component
y[4]Track signals
Automatically generated Thu Oct 1 16:07:41 2020.