0

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.

Julio Cesar
  • 265
  • 1
  • 8
  • Please read [Why should I not upload images of code/data/errors?](https://meta.stackoverflow.com/q/285551/354577). Instead, format code as a [code block]. The easiest way to do this is to paste the code as text directly into your question, then select it and click the code block button. – ChrisGPT was on strike Apr 30 '23 at 15:59

0 Answers0