¿ªÔÆÌåÓý

Re: Multiple instances of "C:U2:spark"


 
Edited

A fresh install rarely helps, especially when the problem is a mistake in your circuit.

By not including your circuit (the .ASY and .ASC files), you aren't helping us help you.? We can't run the same simulation you did, now, can we?

But consider the following lines inside the subcircuit that you did upload:

* Spark gap resistance
Rspark = 1e12 / Vspark

* Capacitance of gap
Cspark = 8.85e-12 * d

* Connect the model to the circuit
Cspark p n
Rspark p n


Look at what you have there.? You have a resistor named Rspark (connected to the nodes "=" and "1e12" with value "/ Vspark" which is obviously ridiculous) and then another resistor also named Rspark connected to nodes "p" and "n" with no value.? You can't do that.? Aside from the ridiculous nodenames and values, there can be only one resistor with the same name.? You violated that rule.

And then you have a capacitor named Cspark (connected to the nodes "=" and "8.85e-12" with another ridiculous value "* d"), and then another resistor capacitor also named Cspark connected to nodes "p" and "n" and no value.? Likewise, you can't ever have two capacitors with the same name.

What you uploaded is not valid SPICE syntax, despite being between .SUBCKT and .ENDS lines.? It's garbage.

? ? "There has to be something wrong with my subckt!?"

You have that right.? It is very wrong.? You need to start over because it is not valid SPICE syntax.? ?What are you to do now?? Start over.

Andy

Join [email protected] to automatically receive all group messages.