Recently switched to PySpice from ngSPICE. Immediately a question arose - how to introduce a behavioural capacitor or other behavioural element (current source, resistor, inductance) into the circuit. In ngSPICE the element is described directly via an expression:
+n -n XX = 'expression' .
The problem is that in PySpice the netlist is written slightly differently. This caused a problem.
I've made several attempts to define an expression for capacity in the netlist, which is shown in the figure below: enter image description here However, the software eventually produces the following error: enter image description here I'd like to understand what I'm doing wrong. In the PySpice documentation, it's not quite clear what syntax is needed to specify the behavioural element. I didn't find any examples on the internet either. I would be very grateful if someone could tell me how to solve this problem.