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
| Type | Name | Default | Description |
|---|---|---|---|
| Modelica.SIunits.Voltage | u0 (from OnePortV) | 0 | Initial voltage across capacitor |
| Modelica.SIunits.Capacitance | C | 1 | Capacitance |
| Advanced | |||
| Boolean | enforceStates (from OnePortV) | true | Use electrical variables as states instead of bond graph variables |
Connectors
| Type | Name | Default | Description |
|---|---|---|---|
| Modelica.Electrical.Analog.Interfaces.PositivePin | p (from OnePortV) | Left electrical connector | |
| Modelica.Electrical.Analog.Interfaces.NegativePin | n (from OnePortV) | Right electrical connector |
Components
| Type | Name | Default | Description |
|---|---|---|---|
| Modelica.SIunits.Voltage | v (from OnePortV) | Voltage drop between the two pins | |
| Modelica.SIunits.Current | i (from OnePortV) | Current flowing from pin p to pin n |