John Vodden a écrit :
I would like to know if there is a way to model a dependent source like
this with variable gain.
Hello,

I'm using this for multiply operation (in tran analysis):
Perhaps, there is a better way ...

.SUBCKT Mul in1 in2 out
G1 1 0 in1 0 1.0
G2 1 0 VCR 0 in2 1.0
E1 out 0 1 0 1.0 .ENDS

and invert (out=1/in):

.SUBCKT Invert in out
V1 1 0 1
G1 1 0 VCR 0 in 1
H1 out 0 V1 1
.ENDS

But for a bug in the limiting algorithm (see "strange behaviour
for VCR" in bug-gnucap mailing list) who must add in 0.35 :

.options vmax=1e99 vmin=-1e99

I hope this would be usefull for you.

I wrote an "unofficial" bad extension for exp(in), cos(in), tan(in), ln(in).
If someone need such operations ...

Best regards

Jacques Le Coupanec




_______________________________________________
Help-gnucap mailing list
[email protected]
http://lists.gnu.org/mailman/listinfo/help-gnucap

Reply via email to