modelC

Spice-style capacitor of the analog electrical library

Extends from Interfaces.SpiceTwoPortV (TwoPort interface for Spice-style models).

Information

The Spice-style capacitor has a reference capacitance value computed at the reference temperature, Tnom, and for a relative area of Area=1. It changes its value as a function of the circuit temperature and the relative area occupied by the capacitor.

Although the capacitor does not produce any heat (heat flow = 0), it requires a heat port, because it imports the current device temperature through that port.

The heating port may remain unconnected, in which case the device is being simulated at a constant temperature of Tnom.


Parameters:

 C:     Reference capacitance (default value = 1 F)

 Tnom:  Reference temperature (default value = 300.15 oK)

 TC1:   Linear temperature variation coefficient (default value = 0 1/oK)

 TC2:   Quadratic temperature variation coefficient (default value = 0 1/oK2)

 Area:  Relative area occupied by capacitor (default value = 1)


Compiler Parameters:

 enforceStates:  State selector (default value = true)
                   enforceStates = true:   Use (external) capacitive voltage as state variable
                   enforceStates = false:  Use (internal) bond graph effort as state variable

Parameters

TypeNameDefaultDescription
Modelica.SIunits.Voltageu0 (from OnePortV)0Initial voltage across capacitor
Modelica.SIunits.TemperatureTnom (from SpiceTwoPortV)300.15Reference temperature
Modelica.SIunits.CapacitanceC1Capacitance at reference temperature
RealTC10Linear temperature coefficient
RealTC20Quadratic temperature coefficient
RealArea1Relative area occupied by capacitor
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_aheatPort (from SpiceTwoPortV)may 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