modelHallSensor
Hall sensor
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).
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.
Parameters
| Type | Name | Default | Description |
|---|---|---|---|
| Boolean | useSupport (from PartialElementaryOneFlangeAndSupport2) | false | = true, if support flange enabled, otherwise implicitly grounded |
| Integer | p | Number of pole pairs | |
| SI.Angle | phi0 | -pi/p | Initial mechanical angle |
Connectors
| Type | Name | Default | Description |
|---|---|---|---|
| Flange_b | flange (from PartialElementaryOneFlangeAndSupport2) | Flange of shaft | |
| Support | support (from PartialElementaryOneFlangeAndSupport2) | Support/housing of component | |
| Modelica.Blocks.Interfaces.RealOutput | y | "Electrical angle" |