Modelica.Electrical.Analog.Interfaces

Modelica.Electrical.Analog.Interfaces.Pin Modelica.Electrical.Analog.Interfaces.PositivePin Modelica.Electrical.Analog.Interfaces.NegativePin Modelica.Electrical.Analog.Interfaces.TwoPin Modelica.Electrical.Analog.Interfaces.OnePort Modelica.Electrical.Analog.Interfaces.TwoPort Modelica.Electrical.Analog.Interfaces.AbsoluteSensor Modelica.Electrical.Analog.Interfaces.RelativeSensor Modelica.Electrical.Analog.Interfaces.VoltageSource Modelica.Electrical.Analog.Interfaces.CurrentSource

Information


This package contains connectors and interfaces (partial models) for analog electrical components.

Main Authors:
Christoph Clauß <clauss@eas.iis.fhg.de>
André Schneider <schneider@eas.iis.fhg.de>
Fraunhofer Institute for Integrated Circuits
Design Automation Department
Zeunerstraße 38
D-01069 Dresden

Version:
$Id: Modelica_Electrical_Analog_Interfaces.html,v 1.9 2002/12/11 10:23:06 Hans Exp $

Copyright:
Copyright © 1998-2002, Modelica Association and Fraunhofer-Gesellschaft.
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".


Modelica.Electrical.Analog.Interfaces.Pin Modelica.Electrical.Analog.Interfaces.Pin

Pin of an electrical component

Modelica.Electrical.Analog.Interfaces.Pin

Modelica definition

connector Pin "Pin of an electrical component" 
  SI.Voltage v "Potential at the pin";
  flow SI.Current i "Current flowing into the pin";
end Pin;

Modelica.Electrical.Analog.Interfaces.OnePort Modelica.Electrical.Analog.Interfaces.OnePort

Component with two electrical pins p and n and current i from p to n

Modelica.Electrical.Analog.Interfaces.OnePort

Information


Superclass of elements which have two electrical pins: the positive pin connector p, and the negative pin connector n. It is assumed that the current flowing into pin p is identical to the current flowing out of pin n. This current is provided explicitly as current i.


Modelica definition

partial model OnePort 
  "Component with two electrical pins p and n and current i from p to n"
   
  SI.Voltage v "Voltage drop between the two pins (= p.v - n.v)";
  SI.Current i "Current flowing from pin p to pin n";
  PositivePin p;
  NegativePin n;
equation 
  v = p.v - n.v;
  0 = p.i + n.i;
  i = p.i;
end OnePort;

Modelica.Electrical.Analog.Interfaces.TwoPort Modelica.Electrical.Analog.Interfaces.TwoPort

Component with two electrical ports, including current

Modelica.Electrical.Analog.Interfaces.TwoPort

Modelica definition

partial model TwoPort 
  "Component with two electrical ports, including current" 
  SI.Voltage v1 "Voltage drop over the left port";
  SI.Voltage v2 "Voltage drop over the right port";
  SI.Current i1 "Current flowing from pos. to neg. pin of the left port";
  SI.Current i2 "Current flowing from pos. to neg. pin of the right port";
  PositivePin p1 "Positive pin of the left port";
  NegativePin n1 "Negative pin of the left port";
  PositivePin p2 "Positive pin of the right port";
  NegativePin n2 "Negative pin of the right port";
equation 
  v1 = p1.v - n1.v;
  v2 = p2.v - n2.v;
  0 = p1.i + n1.i;
  0 = p2.i + n2.i;
  i1 = p1.i;
  i2 = p2.i;
end TwoPort;

Modelica.Electrical.Analog.Interfaces.PositivePin Modelica.Electrical.Analog.Interfaces.PositivePin

Positive pin of an electric component

Modelica.Electrical.Analog.Interfaces.PositivePin

Information

Connectors PositivePin and NegativePin are nearly identical. The only difference is that the icons are different in order to identify more easily the pins of a component. Usually, connector PositivePin is used for the positive and connector NegativePin for the negative pin of an electrical component.


Modelica definition

connector PositivePin "Positive pin of an electric component" 
  SI.Voltage v "Potential at the pin";
  flow SI.Current i "Current flowing into the pin";
end PositivePin;

Modelica.Electrical.Analog.Interfaces.NegativePin Modelica.Electrical.Analog.Interfaces.NegativePin

Negative pin of an electric component

Modelica.Electrical.Analog.Interfaces.NegativePin

Information

Connectors PositivePin and NegativePin are nearly identical. The only difference is that the icons are different in order to identify more easily the pins of a component. Usually, connector PositivePin is used for the positive and connector NegativePin for the negative pin of an electrical component.


Modelica definition

connector NegativePin "Negative pin of an electric component" 
  SI.Voltage v "Potential at the pin";
  flow SI.Current i "Current flowing into the pin";
end NegativePin;

Modelica.Electrical.Analog.Interfaces.TwoPin Modelica.Electrical.Analog.Interfaces.TwoPin

Component with one electrical port

Modelica.Electrical.Analog.Interfaces.TwoPin

Modelica definition

partial model TwoPin "Component with one electrical port" 
  SI.Voltage v "Voltage drop between the two pins (= p.v - n.v)";
  PositivePin p "Positive pin";
  NegativePin n "Negative pin";
equation 
  v = p.v - n.v;
end TwoPin;

Modelica.Electrical.Analog.Interfaces.AbsoluteSensor Modelica.Electrical.Analog.Interfaces.AbsoluteSensor

Base class to measure the absolute value of a pin variable

Modelica.Electrical.Analog.Interfaces.AbsoluteSensor

Modelica definition

partial model AbsoluteSensor 
  "Base class to measure the absolute value of a pin variable" 
  extends Modelica.Icons.RotationalSensor;
  
  PositivePin p "pin to be measured";
  Modelica.Blocks.Interfaces.OutPort outPort(final n=1);
end AbsoluteSensor;

Modelica.Electrical.Analog.Interfaces.RelativeSensor Modelica.Electrical.Analog.Interfaces.RelativeSensor

Base class to measure a relative variable between two pins

Modelica.Electrical.Analog.Interfaces.RelativeSensor

Modelica definition

partial model RelativeSensor 
  "Base class to measure a relative variable between two pins" 
  extends Modelica.Icons.RotationalSensor;
  
  PositivePin p "positive pin";
  NegativePin n "negative pin";
  Modelica.Blocks.Interfaces.OutPort outPort(final n=1);
  
  
end RelativeSensor;

Modelica.Electrical.Analog.Interfaces.VoltageSource Modelica.Electrical.Analog.Interfaces.VoltageSource

Interface for voltage sources

Modelica.Electrical.Analog.Interfaces.VoltageSource

Parameters

NameDefaultDescription
offset0Voltage offset [V]
startTime0Time offset [s]
signalSource  

Modelica definition

partial model VoltageSource "Interface for voltage sources" 
  extends OnePort;
  
  parameter SI.Voltage offset=0 "Voltage offset";
  parameter SI.Time startTime=0 "Time offset";
  replaceable Modelica.Blocks.Interfaces.SignalSource signalSource(final offset={offset}
      , final startTime={startTime});
equation 
  v = signalSource.outPort.signal[1];
end VoltageSource;

Modelica.Electrical.Analog.Interfaces.CurrentSource Modelica.Electrical.Analog.Interfaces.CurrentSource

Interface for current sources

Modelica.Electrical.Analog.Interfaces.CurrentSource

Parameters

NameDefaultDescription
offset0Current offset [A]
startTime0Time offset [s]
signalSource  

Modelica definition

partial model CurrentSource "Interface for current sources" 
  extends OnePort;
  
  parameter SI.Current offset=0 "Current offset";
  parameter SI.Time startTime=0 "Time offset";
  replaceable Modelica.Blocks.Interfaces.SignalSource signalSource(final offset={offset}
      , final startTime={startTime});
equation 
  i = signalSource.outPort.signal[1];
end CurrentSource;

HTML-documentation generated by Dymola Wed Dec 11 11:13:39 2002 .