## Modelica.Electrical.MultiPhase.Ideal

Multiphase components with idealized behaviour

### Information

This package contains analog electrical multiphase components with idealized behaviour, like thyristor, diode, switch, transformer.

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
--- | ---
IdealThyristor | Multiphase ideal thyristor
IdealGTOThyristor | Multiphase ideal GTO thyristor
IdealCommutingSwitch | Multiphase ideal commuting switch
IdealIntermediateSwitch | Multiphase ideal intermediate switch
IdealDiode | Multiphase ideal diode
IdealTransformer | Multiphase ideal transformer
Idle | Multiphase idle branch
Short | Multiphase short cut branch
IdealOpener | Multiphase ideal opener
IdealCloser | Multiphase ideal closer

## Modelica.Electrical.MultiPhase.Ideal.IdealTransformer

Multiphase ideal transformer

### Information

Contains m ideal transformers (Modelica.Electrical.Analog.Ideal.IdealTransformer).

### Parameters

Name | Default | Description
--- | --- | ---
m | 3 | number of phases
n[m] | fill(1, m) | Turns ratio

### Modelica definition

    model IdealTransformer "Multiphase ideal transformer"
      extends Interfaces.FourPlug;
      parameter Real n[m]=fill(1, m) "Turns ratio";
      Modelica.Electrical.Analog.Ideal.IdealTransformer idealTransformer[
                                                                         m](
          final n=n);
    equation
      connect(plug_p1.pin, idealTransformer.p1);
      connect(plug_p2.pin, idealTransformer.p2);
      connect(plug_n1.pin, idealTransformer.n1);
      connect(plug_n2.pin, idealTransformer.n2);
    end IdealTransformer;

## Modelica.Electrical.MultiPhase.Ideal.IdealDiode

Multiphase ideal diode

### Information

Contains m ideal diodes (Modelica.Electrical.Analog.Ideal.IdealDiode).

### Parameters

Name | Default | Description
--- | --- | ---
m | 3 | number of phases
Roff[m] | fill(1.E-5, m) | Closed diode resistance [Ohm]
Gon[m] | fill(1.E-5, m) | Opened diode conductance [S]
Vknee[m] | zeros(m) | Treshold voltage [V]

### Modelica definition

    model IdealDiode "Multiphase ideal diode"
      extends Interfaces.TwoPlug;
      parameter Modelica.SIunits.Resistance Roff[       m](final min=zeros(m)) = fill(
        1.E-5, m) "Closed diode resistance";
      parameter Modelica.SIunits.Conductance Gon[       m](final min=zeros(m)) = fill(
        1.E-5, m) "Opened diode conductance";
      parameter Modelica.SIunits.Voltage Vknee[       m](final min=zeros(m)) = zeros(m)
        "Treshold voltage";
      Modelica.Electrical.Analog.Ideal.IdealDiode idealDiode[
                                                             m](final Roff=Roff,
           final Gon=Gon, final Vknee=Vknee);
    equation
      connect(plug_p.pin, idealDiode.p);
      connect(idealDiode.n, plug_n.pin);
    end IdealDiode;

## Modelica.Electrical.MultiPhase.Ideal.IdealThyristor

Multiphase ideal thyristor

### Information

Contains m ideal thyristors (Modelica.Electrical.Analog.Ideal.IdealThyristor).

### Parameters

Name | Default | Description
--- | --- | ---
m | 3 | number of phases
Roff[m] | fill(1.E-5, m) | Closed thyristor resistance [Ohm]
Gon[m] | fill(1.E-5, m) | Opened thyristor conductance [S]
Vknee[m] | zeros(m) | Treshold voltage [V]

### Modelica definition

    model IdealThyristor "Multiphase ideal thyristor"
      extends Interfaces.TwoPlug;
      parameter Modelica.SIunits.Resistance Roff[       m](final min=zeros(m)) = fill(
        1.E-5, m) "Closed thyristor resistance";
      parameter Modelica.SIunits.Conductance Gon[       m](final min=zeros(m)) = fill(
        1.E-5, m) "Opened thyristor conductance";
      parameter Modelica.SIunits.Voltage Vknee[       m](final min=zeros(m)) = zeros(m)
        "Treshold voltage";
      Modelica.Blocks.Interfaces.BooleanInPort firePort(
                                                        final n=m);
      Modelica.Electrical.Analog.Ideal.IdealThyristor idealThyristor[
                                                                     m](final Roff=
               Roff, final Gon=Gon, final Vknee=Vknee);
    equation
      idealThyristor.firePort.signal[1] = firePort.signal;
      connect(plug_p.pin, idealThyristor.p);
      connect(idealThyristor.n, plug_n.pin);
    end IdealThyristor;

## Modelica.Electrical.MultiPhase.Ideal.IdealGTOThyristor

Multiphase ideal GTO thyristor

### Information

Contains m ideal GTO thyristors (Modelica.Electrical.Analog.Ideal.IdealGTOThyristor).

### Parameters

Name | Default | Description
--- | --- | ---
m | 3 | number of phases
Roff[m] | fill(1.E-5, m) | Closed thyristor resistance [Ohm]
Gon[m] | fill(1.E-5, m) | Opened thyristor conductance [S]
Vknee[m] | zeros(m) | Treshold voltage [V]

### Modelica definition

    model IdealGTOThyristor "Multiphase ideal GTO thyristor"
      extends Interfaces.TwoPlug;
      parameter Modelica.SIunits.Resistance Roff[       m](final min=zeros(m)) = fill(
        1.E-5, m) "Closed thyristor resistance";
      parameter Modelica.SIunits.Conductance Gon[       m](final min=zeros(m)) = fill(
        1.E-5, m) "Opened thyristor conductance";
      parameter Modelica.SIunits.Voltage Vknee[       m](final min=zeros(m)) = zeros(m)
        "Treshold voltage";
      Modelica.Blocks.Interfaces.BooleanInPort firePort(
                                                        final n=m);
      Modelica.Electrical.Analog.Ideal.IdealGTOThyristor idealGTOThyristor[
                                                                           m](
          final Roff=Roff, final Gon=Gon, final Vknee=Vknee);
    equation
      idealGTOThyristor.firePort.signal[1] = firePort.signal;
      connect(idealGTOThyristor.p, plug_p.pin);
      connect(idealGTOThyristor.n, plug_n.pin);
    end IdealGTOThyristor;

## Modelica.Electrical.MultiPhase.Ideal.IdealCommutingSwitch

Multiphase ideal commuting switch

### Information

Contains m ideal commuting switches (Modelica.Electrical.Analog.Ideal.IdealCommutingSwitch).

### Parameters

Name | Default | Description
--- | --- | ---
m | 3 | number of phases
Ron[m] | fill(1.E-5, m) | Closed switch resistance [Ohm]
Goff[m] | fill(1.E-5, m) | Opened switch conductance [S]

### Modelica definition

    model IdealCommutingSwitch "Multiphase ideal commuting switch"
      parameter Integer m(final min=1) = 3 "number of phases";
      parameter Modelica.SIunits.Resistance Ron[       m](final min=zeros(m)) = fill(
        1.E-5, m) "Closed switch resistance";
      parameter Modelica.SIunits.Conductance Goff[       m](final min=zeros(m)) = fill(
        1.E-5, m) "Opened switch conductance";
      Modelica.Blocks.Interfaces.BooleanInPort control(
                                                       final n=m);
      Interfaces.PositivePlug plug_p(
                                     final m=m);
      Interfaces.NegativePlug plug_n2(
                                      final m=m);
      Interfaces.NegativePlug plug_n1(
                                      final m=m);
      Modelica.Electrical.Analog.Ideal.IdealCommutingSwitch idealCommutingSwitch[
                             m](final Ron=Ron, final Goff=Goff);
    equation
      idealCommutingSwitch.control.signal[1] = control.signal;
      connect(plug_p.pin, idealCommutingSwitch.p);
      connect(idealCommutingSwitch.n2, plug_n2.pin);
      connect(idealCommutingSwitch.n1, plug_n1.pin);
    end IdealCommutingSwitch;

## Modelica.Electrical.MultiPhase.Ideal.IdealIntermediateSwitch

Multiphase ideal intermediate switch

### Information

Contains m ideal intermediate switches (Modelica.Electrical.Analog.Ideal.IdealIntermediateSwitch).

### Parameters

Name | Default | Description
--- | --- | ---
m | 3 | number of phases
Ron[m] | fill(1.E-5, m) | Closed switch resistance [Ohm]
Goff[m] | fill(1.E-5, m) | Opened switch conductance [S]

### Modelica definition

    model IdealIntermediateSwitch "Multiphase ideal intermediate switch"
      parameter Integer m(final min=1) = 3 "number of phases";
      parameter Modelica.SIunits.Resistance Ron[       m](final min=zeros(m)) = fill(
        1.E-5, m) "Closed switch resistance";
      parameter Modelica.SIunits.Conductance Goff[       m](final min=zeros(m)) = fill(
        1.E-5, m) "Opened switch conductance";
      Modelica.Blocks.Interfaces.BooleanInPort control(
                                                       final n=m);
      Interfaces.PositivePlug plug_p1(
                                      final m=m);
      Interfaces.PositivePlug plug_p2(
                                      final m=m);
      Interfaces.NegativePlug plug_n2(
                                      final m=m);
      Interfaces.NegativePlug plug_n1(
                                      final m=m);
      Modelica.Electrical.Analog.Ideal.IdealIntermediateSwitch
        idealIntermediateSwitch[m](final Ron=Ron, final Goff=Goff);
    equation
      idealIntermediateSwitch.control.signal[1] = control.signal;
      connect(plug_p2.pin, idealIntermediateSwitch.p2);
      connect(idealIntermediateSwitch.n2, plug_n2.pin);
      connect(idealIntermediateSwitch.p1, plug_p1.pin);
      connect(idealIntermediateSwitch.n1, plug_n1.pin);
    end IdealIntermediateSwitch;

## Modelica.Electrical.MultiPhase.Ideal.Idle

Multiphase idle branch

### Information

Contains m idles (Modelica.Electrical.Analog.Ideal.Idle)

### Parameters

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

### Modelica definition

    model Idle "Multiphase idle branch"
      extends Interfaces.TwoPlug;
      Modelica.Electrical.Analog.Ideal.Idle idle[
                                                 m];
    equation

      connect(plug_p.pin, idle.p);
      connect(idle.n, plug_n.pin);
    end Idle;

## Modelica.Electrical.MultiPhase.Ideal.Short

Multiphase short cut branch

### Information

Contains m short cuts (Modelica.Electrical.Analog.Ideal.Short)

### Parameters

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

### Modelica definition

    model Short "Multiphase short cut branch"
      extends Interfaces.TwoPlug;
      Modelica.Electrical.Analog.Ideal.Short short[
                                                   m];
    equation

      connect(plug_p.pin, short.p);
      connect(short.n, plug_n.pin);
    end Short;

## Modelica.Electrical.MultiPhase.Ideal.IdealOpener

Multiphase ideal opener

### Information

Contains m ideal opening switches (Modelica.Electrical.Analog.Ideal.IdealOpener).

### Parameters

Name | Default | Description
--- | --- | ---
m | 3 | number of phases
Ron[m] | fill(1.E-5, m) | Closed switch resistance [Ohm]
Goff[m] | fill(1.E-5, m) | Opened switch conductance [S]

### Modelica definition

    model IdealOpener "Multiphase ideal opener"
      extends Interfaces.TwoPlug;
      parameter Modelica.SIunits.Resistance Ron[       m](final min=zeros(m)) = fill(
        1.E-5, m) "Closed switch resistance";
      parameter Modelica.SIunits.Conductance Goff[       m](final min=zeros(m)) = fill(
        1.E-5, m) "Opened switch conductance";
      Modelica.Blocks.Interfaces.BooleanInPort control(
                                                       final n=m);
      Modelica.Electrical.Analog.Ideal.IdealOpener idealOpener[
                                                               m](final Ron=Ron,
           final Goff=Goff);
    equation
      idealOpener.control.signal[1] = control.signal;
      connect(plug_p.pin, idealOpener.p);
      connect(idealOpener.n, plug_n.pin);
    end IdealOpener;

## Modelica.Electrical.MultiPhase.Ideal.IdealCloser

Multiphase ideal closer

### Information

Contains m ideal closing switches (Modelica.Electrical.Analog.Ideal.IdealCloser).

< /HTML>Error:Found no end-tag in HTML-documentation

### Parameters

Name | Default | Description
--- | --- | ---
m | 3 | number of phases
Ron[m] | fill(1.E-5, m) | Closed switch resistance [Ohm]
Goff[m] | fill(1.E-5, m) | Opened switch conductance [S]

### Modelica definition

    model IdealCloser "Multiphase ideal closer"
      extends Interfaces.TwoPlug;
      parameter Modelica.SIunits.Resistance Ron[       m](final min=zeros(m)) = fill(
        1.E-5, m) "Closed switch resistance";
      parameter Modelica.SIunits.Conductance Goff[       m](final min=zeros(m)) = fill(
        1.E-5, m) "Opened switch conductance";
      Modelica.Blocks.Interfaces.BooleanInPort control(
                                                       final n=m);
      Modelica.Electrical.Analog.Ideal.IdealCloser idealCloser[
                                                               m](final Ron=Ron,
           final Goff=Goff);
    equation
      idealCloser.control.signal[1] = control.signal;
      connect(plug_p.pin, idealCloser.p);
      connect(idealCloser.n, plug_n.pin);
    end IdealCloser;