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

ScanTesla - Prime Time Version



Original poster: Terry Fritz <teslalist@xxxxxxxxxxxxxxxxxxxxxxx>

Hi All,

I think I have a version of ScanTesla ready for the masses ;-))

http://drsstc.com/~terrell/modeling/ScanTesla500.zip

The parameters are input by the simple text file "input.txt".
It can do a DRSSTC or conventional coil.
It can find the maximum streamer energy or the maximum top voltage.
It reads out as it goes and stores everything to the file "output.txt" too.
It seems to all work fine ;-))

The C program is included and perhaps sort of understandable...
It was made and compiles under LCC (free windows C compiler), but now you should not have to change the program itself to run it. You only need a C compiler if you want to go changing the program itself.


http://www.cs.virginia.edu/~lcc-win32/

The input.txt file is now set to scan Lprimary from 10 to 100uH in steps of 0.5uH and scan Lsecondary from 20 to 200mH.
It is set for a conventional coil with 20000 volts on the primary cap.
It is searching for the combination that gives the maximum top toroid voltage.


In general, the search parameters are start value, stop value, and increment value. If the start and stop parameters are the same, it is a fixed value.

C1 3.749998e-008 3.749998e-008 9.999994e-010 Cpri scan parameters
R1 2.000000e+000 2.000000e+000 1.000000e-002 Rpri scan parameters
L1 9.999998e-006 9.999996e-005 4.999998e-007 Lpri scan parameters
L2 0.200000e-001 0.200000e+000 0.500000e-002 Lsec scan parameters
K12 1.500000e-001 1.500000e-001 1.000000e-002 Coupling scan parameters
R2 3.000001e+002 3.000001e+002 1.000000e+000 Rsec scan parameters
C2 2.499999e-011 2.499999e-011 4.999998e-012 Csec scan parameters
C3 0.300000e-011 0.300000e-011 9.999997e-013 Cload scan parameters
R3 2.200000e+005 2.200000e+005 1.000000e+003 Rload scan parameters
T1 0.000000e+000 9.999994e-004 1.490693e-314 Model run time scan parameters (I see a bug in T1_inc (printing..) ;-))
Vrail 0.000000e+000 Rail voltage for DRSSTC. Set to 0 for conventional coil
VCpri_init 2.000000e+004 Cpri initial voltage. Set to 0 for DRSSTC
DwellTime 1.999999e-004 DRSSTC dwell time
Current_Limit 5.000001e+004 DRSSTC primary current limit
Goal Type 0 0 = find highest Vtop 1 = find highest streamer energy


You can change the input.txt file to do anything. There is no error checking so garbage in, garbage out ;-))

Cheers,

	Terry