.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).
This commit is contained in:
Holger Vogt 2022-08-29 12:23:13 +02:00
parent ef3adfc050
commit 655a81da7a
1 changed files with 7 additions and 2 deletions

View File

@ -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;