modelCapacitor

Linear capacitor of analog electrical library

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

Information

The ideal linear capacitor is built in bondgraphic technology from a bond graph C element, a 1-junction, and three bonds. A-causal bonds must be used here, because the causality depends on the embedding of the capacitor in its environment.


Parameters:

 C:  Capacitance (default value = 1 Farad)

Parameters

TypeNameDefaultDescription
Modelica.SIunits.Voltageu0 (from OnePortV)0Initial voltage across capacitor
Modelica.SIunits.CapacitanceC1Capacitance
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

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