Subscribe

sweep of a parameter

  1. 2013-02-06 03:30:57 PST
    Dear ngspice users, I want to change a parameter within a simulation loop. .param ph=1.2V vaph1 aph1 0 pulse 0v ph .50ns .01ns .01ns .99ns 2ns the parameter ph should be changed in a loop (start of loop) while loop < 5 let loop =1 ph=loop ?????? tran ..... let loop=loop+1 end (end loop) thanks for help ho
  2. 2013-02-06 12:20:13 PST
    Hello, instead of changing a parameter, here you might get away using `alter' a sketch for that looks like this altering the second parameter of a `pulse' VSRC device * (compile (concat "w32/src/ngspice " buffer-file-name) t) vaph1 aph1 0 pulse 0v 0.042ns .50ns .01ns .01ns .99ns 2ns .control show vaph1 let pulse_v1 = @vaph1[pulse] * print status quo print pulse_v1 @vaph1[pulse] * alter the second vaph1 pulse parameter let pulse_v1[1] = 0.43ns alter @vaph1[pulse] pulse_v1 * verify show vaph1 print pulse_v1 @vaph1[pulse] .endc Robert
  3. 2013-02-07 07:57:33 PST
    Thanks Robert, you are great, it' running ho
Jump To:
< Previous | 1 | Next >

Add a Reply

This forum does not allow anonymous participation.

Log in to add a reply. Not registered? Create an account to participate and receive email updates when replies are posted to this topic.