Browse Source

.probe alli improved:

* Enable current mesurement for I source
* Look at only the first 2 nodes of S and W switches
and F and G controlled current sources, measure current
with = voltage source added to second node. So we get
I(Fx), I(Gx), I(Sx), and I(Wx).
pre-master-46
Holger Vogt 4 years ago
parent
commit
7e610c8487
  1. 9
      src/frontend/inpc_probe.c

9
src/frontend/inpc_probe.c

@ -235,10 +235,15 @@ void inp_probe(struct card* deck)
continue;
/* select elements not in need of a measure Vsource */
if (strchr("evihk", *instname))
if (strchr("ehvk", *instname))
continue;
numnodes = get_number_terminals(card->line);
/* special treatment for controlled current sources and switches:
We have three or four tokens until model name, but only the first 2 are relevant nodes. */
if (strchr("fgsw", *instname))
numnodes = 2;
else
numnodes = get_number_terminals(card->line);
char* thisline = curr_line;
prevcard = card;

Loading…
Cancel
Save