Modelica.Electrical.Analog.Interfaces

Connectors and partial models for Analog electrical components

Information


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

Extends from Modelica.Icons.Library (Icon for library).

Package Content

NameDescription
Modelica.Electrical.Analog.Interfaces.Pin Pin Pin of an electrical component
Modelica.Electrical.Analog.Interfaces.PositivePin PositivePin Positive pin of an electric component
Modelica.Electrical.Analog.Interfaces.NegativePin NegativePin Negative pin of an electric component
Modelica.Electrical.Analog.Interfaces.TwoPin TwoPin Component with one electrical port
Modelica.Electrical.Analog.Interfaces.OnePort OnePort Component with two electrical pins p and n and current i from p to n
Modelica.Electrical.Analog.Interfaces.TwoPort TwoPort Component with two electrical ports, including current
Modelica.Electrical.Analog.Interfaces.ConditionalHeatPort ConditionalHeatPort Partial model to include a conditional HeatPort in order to describe the power loss via a thermal network
Modelica.Electrical.Analog.Interfaces.AbsoluteSensor AbsoluteSensor Base class to measure the absolute value of a pin variable
Modelica.Electrical.Analog.Interfaces.RelativeSensor RelativeSensor Base class to measure a relative variable between two pins
Modelica.Electrical.Analog.Interfaces.VoltageSource VoltageSource Interface for voltage sources
Modelica.Electrical.Analog.Interfaces.CurrentSource CurrentSource Interface for current sources


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

Pin of an electrical component

Modelica.Electrical.Analog.Interfaces.Pin

Contents

TypeNameDescription
VoltagevPotential at the pin [V]
flow CurrentiCurrent flowing into the pin [A]

Modelica definition

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

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.

Contents

TypeNameDescription
VoltagevPotential at the pin [V]
flow CurrentiCurrent flowing into the pin [A]

Modelica definition

connector PositivePin "Positive pin of an electric component"
  Modelica.SIunits.Voltage v "Potential at the pin";
  flow Modelica.SIunits.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.

Contents

TypeNameDescription
VoltagevPotential at the pin [V]
flow CurrentiCurrent flowing into the pin [A]

Modelica definition

connector NegativePin "Negative pin of an electric component"
  Modelica.SIunits.Voltage v "Potential at the pin";
  flow Modelica.SIunits.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

Connectors

TypeNameDescription
PositivePinpPositive pin Positive pin (potential p.v > n.v for positive voltage drop v)
NegativePinnNegative pin

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 Positive pin (potential p.v > n.v for positive voltage drop v)";
  NegativePin n "Negative pin";
equation 
  v = p.v - n.v;
end TwoPin;

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.

Connectors

TypeNameDescription
PositivePinpPositive pin (potential p.v > n.v for positive voltage drop v)
NegativePinnNegative pin

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 
    "Positive pin (potential p.v > n.v for positive voltage drop v)";
  NegativePin n "Negative pin";
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

Information



Connectors

TypeNameDescription
PositivePinp1Positive pin of the left port (potential p1.v > n1.v for positive voltage drop v1)
NegativePinn1Negative pin of the left port
PositivePinp2Positive pin of the right port (potential p2.v > n2.v for positive voltage drop v2)
NegativePinn2Negative pin of the right port

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 (potential p1.v > n1.v for positive voltage drop v1)";
  NegativePin n1 "Negative pin of the left port";
  PositivePin p2 
    "Positive pin of the right port (potential p2.v > n2.v for positive voltage drop v2)";
  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.ConditionalHeatPort Modelica.Electrical.Analog.Interfaces.ConditionalHeatPort

Partial model to include a conditional HeatPort in order to describe the power loss via a thermal network

Modelica.Electrical.Analog.Interfaces.ConditionalHeatPort

Information


This partial model provides a conditional heating port for the connection to a thermal network.

If this model is used, the loss power has to be provided by an equation in the model which inherits from ConditionalHeatingPort model (lossPower = ...). As device temperature T_heatPort can be used to describe the influence of the device temperature on the model behaviour.

Parameters

TypeNameDefaultDescription
BooleanuseHeatPortfalse=true, if HeatPort is enabled
TemperatureT293.15Fixed device temperature if useHeatPort = false [K]

Connectors

TypeNameDescription
HeatPort_aheatPort 

Modelica definition

partial model ConditionalHeatPort 
  "Partial model to include a conditional HeatPort in order to describe the power loss via a thermal network"

  parameter Boolean useHeatPort = false "=true, if HeatPort is enabled";
  parameter Modelica.SIunits.Temperature T=293.15 
    "Fixed device temperature if useHeatPort = false";
  Modelica.Thermal.HeatTransfer.Interfaces.HeatPort_a heatPort(T(start=T)=T_heatPort, Q_flow=-LossPower) if useHeatPort;
  Modelica.SIunits.Power LossPower "Loss power leaving component via HeatPort";
  Modelica.SIunits.Temperature T_heatPort "Temperature of HeatPort";
equation 
  if not useHeatPort then
     T_heatPort = T;
  end if;

end ConditionalHeatPort;

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

Information

Extends from Modelica.Icons.RotationalSensor (Icon representing rotational measurement device).

Connectors

TypeNameDescription
PositivePinpPin to be measured
output RealOutputyMeasured quantity as Real output signal

Modelica definition

partial model AbsoluteSensor 
  "Base class to measure the absolute value of a pin variable"
  extends Modelica.Icons.RotationalSensor;

  Interfaces.PositivePin p "Pin to be measured";
  Modelica.Blocks.Interfaces.RealOutput y 
    "Measured quantity as Real output signal";

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

Information

Extends from Modelica.Icons.RotationalSensor (Icon representing rotational measurement device).

Connectors

TypeNameDescription
PositivePinpPositive pin
NegativePinnNegative pin
output RealOutputyMeasured quantity as Real output signal

Modelica definition

partial model RelativeSensor 
  "Base class to measure a relative variable between two pins"
  extends Modelica.Icons.RotationalSensor;

  Interfaces.PositivePin p "Positive pin";
  Interfaces.NegativePin n "Negative pin";
  Modelica.Blocks.Interfaces.RealOutput y 
    "Measured quantity as Real output signal";
end RelativeSensor;

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

Interface for voltage sources

Modelica.Electrical.Analog.Interfaces.VoltageSource

Information

Extends from OnePort (Component with two electrical pins p and n and current i from p to n).

Parameters

TypeNameDefaultDescription
Voltageoffset0Voltage offset [V]
TimestartTime0Time offset [s]
SignalSourcesignalSourceredeclare Modelica.Blocks.In... 

Connectors

TypeNameDescription
PositivePinpPositive pin (potential p.v > n.v for positive voltage drop v)
NegativePinnNegative pin

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.y;
end VoltageSource;

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

Interface for current sources

Modelica.Electrical.Analog.Interfaces.CurrentSource

Information

Extends from OnePort (Component with two electrical pins p and n and current i from p to n).

Parameters

TypeNameDefaultDescription
Currentoffset0Current offset [A]
TimestartTime0Time offset [s]
SignalSourcesignalSourceredeclare Modelica.Blocks.In... 

Connectors

TypeNameDescription
PositivePinpPositive pin (potential p.v > n.v for positive voltage drop v)
NegativePinnNegative pin

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.y;
end CurrentSource;

HTML-documentation generated by Dymola Sun Jan 17 21:10:07 2010.