modelmC3
Bondgraphic modulated capacitor element for Spice
Extends from BondLib.Interfaces.PassiveOnePort (Partial model invoking one bondgraphic connector).
Information
This model presents a generalization of the mC2 model presented in the semiconductor section, generalized for Spice-style transistor models. It computes also the external current, ix, which doesn't pass through the junction, but in parallel to it through the Cbx capacitor, which is realized as a current source to prevent an unnecessary higher index DAE problem.
Potential variables: e: Bondgraphic effort variable f: Bondgraphic flow variable, normalized positive for flows into the model Cdiff: Diffusion capacitance (modulating input signal) Cdepl: Depletion capacitance (modulating input signal) ix: External depletion capacitive current Parameters: XCJC: Fraction of depletion capacitance connected to internal base node (default value = 1) Level: Transistor modeling level (Ebers-Moll = 1; Gummel-Poon = 2) (default value = 2)
Equations:
C = Cdiff + XCJ*Cdepl;
du = f/C;
ix = (1 - XCJ)*Cdepl*du;
der(e) = du;
Parameters
| Type | Name | Default | Description |
|---|---|---|---|
| Integer | Level | 2 | Transistor modeling level (Ebers-Moll = 1; Gummel-Poon = 2) |
| Real | XCJ | 1 | Fraction of depletion capacitance connected to internal base node |
Connectors
| Type | Name | Default | Description |
|---|---|---|---|
| BondLib.Interfaces.BondCon | BondCon1 (from PassiveOnePort) | Bond graph connector | |
| Modelica.Blocks.Interfaces.RealInput | Cdiff | Diffusion capacitance | |
| Modelica.Blocks.Interfaces.RealInput | Cdepl | Depletion capacitance | |
| Modelica.Blocks.Interfaces.RealOutput | ix | External base-collector capacitance current |
Components
| Type | Name | Default | Description |
|---|---|---|---|
| Real | e (from PassiveOnePort) | Bondgraphic effort | |
| Real | f (from PassiveOnePort) | Bondgraphic flow | |
| Real | C | Bondgraphic Capacitance |