Modelica.Electrical.Analog.Sensors.CurrentSensor Modelica.Electrical.Analog.Sensors.CurrentSensor

Sensor to measure the current in a branch

Modelica.Electrical.Analog.Sensors.CurrentSensor

Information

The current sensor converts the current flowing between the two connectors into a real valued signal. The two connectors are in the sensor connected like a short cut. The sensor has to be placed within an electrical connection in series. It does not influence the current sum at the connected nodes. Therefore, the electrical behavior is not influenced by the sensor.

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

Connectors

TypeNameDescription
PositivePinppositive pin
NegativePinnnegative pin
output RealOutputiCurrent in the branch from p to n as output signal [A]

Revisions

Modelica definition

model CurrentSensor "Sensor to measure the current in a branch" extends Modelica.Icons.RotationalSensor; Interfaces.PositivePin p "positive pin"; Interfaces.NegativePin n "negative pin"; Modelica.Blocks.Interfaces.RealOutput i(unit="A") "Current in the branch from p to n as output signal"; equation p.v = n.v; p.i = i; n.i = -i; end CurrentSensor;

Modelica.Electrical.Analog.Sensors.VoltageSensor Modelica.Electrical.Analog.Sensors.VoltageSensor

Sensor to measure the voltage between two pins

Modelica.Electrical.Analog.Sensors.VoltageSensor

Information

The voltage sensor converts the voltage between the two connectors into a real valued signal. It does not influence the current sum at the nodes in between the voltage is measured, therefore, the electrical behavior is not influenced by the sensor.

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

Connectors

TypeNameDescription
PositivePinppositive pin
NegativePinnnegative pin
output RealOutputvVoltage between pin p and n (= p.v - n.v) as output signal [V]

Revisions

Modelica definition

model VoltageSensor "Sensor to measure the voltage between two pins" extends Modelica.Icons.RotationalSensor; Interfaces.PositivePin p "positive pin"; Interfaces.NegativePin n "negative pin"; Modelica.Blocks.Interfaces.RealOutput v(unit="V") "Voltage between pin p and n (= p.v - n.v) as output signal"; equation p.i = 0; n.i = 0; v = p.v - n.v; end VoltageSensor;

Modelica.Electrical.Analog.Sensors.PowerSensor Modelica.Electrical.Analog.Sensors.PowerSensor

Sensor to measure the power

Modelica.Electrical.Analog.Sensors.PowerSensor

Information

This power sensor measures instantaneous electrical power of a singlephase system and has a separated voltage and current path. The pins of the voltage path are pv and nv, the pins of the current path are pc and nc. The internal resistance of the current path is zero, the internal resistance of the voltage path is infinite.

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

Connectors

TypeNameDescription
PositivePinpcPositive pin, current path
NegativePinncNegative pin, current path
PositivePinpvPositive pin, voltage path
NegativePinnvNegative pin, voltage path
output RealOutputpowerInstantaneous power as output signal [W]

Revisions

Modelica definition

model PowerSensor "Sensor to measure the power" extends Modelica.Icons.RotationalSensor; Modelica.Electrical.Analog.Interfaces.PositivePin pc "Positive pin, current path"; Modelica.Electrical.Analog.Interfaces.NegativePin nc "Negative pin, current path"; Modelica.Electrical.Analog.Interfaces.PositivePin pv "Positive pin, voltage path"; Modelica.Electrical.Analog.Interfaces.NegativePin nv "Negative pin, voltage path"; Modelica.Blocks.Interfaces.RealOutput power(unit="W") "Instantaneous power as output signal"; Modelica.Electrical.Analog.Sensors.VoltageSensor voltageSensor; Modelica.Electrical.Analog.Sensors.CurrentSensor currentSensor; Modelica.Blocks.Math.Product product; equation connect(pv, voltageSensor.p); connect(voltageSensor.n, nv); connect(pc, currentSensor.p); connect(currentSensor.n, nc); connect(currentSensor.i, product.u2); connect(voltageSensor.v, product.u1); connect(product.y, power); end PowerSensor;

Automatically generated Sun Apr 02 18:12:02 2017.