Spectrum Software
spacer
Industrial Strength Simulation
select:

divider

 

News:

Spectrum Software has released Micro-Cap 11, the eleventh generation of our SPICE circuit simulator.

For users of previous Micro-Cap versions, check out the new features available in the latest version. For those of you who are new to Micro-Cap, take our features tour to see what Micro-Cap has to offer.

 

divider

 

Working With Nonlinear Capacitors

 

Micro-Cap 11 handles user-defined nonlinear capacitors in two different ways. This article will discuss the two methods and the tradeoffs between them.

Method 1: Using the CAPACITANCE attribute. To see how this works, look at this sample file.

Nonlinear Capacitance

The top capacitor has its capacitance defined as the expression:

3n/(1+V(C1))

The capacitance is defined as 3n/(1+V(C1)) and the charge expression is not defined.

Method 2: Using the CHARGE attribute.

Now consider the bottom capacitor. Its charge is defined with the expression

3n*LN(1+V(C2))

The capacitance is not defined and the charge is defined as 3n*LN(1+V(C2)).

Both methods use consistent expressions in that the derivative of the charge expression is equal to the capacitance expression. However, the preferred approach is the Method 2. We shall see why later.

Run transient analysis and you get these plots.



Capacitor Voltage Plot



Both capacitors exhibit the same voltage waveforms. Here is the plot of capacitor currents.

Capacitor Current Plot



As you can see both capacitors produce the same voltage and current waveforms. How about the capacitance and charge plots? Well, here they are:

Capacitance Plot

Charge Plot

The capacitance and charge curves of C1 are both correct but the charge curve for C2 is not. That's because the charge expression for it is not supplied and must be estimated as C(V1)*V(C1), which in this case is a poor approximation. That is one reason why Method 2 is superior for nonlinear capacitors. There are other, more subtle, reasons which perhaps we'll discuss in a future article. Those other reasons have to do with Method 1 being a more robust technique and more likely to converge. So if you can, use the charge expression method.

 

Download Fall 2015 Circuit Files

Return to the main Newsletter page