Electronic – How to model an EFT Surge wave equation on voltage source with LTSpice

ltspice

I am trying to put the following equation onto my voltage source on LTSpice to get the same waveform. The waveforms and equations are attached
enter image description here

Best Answer

Insert an arbitrary behavioral voltage source, or BV component. Right-click it and set its Value parameter to V=A*Vp*(1-exp(-time/tau1))*exp(-time/tau2). Insert a SPICE command somewhere in your schematic that reads .param Vp=1, A=1.037, tau1=407.4n, tau2=68.22u. Run a 100μs simulation. For the current, do similar but with an arbitrary behavioral current source, or BI component.

One thing to note: LTspice doesn't have a good idea where to set the time steps for transient simulations with behavioral sources, so you may need to customize the Maximum Timestep parameter in your transient simulation command by reducing it to an appropriate value.