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
| Type | Name | Default | Description |
|---|---|---|---|
| Modelica.SIunits.Voltage | u0 (from OnePortV) | 0 | Initial voltage across capacitor |
| Modelica.SIunits.Temperature | Tnom (from SpiceTwoPortV) | 300.15 | Reference temperature |
| Modelica.SIunits.Capacitance | C | 1 | Capacitance at reference temperature |
| Real | TC1 | 0 | Linear temperature coefficient |
| Real | TC2 | 0 | Quadratic temperature coefficient |
| Real | Area | 1 | Relative area occupied by capacitor |
| 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 | |
| Modelica.Thermal.HeatTransfer.Interfaces.HeatPort_a | heatPort (from SpiceTwoPortV) | may remain unconnected |
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 |