On Wed, 25 Dec 2013 13:24:13 -0800, Fred Abse
<excret...@invalid.invalid> wrote:
>On Wed, 25 Dec 2013 14:31:42 -0500, Maynard A. Philbrook Jr. wrote:
>
>>
>>
>> I am trying to emulate a spark gap effect using the SW component in
>> LTspice and the parameter Vh = xxx seems to allude me !
>
>Level 1 Vh positive:
>
>Switches abruptly at Vt-Vh and Vt+Vh
>Hence Vt=1 and Vh=0.5 will switch at 0.5 and 1.5
>Vt midway between switching points.
>
>Level 1 Vh negative:
>
>Switches smoothly (polynomial fit) at Vt-Vh and Vt+Vh
>
>/Examples/Educational/Vswitch.asc demonstrates this. You need to play with
>the .model directive to see the two modes As it comes, it uses Vh negative.
>Play with it to see how it works. This is what most people ever need.
>
>Putting "level=2" in the .model line, with Vh negative gives a function
>dependent on log(Roff/Ron)/pi, and log(1/(Roff*Ron))/2, with a tanh limit
>function. Jim would like that ;-)
Yes, indeed!
>You probably never need worry about level 2.
>
>It's all in the help file, just not either intuitive, or well explained.
>
>LTspice also appears to honor Pspice switch syntax, which is different,
>too.
>
>>
>> The help file leaves a lot to be desired
>
>Yup
>
>> and network searches
>> simply point me to the same help file or youtube videos with no sound and
>> very blurry images.
>
>Par for the course.
>
>>
>> Is the value for the hysteresis absolute below the trigger or is an
>> offset from the trigger?
>
>See above
>
>>
>> I will say this, after experimenting with the values, I find that in
>> this circuit I am playing with, if I don't get the Vh very close to the
>> Vt value, Ltspice will never complete the simulation run, it just sits
>> there and loops on some calculation that it never comes out of.. I Suppose
>> I can change the step point, I using the default for now.
>
>Post the relevant .asc, and let's see what can be done.
>
>>
>> P.S.
>> The load this is shorting is from a secondary side of a HV
>> transformer, much like a car coil would be.
>>
> Like a spark plug?