working varistor model

This commit is contained in:
2024-08-03 11:07:18 -06:00
parent 4b7b23cb32
commit 0d86b32320
3 changed files with 46 additions and 76 deletions

View File

@@ -0,0 +1,10 @@
*BEGIN MODEL VARISTOR
*//////////////////////////////////////////////////////////////////////
* (C) Brendan Haines
*/////////////////////////////////////////////////////////////////////
.SUBCKT VARISTOR IN_P IN_N R_P R_N PARAMS: gain=1
*/////////////////////////////////////////////////////
* .PARAM gain=1
R R_P R_N {abs(V(IN_P) - V(IN_N)) * gain + 1n}
.ENDS
* END MODEL VARISTOR