Sensitivity can be calculated from a solution of the adjoint system, see “Computer Methods for Circuit Analysis and Design (Vlach and Singhal)”.
In gnucap it may look like this:
include netlist.ckt .print dc v(nodes) .dc .print sens R(R1) W(MN1) .sens v(node0) v(node1)
calculates the sensitivities of node voltages with respect to device parameters.
.sens command is similar to the ac command. it expects a dc operation point to be computed already. It loads the acx matrix and does an lu decomposition. then for all outputs it solves the adjoint system using Gennadys
fbsubt() and iterates the probelist. the solution is stored in
devices need to provide a
XPROBE sens_probe_ext(string) const for this to work. this function uses the adjacent values from
there's a “sens” command in gnucap-uf, where the component interface and sim_data has been augmented. needs more thought before inclusion.