how to model a variable capacitor in PSPICE. the capacitance varies depends on the distance of the two plates from 0 to about 20in. this model is needed to generate an input to an other part of the circuit to simulate it and obtain the output in PSPICE.