User Tools

Site Tools


ltspice:variable_capacitor

Variable capacitor

Stan Zurek, Variable capacitor, Encyclopedia Magnetica, E-Magnetica.pl
Go to: LTspice.

Variable capacitance can be created by using the LTspice in-built variables for capacitors: $Q$ - electric charge (C), and $x$ - voltage across the capacitor (V).1)

"Linear" model (valid only for Vmax < V capacitor!)

LTspice directive with parameters:

.params LINEAR=1 C0=10n Csat=1n Vtra=10 Vth=15 Vmax=Vth+0.5*Vtra

And instead of the value of the capacitor use:

Q=x*{C0}-0.5*x**2*({C0}-{Csat})/{Vmax}

Non-linear tanh model

LTspice directive with parameters:

.params LINEAR=1 C0=10n Csat=1n Vtra=10 Vth=15 Vmax=Vth+0.5*Vtra

And instead of the value of the capacitor use:

Q=x*({C0+Csat})/2+({Csat-C0})/4*{Vtra}*ln(cosh((x-{Vth})*2/{Vtra}))
Definitions of variables for the non-linear tanh model2) Copyright © AnalogDialogue
→ → →
Helpful page? Support us!
→ → →
PayPal
← ← ←
Help us with just $0.10 per month? Come on… ;-)
← ← ←
Performance of the two models - note that the “linear” model fails if voltage on capacitor exceeds the Vmax parameter (arrow); decreasing current through the capacitors indicate their decreasing values with increased DC voltage (the AC component is the same, so for a fixed capacitor the AC component in the current would also be the same)

References

This website uses cookies. By using the website, you agree with storing cookies on your computer. Also you acknowledge that you have read and understand our Privacy Policy. If you do not agree leave the website.More information about cookies
ltspice/variable_capacitor.txt · Last modified: 2023/06/17 22:22 by 127.0.0.1

Except where otherwise noted, content on this wiki is licensed under the following license: CC Attribution-Share Alike 4.0 International
CC Attribution-Share Alike 4.0 International Donate Powered by PHP Valid HTML5 Valid CSS Driven by DokuWiki
Legal disclaimer: Information provided here is only for educational purposes. Accuracy is not guaranteed or implied. In no event the providers can be held liable to any party for direct, indirect, special, incidental, or consequential damages arising out of the use of this data.

For information on the cookies used on this site refer to Privacy policy and Cookies.