From ecd119207f4fb847ddac7016506c3e8838300cc0 Mon Sep 17 00:00:00 2001 From: Brendan Haines Date: Sat, 3 Aug 2024 13:20:16 -0600 Subject: [PATCH] abs breaks AC sims --- spice/generic/varistor.lib | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/spice/generic/varistor.lib b/spice/generic/varistor.lib index a513108..d29650b 100644 --- a/spice/generic/varistor.lib +++ b/spice/generic/varistor.lib @@ -4,6 +4,6 @@ *///////////////////////////////////////////////////////////////////// .SUBCKT VARISTOR IN_P IN_N R_P R_N PARAMS: gain=1 *///////////////////////////////////////////////////// -R R_P R_N {abs(V(IN_P) - V(IN_N)) * gain + 1n} +R R_P R_N {(V(IN_P) - V(IN_N)) * gain + 1n} .ENDS * END MODEL VARISTOR