modelVariableCapacitor
Modulated linear electrical capacitor
Extends from Interfaces.ModOnePortV2 (Modulated OnePort partial model of analog electrical library for capacitors).
Information
The modulated capacitor is built in bondgraphic technology from a bond graph mC 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.
Potential variables: C: Capacitance (modulation input signal)
Parameters
| Type | Name | Default | Description |
|---|---|---|---|
| Modelica.SIunits.ElectricCharge | q0 (from ModOnePortV2) | 0 | Initial charge across capacitor |
| Advanced | |||
| Boolean | enforceStates (from ModOnePortV2) | true | use electrical variables as states instead of bond graph variables |
Connectors
| Type | Name | Default | Description |
|---|---|---|---|
| Modelica.Electrical.Analog.Interfaces.PositivePin | p (from ModOnePortV2) | Left electrical connector | |
| Modelica.Electrical.Analog.Interfaces.NegativePin | n (from ModOnePortV2) | Right electrical connector | |
| Modelica.Blocks.Interfaces.RealInput | u (from ModOnePortV2) | Modulation signal |
Components
| Type | Name | Default | Description |
|---|---|---|---|
| Modelica.SIunits.ElectricCharge | q (from ModOnePortV2) | Electrical charge | |
| Modelica.SIunits.Voltage | v (from ModOnePortV2) | Voltage drop between the two pins | |
| Modelica.SIunits.Current | i (from ModOnePortV2) | Current flowing from pin p to pin n |