Menu

#69 Alternative to PWL but with no smoothing radius

v1.0 (example)
open
None
5
2024-05-10
2024-05-10
No

Dear ngspice team,

I am currently trying to find a command that would allow to achieve an equivalent operation as:
Gxxx n1 n2 TABLE {expression} = (x0, y0) (x1, y1) (x2, y2)
but with no smoothing at all. I currently use the following command which to work with a very reduced smoothing radius:
Gxxx U4 0 GxA 0 1
BGxx GxB 0 v = {V(t)}
Axxx %V(GxB) %V(GxA) mypwl
.model mypwl pwl(x_array=[x0 x1 x2], y_array=[y0 y1 y2],
+input_domain=0.0001 fraction=TRUE limit=TRUE)

Would you have any ideas of a syntax that could avoid any smooting radius?

Best regards,

Hadrien Tournaire

Discussion

  • Holger Vogt

    Holger Vogt - 2024-05-10

    You may set it to
    + input_domain=1e-12
    which is the minimum available.

     
  • Giles Atkinson

    Giles Atkinson - 2024-05-10

    The XSPICE filesource and multi_input_pwl (with one input) may be used. Both lack smoothing.

     

Log in to post a comment.

Want the latest updates on software, tech news, and AI?
Get latest updates about software, tech news, and AI from SourceForge directly in your inbox once a month.