modelLS
Spice-style inductor model
Extends from Interfaces.SpiceTwoPort (Special twoPort element used by Spice models).
Information
The Spice-style inductor has a reference inductance value computed at the reference temperature, Tnom. It changes its value as a function of the circuit temperature.
Parameters: L: Reference inductance (default value = 1 H) Tnom: Reference temperature (default value = 300.15 oK) TL1: Linear temperature variation coefficient (default value = 0 1/oK) TL2: Quadratic temperature variation coefficient (default value = 0 1/oK2)
Equations:
DTemp = e2 - Tnom
Lval = L*(1 + TL1*DTemp + TL2*DTemp*DTemp)
p1 = Lval*f1
der(p1) = e1
f2 = 0
Parameters
| Type | Name | Default | Description |
|---|---|---|---|
| Modelica.SIunits.Temperature | Tnom (from SpiceTwoPort) | 300.15 | Reference temperature |
| Modelica.SIunits.Inductance | L | 1 | Inductance at reference temperature |
| Real | TL1 | 0 | Linear temperature coefficient |
| Real | TL2 | 0 | Quadratic temperature coefficient |
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.Inductance | Lval | Inductance value at circuit temperature |