home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
HAM Radio 1
/
HamRadio.cdr
/
misc
/
pc_ham3
/
falout.bas
< prev
next >
Wrap
BASIC Source File
|
1986-12-14
|
2KB
|
62 lines
20 REM
30 REM FALOUT - A NUCLEAR FALLOUT CALC PROGRAM
40 REM (C) JOHN R. FANCHI, JULY 1985
50 REM MICROSOFT BASIC ON CP/M-80 OPERATING SYSTEM
60 REM CHR$(26) CLEARS SCREEN
70 PRINT CHR$(26)
80 PRINT " FALOUT - ESTIMATING THE DISTRIBUTION OF NUCLEAR FALLOUT"
90 PRINT
100 PRINT "(C) J.R. FANCHI, JULY 1985
110 PRINT: PRINT: PRINT
120 PRINT "ESTIMATING RADIATION DOSAGE"
130 PRINT
140 INPUT "ENTER THE YIELD OF THE NUCLEAR BLAST IN MEGATONS: ", Y
150 PRINT
160 INPUT "ENTER YOUR DISTANCE FROM THE BLAST IN MILES: ", D
170 PRINT
180 REMS=250*1000*Y/(16*3.1416*D*D)
190 PRINT "ESTIMATED RADIATION DOSAGE IN REMS: ",REMS
200 PRINT
210 PRINT: PRINT: PRINT
220 PRINT "ESTIMATING FALLOUT DISTRIBUTION"
230 PRINT
240 PRINT "THE DISTRIBUTION OF FALLOUT IS TREATED AS A RANDOM WALK PROCESS"
250 PRINT "SIMILAR TO BROWNIAN MOTION."
260 PRINT
270 INPUT "ENTER THE LINE-OF-SIGHT WIND SPEED (MPH): ",VPAR
280 VPAR=VPAR*24!
290 PRINT
300 INPUT "ENTER THE LINE-OF-SIGHT DISPERSION (SQ MILES/D): ",DPAR
310 PRINT
320 INPUT "ENTER THE TRANSVERSE WIND SPEED (MPH): ",VTRANS
330 VTRANS=VTRANS*24!
340 PRINT
350 INPUT "ENTER THE TRANSVERSE DISPERSION (SQ MILES/D): ",DTRANS
360 PRINT
370 REM
380 PRINT "RADIATION DOSAGE AT YOUR LOCATION AS A FUNCTION OF TIME"
390 PRINT "DAYS","REMS","NORM","HRS"
400 REM
410 ALPHA=D*D/(4*DPAR)
420 BETA=-2*D*VPAR/(4*DPAR)
430 GAMMA=VPAR*VPAR/(4*DPAR) + VTRANS*VTRANS/(4*DTRANS)
440 TFAC=SQR(1+4*ALPHA*GAMMA)
450 TYMMAX=(1+TFAC)/(2*GAMMA)
460 FACMAX=((D-VPAR*TYMMAX)^2)/(4*DPAR*TYMMAX)
470 FACMAX=FACMAX+VTRANS*VTRANS*TYMMAX/(4*DTRANS)
480 FOR I=1 TO 20 STEP 1
490 TYM=TYMMAX*(1-.02*(10-I))
500 FACPAR=0! : FACPER=0!
510 DISPAR=D-VPAR*TYM
520 DISPER=VTRANS*TYM
530 FACPAR=DISPAR*DISPAR/(4!*DPAR*TYM)
540 IF DTRANS<>0! THEN FACPER=DISPER*DISPER/(4!*DTRANS*TYM)
550 FACTOR=FACPAR+FACPER
560 COEF=TYMMAX/TYM
570 EFFREM=REMS*COEF*EXP(FACMAX-FACTOR)
580 NORM=EFFREM/REMS
590 TYMHRS=TYM*24
600 PRINT TYM,EFFREM,NORM,TYMHRS
610 NEXT I
620 END