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

Component with two electrical pins

Modelica.Electrical.Analog.Interfaces.TwoPin

Information

TwoPin is a partial model with two pins and one internal variable for the voltage over the two pins. Internal currents are not defined. It is intended to be used in cases where the model which inherits TwoPin is composed by combining other components graphically, not by equations.

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 two electrical pins" 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.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" 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.

Contents

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

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.VoltageSource Modelica.Electrical.Analog.Interfaces.VoltageSource

Interface for voltage sources

Modelica.Electrical.Analog.Interfaces.VoltageSource

Information

The VoltageSource partial model prepares voltage sources by providing the pins, and the offset and startTime parameters, which are the same at all voltage sources. The source behavior is taken from Modelica.Blocks signal sources by inheritance and usage of the replaceable possibilities.

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.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_aheatPortConditional heat port

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 SI.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 "Conditional heat port"; SI.Power LossPower "Loss power leaving component via heatPort"; SI.Temperature T_heatPort "Temperature of heatPort"; equation if not useHeatPort then T_heatPort = T; end if; end ConditionalHeatPort;

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

Pin of an electrical component

Modelica.Electrical.Analog.Interfaces.Pin

Information

Pin is the basic electric connector. It includes the voltage which consists between the pin and the ground node. The ground node is the node of (any) ground device (Modelica.Electrical.Basic.Ground). Furthermore, the pin includes the current, which is considered to be positive if it is flowing at the pin into the device.

Contents

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

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.IdealSwitch Modelica.Electrical.Analog.Interfaces.IdealSwitch

Ideal electrical switch

Modelica.Electrical.Analog.Interfaces.IdealSwitch

Information

The ideal switch has a positive pin p and a negative pin n. The switching behaviour is controlled by the boolean signal off. If off is true, pin p is not connected with negative pin n. Otherwise, pin p is connected with negative pin n.

In order to prevent singularities during switching, the opened switch has a (very low) conductance Goff and the closed switch has a (very low) resistance Ron. The limiting case is also allowed, i.e., the resistance Ron of the closed switch could be exactly zero and the conductance Goff of the open switch could be also exactly zero. Note, there are circuits, where a description with zero Ron or zero Goff is not possible.

Please note: In case of useHeatPort=true the temperature dependence of the electrical behavior is not modelled. The parameters are not temperature dependent.

Extends from Modelica.Electrical.Analog.Interfaces.OnePort (Component with two electrical pins p and n and current i from p to n), Modelica.Electrical.Analog.Interfaces.ConditionalHeatPort (Partial model to include a conditional HeatPort in order to describe the power loss via a thermal network).

Parameters

TypeNameDefaultDescription
ResistanceRon1.E-5Closed switch resistance [Ohm]
ConductanceGoff1.E-5Opened switch conductance [S]
BooleanuseHeatPortfalse=true, if heatPort is enabled
TemperatureT293.15Fixed device temperature if useHeatPort = false [K]

Connectors

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

Modelica definition

partial model IdealSwitch "Ideal electrical switch" extends Modelica.Electrical.Analog.Interfaces.OnePort; parameter Modelica.SIunits.Resistance Ron(final min=0) = 1.E-5 "Closed switch resistance"; parameter Modelica.SIunits.Conductance Goff(final min=0) = 1.E-5 "Opened switch conductance"; extends Modelica.Electrical.Analog.Interfaces.ConditionalHeatPort(final T=293.15); protected Boolean off "Indicates off-state"; Real s(final unit="1") "Auxiliary variable"; constant SI.Voltage unitVoltage=1; constant SI.Current unitCurrent=1; equation v = (s*unitCurrent)*(if off then 1 else Ron); i = (s*unitVoltage)*(if off then Goff else 1); LossPower = v*i; end IdealSwitch;

Modelica.Electrical.Analog.Interfaces.IdealSemiconductor Modelica.Electrical.Analog.Interfaces.IdealSemiconductor

Ideal semiconductor

Modelica.Electrical.Analog.Interfaces.IdealSemiconductor

Information

This is an ideal semiconductor which is

open (off), if it is reversed biased (voltage drop less than 0)
closed (on), if it is conducting (current > 0).

This is the behaviour if all parameters are exactly zero.

Note, there are circuits, where this ideal description with zero resistance and zero conductance is not possible. In order to prevent singularities during switching, the opened semiconductor has a small conductance Gon and the closed semiconductor has a low resistance Roff which is default.

The parameter Vknee which is the forward threshold voltage, allows to displace the knee point
along the Gon-characteristic until v = Vknee.

Please note: In case of useHeatPort=true the temperature dependence of the electrical behavior is not modelled.

Extends from Modelica.Electrical.Analog.Interfaces.OnePort (Component with two electrical pins p and n and current i from p to n), Modelica.Electrical.Analog.Interfaces.ConditionalHeatPort (Partial model to include a conditional HeatPort in order to describe the power loss via a thermal network).

Parameters

TypeNameDefaultDescription
ResistanceRon1.E-5Forward state-on differential resistance (closed resistance) [Ohm]
ConductanceGoff1.E-5Backward state-off conductance (opened conductance) [S]
VoltageVknee0Forward threshold voltage [V]
BooleanuseHeatPortfalse=true, if heatPort is enabled
TemperatureT293.15Fixed device temperature if useHeatPort = false [K]

Connectors

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

Modelica definition

partial model IdealSemiconductor "Ideal semiconductor" extends Modelica.Electrical.Analog.Interfaces.OnePort; parameter Modelica.SIunits.Resistance Ron(final min=0) = 1.E-5 "Forward state-on differential resistance (closed resistance)"; parameter Modelica.SIunits.Conductance Goff(final min=0) = 1.E-5 "Backward state-off conductance (opened conductance)"; parameter Modelica.SIunits.Voltage Vknee(final min=0) = 0 "Forward threshold voltage"; extends Modelica.Electrical.Analog.Interfaces.ConditionalHeatPort; Boolean off(start=true) "Switching state"; protected Real s(start=0, final unit="1") "Auxiliary variable for actual position on the ideal diode characteristic"; /* s = 0: knee point s < 0: below knee point, conducting s > 0: above knee point, locking */ constant Modelica.SIunits.Voltage unitVoltage=1; constant Modelica.SIunits.Current unitCurrent=1; equation v = (s*unitCurrent)*(if off then 1 else Ron) + Vknee; i = (s*unitVoltage)*(if off then Goff else 1) + Goff*Vknee; LossPower = v*i; end IdealSemiconductor;

Automatically generated Mon Sep 11 16:11:53 2017.