modelSpiceTwoPortV

TwoPort interface for Spice-style models

Extends from BondLib.Electrical.Analog.Interfaces.OnePortV (OnePort partial model of analog electrical library for capacitors).

Information

All Spice-style OnePorts must have an additional HeatPort, even capacitors and inductors. The reason is that they need the current circuit temperature, which they import through the HeatPort.

Parameters

TypeNameDefaultDescription
Modelica.SIunits.Voltageu0 (from OnePortV)0Initial voltage across capacitor
Modelica.SIunits.TemperatureTnom300.15Reference temperature
Advanced
BooleanenforceStates (from OnePortV)trueUse electrical variables as states instead of bond graph variables

Connectors

TypeNameDefaultDescription
Modelica.Electrical.Analog.Interfaces.PositivePinp (from OnePortV)Left electrical connector
Modelica.Electrical.Analog.Interfaces.NegativePinn (from OnePortV)Right electrical connector
Modelica.Thermal.HeatTransfer.Interfaces.HeatPort_aheatPortmay remain unconnected

Components

TypeNameDefaultDescription
Modelica.SIunits.Voltagev (from OnePortV)Voltage drop between the two pins
Modelica.SIunits.Currenti (from OnePortV)Current flowing from pin p to pin n