## Modelica.Electrical.MultiPhase.Sensors

Multiphase potential, voltage and current Sensors

### Information

This package contains multiphase potential, voltage, and current sensors.

Main Authors:
  Anton Haumer
  Technical Consulting & Electrical Engineering
  A-3423 St.Andrae-Woerdern
  Austria
  email: a.haumer@haumer.at

Release Notes:
  - v1.00 2004/06/25 Anton Haumer

Copyright:
  Copyright © 1998-2004, Modelica Association and Anton Haumer.
  The Modelica package is free software; it can be redistributed and/or modified under the terms of the Modelica license, see the license conditions and the accompanying disclaimer in the documentation of package Modelica in file "Modelica/package.mo".

Name | Description
--- | ---
PotentialSensor | Multiphase potential sensor
VoltageSensor | Multiphase voltage sensor
CurrentSensor | Multiphase current sensor

## Modelica.Electrical.MultiPhase.Sensors.PotentialSensor

Multiphase potential sensor

### Information

Contains m potential sensors (Modelica.Electrical.Analog.Sensors.PotentialSensor), thus measuring the m potentials phi[m] of the m pins of plug_p.

### Parameters

Name | Default | Description
--- | --- | ---
m | 3 | number of phases

### Modelica definition

    model PotentialSensor "Multiphase potential sensor"
      extends Interfaces.AbsoluteSensor;
      Modelica.SIunits.ElectricPotential phi[
                                             m] "Absolute voltage potentials";
      Modelica.Electrical.Analog.Sensors.PotentialSensor potentialSensor[
                                                                         m];
    equation
      phi = potentialSensor.outPort.signal[1];
      outPort.signal = phi;
      connect(potentialSensor.p, plug_p.pin);
    end PotentialSensor;

## Modelica.Electrical.MultiPhase.Sensors.VoltageSensor

Multiphase voltage sensor

### Information

Contains m voltage sensors (Modelica.Electrical.Analog.Sensors.VoltageSensor), thus measuring the m potential differences v[m] between the m pins of plug_p and plug_n.

### Parameters

Name | Default | Description
--- | --- | ---
m | 3 | number of phases

### Modelica definition

    model VoltageSensor "Multiphase voltage sensor"
      extends Interfaces.RelativeSensor;
      Modelica.SIunits.Voltage v[
                                 m] "Voltages between plug_p and plug_n";
      Modelica.Electrical.Analog.Sensors.VoltageSensor voltageSensor[
                                                                     m];
    equation
      v = voltageSensor.outPort.signal[1];
      outPort.signal = v;
      connect(voltageSensor.n, plug_n.pin);
      connect(voltageSensor.p, plug_p.pin);
    end VoltageSensor;

## Modelica.Electrical.MultiPhase.Sensors.CurrentSensor

Multiphase current sensor

### Information

Contains m current sensors (Modelica.Electrical.Analog.Sensors.CurrentSensor), thus measuring the m currents i[m] flowing from the m pins of plug_p to the m pins of plug_n.

### Parameters

Name | Default | Description
--- | --- | ---
m | 3 | number of phases

### Modelica definition

    model CurrentSensor "Multiphase current sensor"
      extends Interfaces.RelativeSensor;
      Modelica.SIunits.Current i[
                                 m] "Currents flowing from plug_p to plug_n";
      Modelica.Electrical.Analog.Sensors.CurrentSensor currentSensor[
                                                                     m];
    equation
      i = currentSensor.outPort.signal[1];
      outPort.signal = i;
      connect(plug_p.pin, currentSensor.p);
      connect(currentSensor.n, plug_n.pin);
    end CurrentSensor;