[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Toroid Construction - Need something good . . .



Original poster: "Terry Fritz" <twftesla-at-qwest-dot-net>

Hi Antonio,

In the include source code (E-Tesla6.11.C), the top terminal dimensions are
punched into the grid at:

================================
// Out to Radius-1
    for(z = 0; z <= TermD / 2.0; z++)
	{
	    a[(int)(z+0.5)][(int)(TermH+0.5)] = TermV;
	    p[(int)(z+0.5)][(int)(TermH+0.5)] = 1.0;
	}

// Terminal-1 Radius
    for(z = -pi / 2.0; z <= pi / 2.0; z += 0.0785)
	{
	    x = TermD / 2.0 + TermR * cos(z);
		y = TermH + TermR * sin(z);

	    a[(int)(x+0.5)][(int)(y+0.5)] = TermV;
	    p[(int)(x+0.5)][(int)(y+0.5)] = 1.0;

	    if(TermD / 2.0 + 1.0 >= TermR) // Comparison swapped from < to >= to
avoid need for goto -- SJT
		{
		    x = TermD / 2.0 - TermR * cos(z);
		    a[(int)(x+0.5)][(int)(y+0.5)] = TermV;
		    p[(int)(x+0.5)][(int)(y+0.5)] = 1.0;
		}
	}

    a[(int)(0.5 + TermD / 2.0)][(int)(0.5 + TermH + TermR)] = TermV;
    a[(int)(0.5 + TermD / 2.0)][(int)(0.5 + TermH - TermR)] = TermV;

    p[(int)(0.5 + TermD / 2.0)][(int)(0.5 + TermH + TermR)] = 1.0;
    p[(int)(0.5 + TermD / 2.0)][(int)(0.5 + TermH - TermR)] = 1.0;
==============================

The "a" matrix is the voltage and the "p" matrix is a "protection" matrix
that indicates that the point should not be over-written by the iterations.

One would just have to "flat top" (and bottom) the terminal here.  Me brain
is to tired tonight but just changing the above and recompiling it on any C
compiler should provide your answer.

Dave McKinnon also sells these "no hole" toroids so another us for slightly
modified code.

Cheers,

	Terry



At 02:34 PM 7/22/2002 -0300, you wrote:
>
>I was using e-tesla6 to calculate the required size for this toroid,
>but noticed that it assumes a toroid with a hole. Some simple trick
>to make it consider a holeless toroid?
>