modelCS
Spice-style capacitor model
Extends from Interfaces.SpiceTwoPort (Special twoPort element used by Spice 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.
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)
Equations:
DTemp = e2 - Tnom
Cval = C*(1 + TC1*DTemp + TC2*DTemp*DTemp)*Area
q1 = Cval*e1
der(q1) = f1
f2 = 0
Parameters
| Type | Name | Default | Description |
|---|---|---|---|
| Modelica.SIunits.Temperature | Tnom (from SpiceTwoPort) | 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 |
Connectors
| Type | Name | Default | Description |
|---|---|---|---|
| BondLib.Interfaces.BondCon | BondCon1 (from TwoPort) | Left bond graph connector | |
| BondLib.Interfaces.BondCon | BondCon2 (from TwoPort) | Right bond graph connector |
Components
| Type | Name | Default | Description |
|---|---|---|---|
| Real | e1 (from TwoPort) | Bondgraphic primary effort | |
| Real | f1 (from TwoPort) | Bondgraphic primary flow | |
| Real | e2 (from TwoPort) | Bondgraphic secondary effort | |
| Real | f2 (from TwoPort) | Bondgraphic secondary flow | |
| Modelica.SIunits.Temperature | DTemp (from SpiceTwoPort) | Difference between circuit temperature and reference temperature | |
| Real | DTempSq (from SpiceTwoPort) | Square of DTemp | |
| Modelica.SIunits.Capacitance | Cval | Capacitance value at circuit temperature |