I have created the below circuit that simulates the current characteristics for a contactor. However I am getting this huge spike when the switches transitiion.
Can someone help to prevent this spike from happening?
I have created the below circuit that simulates the current characteristics for a contactor. However I am getting this huge spike when the switches transitiion.
Can someone help to prevent this spike from happening?
If all you want is an exponentially-shaped pulse then you don't need all that contraption. Just use a simple current source (F2 > current
) set to be exponential with EXP(0 3.2 0 5m 30m 1.875m)
as value. Do you have a reference for that contactor? Or even for the claim that this is the current shape of a contactor?
As for the spike, that's due to the misalignment of the threshold vs the two pulse ramps.
BTW, in your picture the controlling voltage sources have no ground. Behind the scene, LTspice may try to prevent shooting yourself in the foot, but it's not something that should be omitted. Also, I'd avoid non-negative thresholds, especially if this is meant to be a .model
of some sort.