LBL logo

Buildings.Electrical.DC.Sensors

Package with sensors for DC electrical systems

Information

This package contains models for sensors for DC circuits.

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

Package Content

Name Description
Buildings.Electrical.DC.Sensors.GeneralizedSensor GeneralizedSensor Sensor for power, voltage and current
Buildings.Electrical.DC.Sensors.Examples Examples Collection of models that illustrate model use and test models

Buildings.Electrical.DC.Sensors.GeneralizedSensor Buildings.Electrical.DC.Sensors.GeneralizedSensor

Sensor for power, voltage and current

Buildings.Electrical.DC.Sensors.GeneralizedSensor

Information

Ideal sensor that measures power, voltage and current. The two components of the power S are the active and reactive power. As this sensor is configured to measure DC power, the reactive power is always zero.

Extends from Buildings.Electrical.Icons.GeneralizedSensor (Icon representing a generalized sensor that measures voltage, current and power), Buildings.Electrical.Interfaces.PartialTwoPort (Model of a generic two port component with phase systems).

Parameters

TypeNameDefaultDescription
replaceable package PhaseSystem_pPartialPhaseSystemPhase system of terminal p
replaceable package PhaseSystem_nPartialPhaseSystemPhase system of terminal n

Connectors

TypeNameDescription
replaceable package PhaseSystem_pPhase system of terminal p
replaceable package PhaseSystem_nPhase system of terminal n
output RealOutputVVoltage [V]
output RealOutputICurrent [A]
output RealOutputPPower [W]

Modelica definition

model GeneralizedSensor "Sensor for power, voltage and current" extends Buildings.Electrical.Icons.GeneralizedSensor; extends Buildings.Electrical.Interfaces.PartialTwoPort( redeclare package PhaseSystem_p = PhaseSystems.TwoConductor, redeclare package PhaseSystem_n = PhaseSystems.TwoConductor, redeclare Interfaces.Terminal_n terminal_n, redeclare Interfaces.Terminal_p terminal_p); Modelica.Blocks.Interfaces.RealOutput V(final quantity="ElectricPotential", final unit="V") "Voltage"; Modelica.Blocks.Interfaces.RealOutput I(final quantity="ElectricCurrent", final unit="A") "Current"; Modelica.Blocks.Interfaces.RealOutput P(each final quantity="Power", each final unit="W") "Power"; equation Connections.branch(terminal_p.theta, terminal_n.theta); terminal_p.theta = terminal_n.theta; V = Buildings.Electrical.PhaseSystems.TwoConductor.systemVoltage(terminal_n.v); I = Buildings.Electrical.PhaseSystems.TwoConductor.systemCurrent(terminal_n.i); P = Buildings.Electrical.PhaseSystems.TwoConductor.activePower(v=terminal_n.v, i=terminal_n.i); connect(terminal_n, terminal_p); end GeneralizedSensor;

Automatically generated Mon Jul 13 14:23:37 2015.