## Modelica.Electrical.MultiPhase.Interfaces

Interfaces for electrical multiphase models

### Information

This package contains connectors and interfaces (partial models) for electrical multiphase components, based on Modelica.Electrical.Analog.

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
--- | ---
Plug | Plug with m pins for an electric component
PositivePlug | Positive plug with m pins
NegativePlug | Negative plug with m pins
TwoPlug | Component with one m-phase electric port
OnePort | Component with two electrical plugs and currents from plug_p to plug_n
FourPlug | Component with two m-phase electric ports
TwoPort | Component with two m-phase electric ports, including currents
AbsoluteSensor | Base partial model for measuring potentials
RelativeSensor | Base partial model for measuring relative variables between two plugs

## Modelica.Electrical.MultiPhase.Interfaces.PositivePlug

Positive plug with m pins

### Information

Connectors PositivePlug and NegativePlug are nearly identical. The only difference is that the icons are different in order to identify more easily the plugs of a component. Usually, connector PositivePlug is used for the positive and connector NegativePlug for the negative plug of an electrical component.
Connector Plug is a composite connector containing m Pins (Modelica.Electrical.Analog.Interfaces.Pin).

### Parameters

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

### Modelica definition

    connector PositivePlug "Positive plug with m pins"
      extends Plug;

    end PositivePlug;

## Modelica.Electrical.MultiPhase.Interfaces.NegativePlug

Negative plug with m pins

### Information

Connectors PositivePlug and NegativePlug are nearly identical. The only difference is that the icons are different in order to identify more easily the plugs of a component. Usually, connector PositivePlug is used for the positive and connector NegativePlug for the negative plug of an electrical component.
Connector Plug is a composite connector containing m Pins (Modelica.Electrical.Analog.Interfaces.Pin).

### Parameters

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

### Modelica definition

    connector NegativePlug "Negative plug with m pins"
      extends Plug;
    end NegativePlug;

## Modelica.Electrical.MultiPhase.Interfaces.TwoPlug

Component with one m-phase electric port

### Information

Superclass of elements which have two electrical plugs: the positive plug connector plug_p, and the negative plug connector plug_n. The currents flowing into plug_p are provided explicitly as currents i[m].

### Parameters

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

### Modelica definition

    partial model TwoPlug "Component with one m-phase electric port"
      parameter Integer m(min=1) = 3 "number of phases";
      Modelica.SIunits.Voltage v[
                                 m] "Voltage drops between the two plugs";
      Modelica.SIunits.Current i[
                                 m] "Currents flowing into positive plugs";
      PositivePlug plug_p(
                          final m=m);
      NegativePlug plug_n(
                          final m=m);
    equation
      v = plug_p.pin.v - plug_n.pin.v;
      i = plug_p.pin.i;
    end TwoPlug;

## Modelica.Electrical.MultiPhase.Interfaces.FourPlug

Component with two m-phase electric ports

### Information

Superclass of elements which have four electrical plugs.

### Parameters

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

### Modelica definition

    partial model FourPlug "Component with two m-phase electric ports"
      parameter Integer m(final min=1) = 3 "number of phases";
      Modelica.SIunits.Voltage v1[
                                  m] "Voltage drops over the left port";
      Modelica.SIunits.Voltage v2[
                                  m] "Voltage drops over the right port";
      Modelica.SIunits.Current i1[
                                  m]
        "Current flowing into positive plug of the left port";
      Modelica.SIunits.Current i2[
                                  m]
        "Current flowing into positive plug of the right port";
      PositivePlug plug_p1(
                           final m=m);
      PositivePlug plug_p2(
                           final m=m);
      NegativePlug plug_n1(
                           final m=m);
      NegativePlug plug_n2(
                           final m=m);
    equation
      v1 = plug_p1.pin.v - plug_n1.pin.v;
      v2 = plug_p2.pin.v - plug_n2.pin.v;
      i1 = plug_p1.pin.i;
      i2 = plug_p2.pin.i;
    end FourPlug;

## Modelica.Electrical.MultiPhase.Interfaces.Plug

Plug with m pins for an electric component

### Information

Connectors PositivePlug and NegativePlug are nearly identical. The only difference is that the icons are different in order to identify more easily the plugs of a component. Usually, connector PositivePlug is used for the positive and connector NegativePlug for the negative plug of an electrical component.
Connector Plug is a composite connector containing m Pins (Modelica.Electrical.Analog.Interfaces.Pin).

### Parameters

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

### Modelica definition

    connector Plug "Plug with m pins for an electric component"
      parameter Integer m(final min=1) = 3 "number of phases";
      Modelica.Electrical.Analog.Interfaces.Pin pin[
                                                    m];
    end Plug;

## Modelica.Electrical.MultiPhase.Interfaces.OnePort

Component with two electrical plugs and currents from plug_p to plug_n

### Information

Superclass of elements which have two electrical plugs: the positive plug connector plug_p, and the negative plug connector plug_n. The currents flowing into plug_p are provided explicitly as currents i[m]. It is assumed that the currents flowing into plug_p are identical to the currents flowing out of plug_n.

### Parameters

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

### Modelica definition

    partial model OnePort
      "Component with two electrical plugs and currents from plug_p to plug_n"
      extends TwoPlug;
    equation
      plug_p.pin.i + plug_n.pin.i = zeros(m);
    end OnePort;

## Modelica.Electrical.MultiPhase.Interfaces.TwoPort

Component with two m-phase electric ports, including currents

### Information

Superclass of elements which have four electrical plugs. It is assumed that the currents flowing into plug_p1 are identical to the currents flowing out of plug_n1, and that the currents flowing into plug_p2 are identical to the currents flowing out of plug_n2.

### Parameters

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

### Modelica definition

    partial model TwoPort
      "Component with two m-phase electric ports, including currents"
      extends FourPlug;
    equation
      plug_p1.pin.i + plug_n1.pin.i = zeros(m);
      plug_p2.pin.i + plug_n2.pin.i = zeros(m);
    end TwoPort;

## Modelica.Electrical.MultiPhase.Interfaces.AbsoluteSensor

Base partial model for measuring potentials

### Information

Superclass for models measuring potentials.

### Parameters

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

### Modelica definition

    partial model AbsoluteSensor
      "Base partial model for measuring potentials"
      extends Modelica.Icons.RotationalSensor;
      parameter Integer m(final min=1) = 3 "number of phases";
      PositivePlug plug_p(
                          m);
      Modelica.Blocks.Interfaces.OutPort outPort(
                                                 final n=m);
    end AbsoluteSensor;

## Modelica.Electrical.MultiPhase.Interfaces.RelativeSensor

Base partial model for measuring relative variables between two plugs

### Information

Superclass for models measuring relative variables between plugs.

### Parameters

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

### Modelica definition

    partial model RelativeSensor
      "Base partial model for measuring relative variables between two plugs"
      extends Modelica.Icons.RotationalSensor;
      parameter Integer m(final min=1) = 3 "number of phases";
      Modelica.Blocks.Interfaces.OutPort outPort(
                                                 final n=m);
      PositivePlug plug_p(
                          final m=m);
      NegativePlug plug_n(
                          final m=m);
    end RelativeSensor;