modelC_Capacitor
Ideal linear electrical capacitor
Extends from Modelica.Electrical.Analog.Interfaces.OnePort (Component with two electrical pins p and n and current i from p to n).
Information
The linear capacitor connects the branch voltage v with the branch current i by i = C * dv/dt. The Capacitance C is allowed to be positive, zero, or negative.
Parameters
| Type | Name | Default | Description |
|---|---|---|---|
| Types.Capacitance | C | Capacitance | |
| SI.Voltage | IC | 0 | Initial value of voltage |
| Boolean | UIC | false | Use initial conditions: true, if initial condition is used |
Connectors
| Type | Name | Default | Description |
|---|---|---|---|
| PositivePin | p (from TwoPin) | Positive electrical pin | |
| NegativePin | n (from TwoPin) | Negative electrical pin |
Components
| Type | Name | Default | Description |
|---|---|---|---|
| SI.Voltage | v (from TwoPin) | Voltage drop of the two pins (= p.v - n.v) | |
| SI.Current | i (from OnePort) | Current flowing from pin p to pin n |