SEDIDAT: A BASIC program for the collection and statistical analysis of particle settling velocity...

27
Computers & Geoscience~ Vol 14. No. I. pp, 55-81. 1988 0098-3004 88 $3 00 -~- 000 Pnnted tn Great Britain Pergamon Journals Ltd SEDIDAT: A BASIC PROGRAM FOR THE COLLECTION AND STATISTICAL ANALYSIS OF PARTICLE SETTLING VELOCITY DATA ROBYN WRIGHT t and STEVEN M. THORNBERG ~* ~Department of Geology and :Department of Chemistry. University of New Mexico. Albuquerque. NM 87131. U.S.A. (Received 12 March 1987; revised 10 August 1987) Abstract--SEDIDAT is a series of compiled IBM-BASIC (version 2.0) programs that direct the collection, statistical calculation, and graphic presentation of particle settling velocity and equivalent spherical diameter for samples analyzed using the settling tube technique. The programs follow a menu-driven format that is understood easily by students and scientists with little previous computer experience. Settling velocity is measured directly (cm/sec) and also converted into Chi units. Equivalent spherical diameter (reported in Phi units) is calculated using a modified Gibbs equation for different particle densities. Input parameters, such as water temperature, settling distance, particle density, run time, and Phi.Chi interval are changed easily at operator discretion. Optional output to a dot-matrix printer includes a summary of moment and graphic statistical parameters, a tabulation of individual and cumulative weight percents, a listing of major distribution modes, and cumulative and histogram plots of a raw time. settling velocity. Chi and Phi data. K('.l' IVord~':Menu-driven, Particle settling velocity, Equivalent spherical diameter, Statistics (moment and graphic), Chi, Phi, Graphics (cumukttive and histogram). IBM-BASIC. INTROI)UCrlON The programs presented herein direct the collection, statistical computation, and graphical presentation of settling velocity and particle-size data for sand and coarse silt sediment samples analyzed using the set- tling tube technique. SEDIDAT is designed for easy use in both research and instructional applications, and its operation requires no sophisticated under- standing of computers or statistical methods. The programs operate through a series of menu-driven steps that allow maximum flexibility in parameter selection. SEDIDAT differs from previously pub- lished particle analysis programs (Kane and Hubert, 1963; Collias and others, 1963; Schlee and Webster, 1967) in that it analyzes continuous settling velocities rather than grouped sieve data, and utilizes the most recent refinements to velocity and velocity-size Con- version equations. SEDIDAT functions on a micro- computer (IBM PC-XT), and provides monochrome screen graphic support with optional output to a standard dot-matrix graphics printer (Epson FX-80). Particle-size and velocity data are of sedimento- logical interest for their descriptive value in deter- mining lithologic character, as well as for their poten- tial interpretive value in reconstructing sediment- transport history and dcpositional environment. Actual products of the analysis are particle-settling velocity values. SEDIDAT reports these in terms of velocity (cm/sec) and 7. (Chi): = - Iog:(s/so) (I) *Present address: Sandia National Laboratories, Albuquer- que. NM 87185, U.S,A. where s is settling velocity expressed in m/see :tnd s,. i~; a standard velocity of I m/see (May, 1981). Velocity values may be used directly, or converted to equiva- lent spherical diameter for comparison to particle-size data. SEDIDAT size conversions arc reported in q~ (Phi) units: ~b = -Iog,(d/d,,) (2) where d is diameter in mm and d, is a standard dia- meter of I mm (Krumbein, 1934; McManus, 1963). The long history of the development and application of sedimentation techniques for particle-size analysis is beyond the scope of this paper; however the interes- ted reader is referred to excellent summaries in Gibbs, Matthews, and Link (1971), Blatt, Middleton, and Murray (1980), and May (1981) for further infor- mation. SYSTEM llARDWARE The settling tube system for which this program operates was modified after the Rice University Rapid Sediment Analyzer (Anderson and Kurtz, 1979). The basic configuration (Fig. I) consists of a Gould Model UC3 universal transducing cell from which a v,eighing pan is suspended at the bottom of the settling column. The signal from the transducer is amplified and con- ditioned (Fig. I), then read by an IBM PC-XT micro- computer equipped with the DOS 2.0 operating sys- tem, a Hercules Graphics Card and associated GRAPH X software, 640 K RAM, and a 10-bit Data Translation A/D converter and control clock. The full 55

Transcript of SEDIDAT: A BASIC program for the collection and statistical analysis of particle settling velocity...

Page 1: SEDIDAT: A BASIC program for the collection and statistical analysis of particle settling velocity data

Computers & Geoscience~ V o l 14. No. I. pp, 55-81. 1988 0098-3004 88 $3 00 -~- 0 0 0 Pnnted tn Great Britain Pergamon Journals Ltd

SEDIDAT: A BASIC PROGRAM FOR THE COLLECTION AND STATISTICAL ANALYSIS OF PARTICLE SETTLING

VELOCITY DATA

ROBYN WRIGHT t and STEVEN M. THORNBERG ~*

~Department of Geology and :Department of Chemistry. University of New Mexico. Albuquerque. NM 87131. U.S.A.

(Received 12 March 1987; revised 10 August 1987)

Abstract--SEDIDAT is a series of compiled IBM-BASIC (version 2.0) programs that direct the collection, statistical calculation, and graphic presentation of particle settling velocity and equivalent spherical diameter for samples analyzed using the settling tube technique. The programs follow a menu-driven format that is understood easily by students and scientists with little previous computer experience. Settling velocity is measured directly (cm/sec) and also converted into Chi units. Equivalent spherical diameter (reported in Phi units) is calculated using a modified Gibbs equation for different particle densities. Input parameters, such as water temperature, settling distance, particle density, run time, and Phi.Chi interval are changed easily at operator discretion. Optional output to a dot-matrix printer includes a summary of moment and graphic statistical parameters, a tabulation of individual and cumulative weight percents, a listing of major distribution modes, and cumulative and histogram plots of a raw time. settling velocity. Chi and Phi data.

K('.l' IVord~': Menu-driven, Particle settling velocity, Equivalent spherical diameter, Statistics (moment and graphic), Chi, Phi, Graphics (cumukttive and histogram). IBM-BASIC.

INTROI)UCrlON

The programs presented herein direct the collection, statistical computation, and graphical presentation of settling velocity and particle-size data for sand and coarse silt sediment samples analyzed using the set- tling tube technique. SEDIDAT is designed for easy use in both research and instructional applications, and its operation requires no sophisticated under- standing of computers or statistical methods. The programs operate through a series of menu-driven steps that allow maximum flexibility in parameter selection. SEDIDAT differs from previously pub- lished particle analysis programs (Kane and Hubert, 1963; Collias and others, 1963; Schlee and Webster, 1967) in that it analyzes continuous settling velocities rather than grouped sieve data, and utilizes the most recent refinements to velocity and velocity-size Con- version equations. SEDIDAT functions on a micro- computer (IBM PC-XT), and provides monochrome screen graphic support with optional output to a standard dot-matrix graphics printer (Epson FX-80).

Particle-size and velocity data are of sedimento- logical interest for their descriptive value in deter- mining lithologic character, as well as for their poten- tial interpretive value in reconstructing sediment- transport history and dcpositional environment. Actual products of the analysis are particle-settling velocity values. SEDIDAT reports these in terms of velocity (cm/sec) and 7. (Chi):

= - Iog: (s / so) (I)

*Present address: Sandia National Laboratories, Albuquer- que. NM 87185, U.S ,A .

where s is settling velocity expressed in m/see :tnd s,. i~; a standard velocity of I m/see (May, 1981). Velocity values may be used directly, or converted to equiva- lent spherical diameter for comparison to particle-size data. SEDIDAT size conversions arc reported in q~ (Phi) units:

~b = - I o g , ( d / d , , ) (2)

where d is diameter in mm and d, is a standard dia- meter of I mm (Krumbein, 1934; McManus, 1963). The long history of the development and application of sedimentation techniques for particle-size analysis is beyond the scope of this paper; however the interes- ted reader is referred to excellent summaries in Gibbs, Matthews, and Link (1971), Blatt, Middleton, and Murray (1980), and May (1981) for further infor- mation.

SYSTEM llARDWARE

The settling tube system for which this program operates was modified after the Rice University Rapid Sediment Analyzer (Anderson and Kurtz, 1979). The basic configuration (Fig. I) consists of a Gould Model UC3 universal transducing cell from which a v,eighing pan is suspended at the bottom of the settling column. The signal from the transducer is amplified and con- ditioned (Fig. I), then read by an IBM PC-XT micro- computer equipped with the DOS 2.0 operating sys- tem, a Hercules Graphics Card and associated GRAPH X software, 640 K RAM, and a 10-bit Data Translation A/D converter and control clock. The full

55

Page 2: SEDIDAT: A BASIC program for the collection and statistical analysis of particle settling velocity data

56 R. WRIGEtT and S.M. 'I"HORNBERG

l / GouLd Mode, 5Cl105

bldirectDona( / bridge amplifier

/

E/ o /

r /

. _ /

/

I f

:rrt

I lo.o,,Lo,coo. I I

[ v::'m:

t I s,0oo ooo0,,oo,o01

Data Translation DT 280e A/D converter

control CLOCk 10- bit resolutian

1 Microcomputer J

640K RAM J C.=d d,ve.F,, ,~ dr.re) I

1 J I

Figure I. Electronic conliguration of University of New Mexico settling tube system.

640 K RAM is required to run SEDIDAT. Input and output signals of the amplifier/conditioner unit are monitored by an inexpensive oscilloscope and volt- meter to insure that all electronics are functioning properly before and during data collection.

The amplifier on our system is a custom circuit designed to amplify the strain gauge output, to filter out 60 Hz noise, and to provide a high degree of signal isolation between the computer and strain gauge. Most A/D boards have fair isolation qualities built in; however, for the small signals output by the strain gauge, a high gain, linear amplifier with noise filtering followed by a second isolation stage was determined to be critical for obtaining reliable, low-noise scans.

SEDIDAT

General information SEDIDAT (Appendix I) is a series of menu-driven

programs for settling velocity data acquisition (DIRT), statistical analysis (STAT), and graphic plots (PLOT). The operator can move quickly from one program to another through the main menu (Fig. 2). A unique system number, assigned in DIRT, identifies the data set throughout successive operations.

Standard SEDIDAT output (Appendix 2) provides an interval listing of cumulative and in- dividual weight percents for Chi and Phi data. Grouped moment (McBride, 1971) and graphic (Folk and Ward, 1957) statistical measures of mean, stan- dard deviation, skewness, and kurtosis are provided for both data sets, and are based upon specific Phi and Chi sample intervals selected by the operator prior to STAT analysis. The program outputs the five largest distribution modes and tabulates these according to weight percent. Input parameters, equation variables, and constants are summarized. Optional output plots include: (I) cumulative curves of Phi, Chi, settling

I SEDIDAT MENU I

I I Dkots J plots

Figure 2. SEDIDAT hierarchy diagram.

Page 3: SEDIDAT: A BASIC program for the collection and statistical analysis of particle settling velocity data

Analysis of particle settling velocity data

velocity, and raw-time data, (2) histograms of Phi, Chi, and settling velocity, and (3) a frequency plot of raw-time data.

DIRT program The DIRT program (Appendix 1) collects strain

gauge data through an A/D converter, and stores data and analysis parameters. The following information is input by the operator:

(I) A system number that identifies the data set in subsequent operations. Format includes drive specification for data storage, a unique six character label, and the file name extension .DAT (example: A:TI0369.DAT).

(2) A descriptive sample name. (3) Total particle settling distance. (4) Water temperature. (5) Total analysis run time.

DIRT collects 1000 data points during a single analysis. Time between points varies depending upon total run time selected. A linear equation computes the correct delay loop index (counter) to delay appro- priately between each data point collected. The cons-

57

tants in this equation were determined by a plot of time (see) vs the index of the loop. fitting a least- squares line to the points, and using the resultant linear equation to determine the loop index for a desired delay. The program waits for the operator to press "'return" on the terminal to start the sample run. Data acquisition starts immediately following the last of three warning beeps to coordinate sample intro- duction into the settling tube. At the end of the sample run, data are stored in the disk file along with para- meters entered by the operator (settling distance, water temperature, etc.) and those parameters cal- culated (elapsed time, date, etc.).

STA T program STAT (Appendix I) generates grouped moment

(McBride, 1971) and graphic (Folk and Ward, 1957) statistical parameters and calculates individual distri- bution modes for data collected in the DIRT pro- gram. At this stage, the user selects the desired Phi and Chi intervals by designating the appropriate number of subdivisions per unit. Values may range from whole Chi or Phi units to 1/20 Chi or Phi units. Statistical information then is stored using the orig-

Table I. Formulac uscd m SI-DIDAT statistical calculations*

GRAPHIC CALCULATIONS (Folk and Ward, [957)

Mean M " (416 + ~50 + 484) z 3

Standard Deviation ° I = (¢84 - ¢16) + (¢95 - 45) 4 6.6"

#84 ÷ ~16 - 2450 ~95 ÷ ~5 - 2450 Skewness SK I = 2(~84 - 4L5) ÷ 2(+95 - 45 )

495 - 4 5 Kurtosls K G 2.44(~75 _ 425)

( I . [ )

(1.2)

(1.3)

(1.4)

MOMENT COMPUTATION (McBride, 1971)

Mean ~ 4 = Elm

--2 Standard Deviation a2 = I Elm 2 - x~ 100

Skewness SK@ =

1 3 3 2 3 lO~ ~fm 100 x 4 r.fm + 2x 4

Kurtosis K 4 - I 4 4x ~ 3 6 2 2 4

1O--~ Elm - lO--'~ Efm ÷ 100 x~ Elm - 3x" 4

where f - weight percent (frequency) in each grain-slze grade present

m - midpoint of each graln-slze grade in Phi values

n - t o t a l number i n samp le , w h i c h i s 100 when f i s i n p e r c e n t

(1.5)

(1.6)

(1.7)

(1.8)

"Phi notation is used in this tabulation. ( h i measures arc calculated using the same equations.

Page 4: SEDIDAT: A BASIC program for the collection and statistical analysis of particle settling velocity data

58 R. WRIGHT and S.M. THORNBERG

inal file label with an .STS, rather than .DAT, exten- sion.

Velocity values are calculated from raw time and settling distance, and are converted to Chi values using Equation (I). The conversion from settling velocity to equivalent spherical diameter is made using a modified equation of Gibbs, Matthews, and Link (197 I). The original equation:

r = 0.055804V"er + 0.003114V4Q~ + [g(Q~ -

where r = sphere radius (cm); V = velocity (cm/sec); n = dynamic viscosity of fluid (poises):g = accelera- tion of gravity (cm/sec): ,o: = density of fluid (g/cm ~); Q, = density of sphere (g/cm~), was derived empi- rically to enable analysis of coarse-grained particles that settle outside the application limits of Stokes' law (Stokes, 185 I: Rubey, 1933). Komar ( 1981) confirmed the accuracy of the Gibbs" equation based upon a theoretical evaluation of Reynolds number and drag coefficient conditions, and introduced a set of correc- tion factors that improve the application limits of the equation. These factors, employed by STAT, are im- portant particularly for substantial particle density deviations from glass spheres; and greatly increase the accuracy of the Gibbs' equation for sediment distribu- tions containing abundant heavy (i.e. heavy mineral) or light (i.e. Foraminifera shell) components. Selec- tion of appropriate particle-density values and selec- tive use of the Komar correction factors is made through menu format. Conversion of size data to Phi units is by Equation (2).

For both Phi and Chi data sets, STAT calculates grouped moment and graphic statistical measures of mean, standard deviation, skewness, and kurtosis (Table I). All inflection points on the Phi and Chi cumtdative curves are computed and the five largest modes are tabulated by weight percent.

Graphic computations [Table 1, Eqs. (!. I)- (!.4)] are based upon a few selected cumulative percent values, and were introduced prior to widespread com- puter access to reduce the lengthy calculations charac- teristic of moment 'statistics. STAT reports graphic statistics (Folk and Ward, 1957) for the purpose of comparison to other similarly calculated data sets. Moment statistical measures utilize the complete 1000 point data set and, therefore, are the preferred statisti- cal method. STAT performs grouped computations [Table I, Eqs. (I.5)-(I.8)1 using the equation forms in McBride (1971). In a comparison of grouped vs non- grouped moment parameters, Swan, Clague, and Luternauer (1979) concluded that particle size errors induced by grouped data calculations were small (< I%), particularly in the situation of grouping in- tervals <0.5 Phi. By using the standard grouped equations, STAT results may be compared to other data generated by similar grouping techniques (such as sieve analysis), if desired, however, STAT allows selection of grouping intervals as small as 0.05 Phi and thus eliminates grouping error.

PLOT program Several selections in plotting options (Appendix 2)

are available to the user from the PLOT menu. The data from DIRT and STAT are read and appropriate scaling factors are calculated. Cumulative data may be presented as a function of time, velocity, Chi, or Phi (Figs. A I-A4). Frequency plots can be plotted as a function of time (the first derivative) or histograms

Qt)(4-5nI" + 0.0087051/:Qf)]g(e~ - el) (3) [ I

of velocity, Chi, or Phi. Velocity histograms are in l-see increments. The user-defined interval selected in the STAT program determines the width of bar scales in histograms of Chi and Phi. Each plot appears first on the screen and, if desired, a hardcopy may be obtained using a graphics printer.

Program modificathm Modification of SEDIDAT software for other

computer systems could range from a minor to major process, depending upon system hardware diffe- rences. The programs are designed for use on IBM PC and compatible equipment. Substantial software modification would be required for use on alternative hardware systems. Constants in the timing (delay) loops in the DIRT program would need redetermi- nation to compensate for CPU speeds different than the IBM PC-XT (see di~ussion of DIRT for details). Graphics commands (GRAPI! X) would change somewhat if a card other than the Hercules Graphics Card in employed. Ten-bit A/D resolution is defin- itely adequate for this type of data acquisition; how- ever 12-bit resolution along with programmable gain could be used effectively to enhance the process. No need currently exists for 14- or 16-bit A/D resolution. Uncompiled BASIC was used in an early version of SEDIDAT, but program execution was slow (over 10min each for STAT and PLOT). Therefore, com- piled BASIC (IBM-BASIC, version 2.00) is used for all SEDIDAT programs.

OPERATIONAL CONSIDERATIONS

The settling tube system and accompanying SEDIDAT software package described here permit accurate analysis of sands in the range of 0--4.0 Phi. Samples finer in size than 4.0 Phi should be analyzed by alternative methods (for example: pipette, X-ray/ light absorption, or laser methods) because of ex- cessive analysis time and problems of turbulent set- tling. SEDIDAT software was verified using density- and size-calibrated National Bureau of Standards (NBS) glass spheres. Calibration samples ranged (in 0.25 Phi increments) from 0.5 to 2.25 Phi and from 3.0 to 4.5 Phi. Settling tube data using SEDIDAT pro- grams agreed well with NBS values in the range 0.5- 2.25 (within + 0.05 Phi), moderately well with values

Page 5: SEDIDAT: A BASIC program for the collection and statistical analysis of particle settling velocity data

Analysis of particle

in the range 3.0-3.5 Phi) (within + 0.2 Phi) and poorly with NBS values in the range 3.5--4,5 Phi (within + 0.4 Phi). Inaccuracies in finer samples result from particle interaction and visible turbulent settling of the finer grains. These problems have been recognized in settling tube analyses (Blatt, Middleton, and Murray, 1980), and reflect problems of sample intro- duction rather than software flaws. Until sample- introduced turbulence is minimized, the practical lower limit for reliable sedimentation results is the sand-silt boundary (4.0 Phi). Factors which may help eliminate these problems might be (I) refined sample introduction mechanisms, or (2) smaller sample size.

Opt imum sample size for SEDIDAT analysis falls between 0.8 and 1.2g. which makes the technique

part icularly useful for applications in which total available sample is small. In our experience, system electronic noise becomes a problem for samples smaller than 0.8 g. Analysis time is variable depending upon selected settling distance and range of particle size. A standard sand run requires < 10min for a settling distance of 140cm. Analyses into the coarse silt range (to 4.5 Phi) require up to 20min per sample.

The ability to analyze small samples in a short amount of time is standard with settling tube hard- ware. The advantages of the S E D I D A T software lie mainly in the flexibility of input parameters and the incorporation of recent modifications (Komar. 198 I) to the velocity equations. SEDIDAT users select among a range of water temperature and particle density variables most appropriate for a variety of natural terrigenous and biogenic samples. Both set- tling velocity and equivalent spherical diameter data are produced; and, equally important, statistical grouping intervals are user-defined. Limitations seem to be mechanical in nature, and are related to tur- bulent settling of the finest particle sizes. Improve- ment in sample introduction and reduction of mini- mum sample size may reduce ultimately these errors to allow reliable analysis of the coarse silt fraction.

A~'knowh,dgme,ts--Financial support for research equip- ment and software development was provided through grants to R. Wright from the University of New Mexico and

settling velocity data 59

Sandia National Laboratories (Award No. 21-0245). We thank Nathan Myers for providing helpful insight into early software ideas. The paper benefited from critical comments by Nathan Myers. John Anderson. and two anonymous reviewers.

REFERENCES

Anderson. J. B.. and Kurtz, D. D., 1979. "RUASA": an automated rapid sediment analyzer: Jour. Sed. Pet.. v. 49, no. 2, p. 625--627.

Blatt. H., Middleton. G.. and Murray, R.. 1980. Origin of sedimentary rocks: Prentice-Hall, Englewood Cliffs, New Jersey. 634 p.

Collias, E. E., Rona. M. R., McManus, D. A.. and Creager. J, S., 1963, Machine processing of geological data: Univ. Washington (Seattle) Tech. Rep. no. 87. 119 p.

Folk. R. L., and Ward, W. C., 1957, Brazos river bar: a study in the significance of grain size parameters: Jour. Sed. Pet., v. 27. no. 1, p. 3-27.

Gibbs. R. J., Matthews, M. D., and Link, D. A., 1971. The relationship between sphere size and settling velocity: Jour. Sed. Pet., v. 41, no. I, p. 7-18.

Kane, W, T., and Hubert, J. F., 1963. FORTRAN program for calculation of grain-size textural parameters on the IBM 1620 computer: Sedimentology. v. 2, no. I. p. 87 90.

Komar, P. D., 1981. The application of Gibbs equation for grain settling velocities other than quartz in water: Jour. Sed. Pet.. v. 51, no. 4, p. 1125 1132.

Krumbcin, W. C., 1934. Size frequency distributions of sedi- ments: Jour. Sed. Pet.. v. 4, no. I, p. 65 -77.

May, J. P., 1981, Chi: A proposed standard parameter fi~r settling tube analysis of sediments: Jour. Sed. Pet., v. 51, no. 2, p. 61)7 610.

McBride, E. F.. 1971, Mathematical treatment of size distri- bution data. in Carver, R. E., ed,, Procedures in sedi- mentary petrology: John Wiley & Sons, New York. p, 109 -128.

McManus, D.A., 1963, A criticism of certain usage of the Phi notation: Jour. Sed. Pet., v. 33, no. 3, p. 670 674.

Rubey, W. W., 1933, Settling velocities of gravel, sand, and silt particles: Am. Jour. Science, v. 225, no. 2, p. 325 -338.

Schlce, J., and Webster. J., 1967, A computer program for grain-size data: Sedimentology. v. 8, no. I, p. 45 53.

Stokes, G. G., 1851. On the effect of internal friction of fluids on the motion of pendulums: Cambridge Philosophical Society Trans., v. 9, no. I. p. 8-106.

Swan, D., Clague, J. J., and Luternauer, J. L.0 1979, Grain- size statistics I1: evaluation of grouped moment mea- sures: Jour. Sed. Pet., v. 49, no. 2. p. 487-500.

5 REM i0 REM 12 REM 15 REM 20 REM 30 REM 40 REM 50 REM 60 REM 70 REM 80 REM 90 REM I00 REM 110 REM 120 REM

A P P E N D I X 1

SEDIDA T Programs

..................... S E D I DAT ........................

. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .

PROGRAMMERS: STEVEN M. THORNBERG AND ROBYN WRIGHT DEPARTMENTS OF CHEMISTRY AND GEOLOGY THE UNIVERSITY OF NEW MEXICO ALBUQUERQUE, NEW MEXICO 87131

DATE CREATED~ NOV. i, 1984

LAST MODIFIEDz MAR. 4, 1987

SEDIDAT DIRECTS THE COLLECTION OF PARTICLE SETTLING VELOCITY

Page 6: SEDIDAT: A BASIC program for the collection and statistical analysis of particle settling velocity data

60 R. WRIGHT and S.M. THORNBERG

130 REM 140 REM 150 REM 160 REM 180 REM 184 REM 185 REM 186 REM 187 REM 188 REM 190 REM 200 REM 210 REM 220 REM 230 REM 240 REM 250 260 270 280 REM 300 PRINT 305 PRINT 310 PRINT 315 PRINT 320 PRINT 325 PRINT 330 PRINT 335 PRINT 340 PRINT 350 PRINT 355 PRINT 357 PRINT 360 380 390 400 410 415 420 1100 CLS 1105 END 1500 CLS 1510 PRINT 1520 PRINT 1525 PRINT 1526 PRINT 1530 PRINT 1540 PRINT 1545 PRINT 1550 PRINT 1560 PRINT 1570 PRINT 1573 PRINT 1575 PRINT 1576 PRINT 1577 PRINT 1579 PRINT

DATA AND CALCULATES GRAPHIC AND MOMENT STATISTICS FOR SETTLING VELOCITY AND EQUIVALENT SPHERICAL DIAMETER. CUMULATIVE AND INDIVIDUAL WEIGHT PERCENT PLOTS MAY BE DRAWN FOR RAW TIME DATA, SETTLING VELOCITY, CHI, AND PHI VALUES.

DATA COLLECTION OCCURS IN PROGRAM "DIRT'. PROGRAM "STAT" PERFORMS ALL STATISTICAL ANALYSES. GRAPHICS ARE PRODUCED IN PROGRAM "PLOT'. TRANSFER FROM ONE PROGRAM TO ANOTHER WITHIN SEDIDAT OCCURS THROUGH THE "MENU" PROGRAM.

IN ITS PRESENT FORMAT, SEDIDAT IS DESIGNED FOR USE WITH THE IBM PC-XT MICROCOMPUTER EQUIPPED WITH A HERCULES MONOCHROME GRAPHICS CARD, HERCULES "GRAPH X" SOFTWARE, AND A 10-BIT DATA TRANSLATION A/D CONVERTER.

REM . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . - . . . . . . . . . . . . . . . . . . .

REM .......................... MENU ............................. REM . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .

SPC(20);'SEDIDAT SEDIMENTATION ANALYSIS PROGRAM":PRINT SPC(18);'UNIVERSITY OF NEW MEXICO - DEPT.OF GEOLOGY":PRINT:PRINT SPC(10); "D - Loads DIRT for collection of settling velocity data"

SPC(10); "S - Loads STAT to calculate statistics for a DIRT file"

SPC(10); "P - Loads PLOT to construct graphics for a STAT file"

SPC(IO)I "H - Loads HELP to see description of each program"

SPC(10)~ "x - EXIT PROGRAM"

PRINT:BEEP:INPUT "ENTER YOUR CHOICE: ",PN$ IF PN$'"D" OR PN$-'d" THEN CHAIN "C:DIRT.EXE" IF PN$'"S" OR PN$-'S" THEN CHAIN "C:STAT. EXE" IF PN$-"P" OR PN$"'p" THEN CHAIN "CzPLOT.EXE" IF PN$'"H" OR PN$"'h ~ THEN GOTO 1500 IF PN$-"X" OR PN$""x" THEN GOTO 1100 GOTO 300

SPC(22) ; "SEDIDAT PROGRAM DESCRIPTIONS"

SPC(30); "DIRT PROGRAM"

SPC(10) SPC(10) SPC(10) SPC(10) SPC(10) SPC(10)

SPC(IO) SPC(IO) SPC(IO)

~'DIRT is the first SEDIDAT program to be run, and" ;'collects an initial settling velocity data set." I'DIRT directs the operation of the settling tube and" ~"prompts the user thru the steps of sample naming, ;'parameter input, and sample introduction. DIRT" ;'stores data in a .DAT file for later access by STAT."

j'Unfamillar users should consult the lab guide" ;"for information on the electronic start-up of" ;'the settling tube and on proper sample labels.

1580 PRINT:BEEP:PRINT "PRESS ANY KEY TO CONTINUE" 1582 A$'INKEY$: IF AS''" THEN 1582 1585 CLS 1588 PRINT SPC(30); "STAT PROGRAM" 1589 PRINT 1590 PRINT SPC(10);"STAT performs grouped moment and graphic" 1600 PRINT SPC(10);'statistlcs on data collected in DIRT and" 1610 PRINT SPC(10);"stored in a .DAT file. STAT prompts the user" 1620 PRINT SPC(10);'for the label of a pre-existing .DAT file." 1630 PRINT SPC(10);'STAT WILL NOT RUN unless a data file has" 1631 PRINT SPC(10)1"already been created in DIRT." 1635 PRINT 1640 PRINT SPC(10)~"STAT calculates settling velocity {om/sec}" 1650 PRINT SPC(10)~"and CHI values from original weight/tlme data." 1660 PRINT SPC(10)~'Equivalent spherical diameter (in PHI units)" 1670 PRINT SPC(10);"is computed from Gibbs equation as modified" 1675 PRINT SPC(10);"for various densities by Komar corrections." 1680 PRINT SPC(10);'Output includes tables of CHI and PHI values" 1690 PRINT SPC(10)~'In user-selected intervals, a tabulated summary" 1700 PRINT SPC(10);'of moment and graphic statistics, and a tabulated" 1710 PRINT SPC(10)l"summary of dominant PHI and CHI modes. Info Is" 1720 PRINT SPC(10) l'stored in a .STS file with the same label as" 1722 PRINT SPC(10);"the original .DAT file. For more info, see" 1723 PRINT SPC(10);'the laboratory guide." 1725 PRINT 1730 PRINT:BEEP:PRINT "PRESS ANY KEY TO CONTINUE" 1735 A$-INKEY$: IF AS-'" THEN 1735

Page 7: SEDIDAT: A BASIC program for the collection and statistical analysis of particle settling velocity data

Analysis of particle settling velocity data

1740 CLS 1745 PRINT SPC(30); "PLOT PROGRAM" 1747 PRINT 1750 PRINT SPC(10)~'PLOT uses a °DAT file (generated in DIRT) as" 1760 PRINT SPC(10);'input and reads the corresponding .STS file" 1770 PRINT SPC(10);'asslgned in STAT. PLOT REQUIRES both a .DAT" 1775 PRINT SPC(10};'and .STS file to be present. Menus a11ow the" 1780 PRINT SPC(10);'user to select screen and/or hardcopy plots of" 1790 PRINT SPC(10)~'raw time, settling velocity, CHI and PHI data" 1795 PRINT SPC(10);'in cumulative and histogram format. See" 1800 PRINT SPC(10);'laboratory user's guide for more information." 1805 PRINT 1810 PRINT:BEEP:PRINT "PRESS ANY KEY TO CONTINUE" 1820 A$*INKEY$: IF AS="" THEN 1820 1825 CLS 1830 GOTO 300

i REM ................................................................. 2 REM ........................ D I R T ............................. 3 REM ................................................................. 4 REM I0 REM DIRT.BAS - Compiled version is DIRT.EXE 20 REM Data acquisition program 30 REM This program uses random access disk file for'output 40 REM 50 KEY OFF 60 CLS 70 GOTO 120 80 PRINT "Print error[ Turn on the printer. (Press return to continue)" 90 FOR ILl TO 5:BEEP:FOR J'l TO 200:DUM=3.4*5:NEXT J:NEXT I I00 INPUT ANS$ 110 GOTO 1340 120 DIM V(1000) 130 DIM N$(8) 140 DEFINT A-U,W-Z 143 REM ............................................ 145 REM Constants used by Data Translation A/D board 150 8A-&H2EC 'Base address 160 DR-BA 'Data register address 170 CR-BA+I 'Command register address 180 SR=CR 'Status register address 190 CW=&H4 'Command wait 200 WW-&H2 'Write wait 210 RW=&H5 'Read wait 220 CCLOCK=&H3 230 CC-&H1 240 CA-&HC 250 CS-&HF 'Clock stop 260 BR=2.5 270 BF=I024 280 ADG-0 290 P-20000[ 'Set clock period 300 CSAD'& HD 310 CRAD-&HE 320 BC'I6 330 NN'I000 'Number of points 340 D$-DATE$ 350 D$=MID$(D$,I,2}+MID$(D$,4,2)+MID$(D$,7,4) 360 PRINT SPC(15)I=SETTLING TUBE:DATA ACQUISITION PROGRAM':PRINT 365 PRINT SPC(13)I'UNIVERSITY OF NEW MEXICO - DEPT. OF GEOLOGY":PRINT 370 PRINT:INPUT "Put your dat disk in drive A and press return. ",AN$ 380 PRINT:INPUT "Enter system number for data output (e.g., A:T00001.DAT) ",F$ 390 ON ERROR GOTO 440 400 OPEN F$ FOR INPUT AS #i 410 PRINT:BEEP~INPUT "FILE ALREADY EXISTS. DO YOU WISH TO OVERPRINT? (Y OR N)";P Z$

420 IF FE$-"Y" OR FE$-"y" GOTO 440 430 GOTO 380 440 CLOSE 450 PRINT:INPUT "Enter the sample name: ",SN$ 460 SNI$-MID$(SN$,I,8) 470 SN2$-MID$(SN$,9,8} 480 SN3$-MID$(SN$,I7,8) 500 OPEN F$ AS |I LEN-8 510 PRINT:INPUT "Enter the settling distance (in cm.) ",SSS 520 IF SSS<I40 OR SSS>I50 THEN PRINT:BEEP:PRINT "ADJUST PAN TO PROPER LENGTH! (i 40-150 cm)':GOTO 510 530 WT-22 540 PRINT:INPOT "Enter the water temp between 15 and 35 degrees C <DEFAULT IS 22 >. ",W 550 IF W<>0 THEN WT-W 560 IF WT<15 OR WT>35 THEN 540 570 WT-INT(WT+.5)

61

Page 8: SEDIDAT: A BASIC program for the collection and statistical analysis of particle settling velocity data

62 R. WalGl-rr and S.M. THOa.~SEaG

580 590 600 610 620 630 640 650 660 670 680 690 700 705 706 710 720 730 740 750 760 770 780 790 800 810 820 830 840 850 860 870 880 890 900 910 920 930 940 950 960 970 980 990 995 996 1000 1010 1020 1030 1040 1050 1060 I070 1080 c." 1090 1100 1110 1120 1130 1140 1150 1160 1170 1180 1190 1200 1210 1220 1230 1240 1250 1260 !270 1281 1282 1283 1285 1286 1287 1289 1290 1300

ADS=0 'A/D channel number ADE=ADS PRINT:INPUT "Enter the total time foe the run (in minutes) ",TT TTmTT*60 N%-(TT-421)/.855 PRINT :INPUT "Press RETURN to start the data acquisitlon.",AN$ FOR I=l TO 3:FOR J-i TO 1200:DUMMY=J*3o4:NEXT J:BEEP:NEXT I PRINT:PRINT "Data collection underway.°." TI$=TIME$ 'Store starting time FOR J=l TO NN FOR K=I TO N% 'Pause loop DUMMY=K*3.4 NEXT K REM ....................................... REM Set up A/D to read data OUT CR,CS GOSUB 1520 TEMP-INP (DR) WAIT SR,CW OUT CR,CC GOSUB 1520 WAIT SR,CW OUT CR,CA GOSUB 1520 WAIT SR,WW,WW OUT DR,ADG GOSUB 1520 WAIT SR,WW,WW OUT DR,ADS GOSUB 1520 WAIT SR,RW L-INP(DR) GOSUB 1520 WAIT SR,RW H=INP(DR) GOSUB 1520 WAIT SR,CW S-INP(SR) IF J-1 THEN GOTO 960 IF(S AND &HS0) THEN GOTO 1500 V(J}-H*256+L 'Store data read in array DV# PRINT J,V(J) NEXT J T2$-TIHE$ 'Store ending time REM .......................................

REM Convert time to seconds HI-VAL(MID$(TI$,I,I) *I0+VAL(MID$(TI$,2,1}) H2-VAL(MID$(T2$,I,1) *I0+VAL(MID$(T2$,2,1)) MI-VAL(MID$(TI$,4,1) *I0+VAL(MID$(TI$,5,1)) H2-VAL(MID$(T2$,4,1) tI0+VAL(MID$(T2$,5,1)) SI=VAL(MID$(TI$,7,1| *I0+VAL(MID$(TI$,8,1)) S2-VAL(MID$(T2$,7,1) *10+VAL(MID$(T2$,8,1)) IF HI<>H2 THEN M2=M2+60 'If the hour changed, .add 60 mln to the min TSEC-(M2-M1)*60+S2-SI PRINT:PRINT "Total elapsed time- "I:PRINT.USING "#######°";TSEC;:PRINT " se

PRINT:PRINT "Storing Data on disk..." BEEP FIELD #1,4 AS N$ LSET N$=MKS$(NN) 'Store number of points on dlsk PUT #I,i FIELD #1,6 AS N$ LSET N$=MKS$(SSS) 'Store settling distance PUT #1,2 LSET N$-MKS$(TSEC) 'Store total time on disk PUT #1,3 FIELD #1,8 AS N$ LSET N$=D$ 'Store experiment date PUT #1,4 FIELD #1,4 AS N$ LSET N$=HKS$(WT) 'Store water temp on disk PUT #1,5 FIELD #1,8 AS N$ LSET N$-SNI$ 'Store sample name PUT #1,6 FIELD #1,8 AS N$ LSET N$-SN2$ PUT #1,7 FIELD #1,8 AS N$ LSET N$-SN3$ PUT #1,8 NP-NN+8 FIELD #1,8 AS AS FOR I-9 TO NP:LSET A$=MKS$(V(I-8)):PUT #1,I:NEXT 'Store data on disk

Page 9: SEDIDAT: A BASIC program for the collection and statistical analysis of particle settling velocity data

Anal>sis of particle settling ',elocity data 63

1310 CLDSE #I 1320 PRINT:PRINT'Data Storage Completed." 1330 ON ERROR GOTO 80 1340 LPRINT CRR$(12) 1350 LPRINT CHR$(27)~CHR$(15); 1360 LPRINT SPC(45);'DATA ACQUISITION':LPRINT 1370 LPRINT SPC(45);"Date: ";DATES~:LPRINT:LPRINT 1380 LPRINT SPC(15);'File: ";FS;SPC(10);"SampIe name: ";SN$;:LPRINT:LPRINT 1390 LPRINT SPC(15);"Settling distance: ";SSS;" cm." 1400 LPRINT SPC(15);'Water temperature: ";WT;" degrees" 1410 LPRINT SPC(15);"Number of data points: ";NN

1420 PRINT:PRINT "Job sta[ted: ";TIS 1430 LPRINT:LPRINT SPC(15);"Job started: ";TI$ 1440 PRINT:PRINT "Job ended: "~T2S 1450 LPRINT:LPRINT SPC(15);"Job ended: ";T25 1460 LPRINT:LPRINT SPC(15);"Total elapsed time= ";:LPRINT USING "#######.';TSEC; :LPRINT " see." 1470 LPRINT:LPRINT SPC(15);"Total elapsed time = ";:LPRINT USING "###.##";TSEC/60 ;:LPRINT " min." 1480 LPRINT CHR$(12) 1490 PRINT "Job complete.":GOTO 1510 1500 BEEP:PRINT:PRINT'ERRORII|A/D ERROR.':PRINT 1510 CLS 1512 CHAIN =C:SEDIDAT. EXE" 1514 END 1515 REM ...................................... 1516 REM Delay loop to let A/D register last command sent 1520 FOR JJ - 1 TO 50: NEXT JJ 1530 RETURN 2 REM ................................................................ 3 REM ...................... S T A T ............................. 4 REM ................................................................ i0 REM STAT.BAS - Compiled version is STAT.EXE 12 REM For data collected using DIRT.EXE 20 CLS 30 KEY OFF 40 ON ERROR GOTO 60 50 GOTO 130 60 IF ERR-27 GOTO 90 70 PRINT "Error #";ERR;" was encountered" 80 END 90 CLS:LOCATE 12,20,0:PRINT "TURN ON THE PRINTERZI" I00 BEEP:LOCATE 24,10,0:PRINT "PRESS ANY KEY TO CONTINUE.'; II0 A$-INKEY$:IF AS-"" THEN II0 120 PRINT:GOTO 20 130 ON ERROR GOTO 0 140 LPRINT:LPRINT 150 WIDTH "LPTI:",I30 'Set printer width to 130 160 LPRINT CHRS(27);"C";CHR$(66); 'Set form length to 66 lines 170 LPRINT CHRS(27);CHR$(15)I 'Set compressed print mode 180 LPRINT CHRS(27);CNR$(108);CHR$(5) 'Set left margin at 5 190 LPRINT CHR$(27)'Q";CHR$(130) 'Set right margin at 130 200 LPRINT CHR$(27);"O'; 210 DIM RD(5),RS(5) 220 DIM N$(8) 230 DATA 1.,2.30,1.046,1.50,.9859,2.65,.984,2.71,.9644,3.45 240 FOR I-I TO 5 250 READ RD(1),RS(I) 260 NEXT 270 CI-.055804 'ist const, in Gibbs eq. 280 CC2-.003114 '2nd 290 C3-4.5 '3rd 300 C4m8.705001E-03 '4th 310 G-979.2098 'Acceleration of gravity 320 L2-LOG(2) 330 D$-DATE$ 340 PRINT SPC(19);"SEDIDAT STATISTICS PROGRAM":PRINT 345 PRINT SPC(14);"UNIVERSITY OF NEW MEXICO - DEPT. OF GEOLOGY" 350 PRINT:PRINT 360 DIM F$(15) 370 INPUT "Enter the data file system numbec (ie. A:T00349.DAT)";F$ 380 OPEN F$ AS |I LEN-8 390 FIELD #i,4 AS N$ 400 GET #I,I 410 N-CVS(N$) 'Number of data points 420 IF N=0 GOTO 430 ELSE 470 430 CLOSE 440 PRINT:BEEP:PRINT "FILE DOES NOT EXIST! TYPE (X) TO EXIT PROGRAM, ANY KEY TO RESTART. " 450 AS-INPUTS(1) 460 IF A$-"X" OR AS-"x" GOTO 5200 ELSE 370 470 FIELD #i,6 AS N$ 480 GET #1,2

C~GZO 14-i-Z

Page 10: SEDIDAT: A BASIC program for the collection and statistical analysis of particle settling velocity data

64 R. ~VRIGh rr and S.M. THORNBERG

490 L-CVS(N$) 500 GET #1,3 510 E-CVS{N$) 520 FIELD #1,B AS N$ 530 GET #1,4 540 DI$-N$ 550 FIELD #1,4 AS N$ 560 GET #1,5 570 WT=CVS(N$) 580 FIELD #1,8 AS N$ 590 GET #1,6 600 SNI$=N$ 602 FIELD #1,8 AS N$ 603 GET #1,7 604 SN2$=N$ 605 FIELD #1,8 AS N$ 606 GET #1,8 607 SN3$=N$ 609 SN$=SNI$+SN2$+SN3$ 610 620 630 0),PHIX(100),DD(1000) 640 FIELD #1,8 AS AS

'Settling distance

'Total time elapsed

'Experiment date

'water temp

'Sample name

SC-E/N 'X-axis time scale PRINT:PRINT"Calculations in progress..." DIM DV(IOOO),F(IOOO),FI(IOOO),PP(250),ANS(250),CHIDV(IOO),PHIDV(IOO),CHIX(IO

650 FOR I-I TO N 660 GET #1,1+8 670 DV(I)-CVS(AS) 680 NEXT 690 CLOSE 700 J-INT(4/SC) 710 FOR I-i TO J:DV(I)-DV(J+I):NEXT I 720 REM PRINT "J'';J 730 IF N<50 THEN GOTO 750 740 GOSUB 5230 750 NM-N-I 760 DMX-DV(1) 770 DMN-DMX 780 FOR I-2 TO N 790 IF DV(I)>DMX THEN DMX-DV(I) 800 IF DV(1)<DMN THEN DMN-DV(1) 810 NEXT 820 M~XPCNT'I00

'Read data

'Set all data before the Jth point to the 'value of the J+Ith point.

'Smooth data with running average

'Find max and mln

830 DMX-(DMX-DMN)/MAXPCNT 840 FOR I - I TO N:DV(I)-(DV(I)-DMN)/DMX:NEXT 'Scal ing to 0-I00% 850 CLS:PRINT:PRINT SPC(30);"GRAIN SIZE CONVERSION OPTIONS':PRINT:PRINT 860 PRINT SPC(20);"I - Straight GIBBS equation for GLASS SPHERES (2.30 g/cm3)" 870 PRINT SPC(20);J2 - Komar (1981) correction for FORAM TESTS (1.5 g/cm3)" 880 PRINT SPC(20);"3 - Komar (1981) correction for QUARTZ (2.65 g/cm3)" 890 PRINT SPC(20);°4 - Komar (1981) correction for CALCITE (2.71 g/cm3)" 900 PRINT SPC(20);'5 - Komar (1981) correction for HEAVY MINS (3.45 g/cm3)" 910 H-3 920 PRINT:BEEP:PRINT "Enter your choice <DEFAULT IS 3>. 930 A$-INKEY$:IF AS''" THEN 930 940 IF AS<'0" OR A$>"5" THEN HD~3:GOTO 980 950 HD-VAL(A$) 960 IF HD<0 OR HD>5 THEN GOTO 850 970 IF HD<>0 THEN H-HD:GOTO 980 980 IF (WT>I4) AND (WT<I7) THEN pF-.9990001:NN-.011 'Assign fluid density and

IF (WT>I6) AND (WT<22) THEN PF-.998:NN=.01 'Dynamic viscosity 990 1000 IF (WT>21) AND (WT<26) THEN pF-.997:NN-8.999999E-03 1010 IF (WT>25) AND (WT<31) THEN pF-.9960001:NN-8.000001E-03 1020 IF (WT>30) AND (WT<36} THEN pF-.9950001:NN-.007 1030 PS-RS(H) 1040 PRINT "Enter average particle density <DEFAULT IS ";PS;"g/cm3>

INPUT PSD IF PSD>0 THEN PS'PSD GP-G*(PS-PF) A-RD(H) CLS:LOCATE 24,1,0:PRINT "Calculations in progress...'; REM AVERAGE, STANDARD DEVIATION, AND MEDIAN ROUTINE NM-N-I SC2"2 FOR I'2 TO NM F(I)-(DV(I+I)-DV(I-I))/(SC2) NEXT F(1)-(DV(2)-DV(1))/SC2 F(N)-(DV(N)-DV(N-I))/SC2 CLS:LOCATE 24,1:PRINT "Calculations of the mode(s) in progress... FOR I'2 TO NM FI(1)-(F(1)-F(I-I))/SC NEXT NNMtNM-I FOR I'2 TO NNM IF FI(1)<0 THEN 1580

1050 1060 1070 1080 1090 1100 1110 1120 1130 1140 1150 1160 1170 1470 1480 1490 1500 1510 1520 1530

Page 11: SEDIDAT: A BASIC program for the collection and statistical analysis of particle settling velocity data

Analysis o f particle settling velocity data

1540 IF FI(I)*FI(I÷2)>-0 THEN 1580 1550 IF F(I+I)<.I THEN 1580 1560 ANS(K)-I 1570 K-K÷I 1580 NEXT 1590 K-K-I 1600 KM-K-1 1610 REM . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 1620 REM Sort ~outine 1630 FOR I-i TO KM 1640 IF ABS(ANS(1)-ANS(I+I))>I0 THEN GOTO 1730 1650 IF F(ANS(I))>=F(ANS(I+I)) THEN GOTO 1670 1660 ANS(I)-ANS(I÷I) 1670 FOR J-I+l TO KM 1680 ANS(J)=ANS(J+I) 1690 NEXT J 1700 K=K-I 1710 KM-KM-I 1720 GOTO 1630 1730 NEXT I 1740 FOR I-i TO K 1750 pP(I)-F(ANS(I)) 1760 NEXT 1770 FOR I=l TO KM 1780 FOR J-I+l TO K 1790 IF PP(1)>PP(J) THEN GOTO 1860 1800 P-PP(I) 1810 PP(I)-PP(J) 1820 PP(J)-P 1830 AI-ANS(1) 1840 ANS(I)-ANS(J) 1850 ANS(J)-AI 1860 NEXT J 1870 NEXT I 1880 REM ....................................... 1890 REM calculate CHI file 1900 CLS:BEEP:LOCATE 10,10:PRINT "How many intervals do you want per unit CHI?<D EFAULT-4> "; 1910 INPUT IVALS 1920 IF IVALS<-0 THEN IVALS-4 1925 REM ..................................... 1926 REM Calculate individual and cumulative CHI percentages 1930 CLS:LOCATE 24,1:PRINT "Calculating CHI file..." 1940 LPRINT:LPRINT:LPRINT 1950 LPRINT "File: ";F$;SPC(40);"Date: ";D$ 1960 LPRINT "Sample Name: W;SN$ 1965 LPRINT 1970 LPRINT S P C ( 2 5 ) ; " * * * * * * * * * * * * * * * CHI * * * * * * * * * * * * * * * * * * * " * * * * * * * 1980 LPRINT " "; 1990 LPRINT " CUMULATIVE WEIGHT I"; 2000 LPRINT " "1 2010 LPRINT" INDIVIDUAL WEIGHT %":LPRINT 2020 LFRINT " "1 2030 LPRINT " CHI TIME(sec) % VALUE"; 2040 LPRINT " Range %VALUE":LPRINT 2050 M-N:GOSUB 5440:CHMAX-C 2060 IMAX%-CHMAXtIVALS 2070 NCHI'IMAX% 2080 FOR I'l TO IMAX% 2090 ICHI-(I-I)/IVALS 2100 CHIX(I)'ICHI 2110 GOSU8 5490 2120 MI%-M:M2%-MI%+I:FR-M-MI% 2130 CHIDV(I)-FR*DV(MI%)+(I-FR)*DV(M2%) 2140 CHIDV(I)-INT(CHIDV(I)*I0+.5)/10 2150 IF I-i THEN GOTO 2170 2160 IF (CHIDV(I)-CIiIDV(I-I))<0 THEN CHIDV(I)-CHIDV(I-I) 2170 LPRINT " "; 2180 LPRINT USING "#||.#|";ICHI;:LPRINT SPC(5); 2190 LPRINT USING "|#||#.|";M*SC;:LPRINT SPC(10); 2200 LPRINT USING "||##.|";CHIDV(I); 2210 IF I-I THEN LPRINT:GOTO 2270 2220 DIF-CHIDV(I)-CHIDV(I-I) 2230 LPRINT " * "; 2240 LPRINT USING "|||.#|";(I-2)/IVALS;:LPRINT " to "; 2250 LPRINT USING "|##.|#';(I-I)/IVALS;:LPRINT " "; 2260 LPRINT USING "#|##.#';DIF 2270 NEXT I 2280 REM ...................................... 2290 REM calculate PHI file 2300 CLS:BEEP:LOCATE 10,10:PRINT "How many divisions do you want per unit PHI?<D EFAULT-4> "; 2310 INPUT PVALS 2320 IF PVALS <- 0 THEN PVALSs4

65

Page 12: SEDIDAT: A BASIC program for the collection and statistical analysis of particle settling velocity data

66

2325 2326 2330 2340 2350 2360 2370 2380 2390 2400 2405 2410 2420 2430 2440 2450 2460 2470 2480 2490 2500 2510 2520 2530 2540 2550 2560 2570 2580 2590 2600 2610 2620 2630 2640 2650 2660 2670 2680 2690 2700 2710 2720 2730 2740 2750 2760 2770 2780 2790 2800 2810 2820 2830 2840 2850 2860 2870 2880 2885 2886 2890 2900 2910 2920 2930 2940 2950 2960 2970 2980 2990 3000 3010 3020 3030 3040 3050 3060 3070 3080 3090 3100 3110

R. WRIGn-r and S.M. THORNBERG

REM ..... - . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .

REM Calculate individual and cumulative PHI percentages CLS:LOCATE 24,1:PRINT "Calculating PHI file..." R=N:GOSUB 5340:PHMAX-PHI PMAXq-pHMA~*PVALS + PVALS NPHI=PMAX% LPRINT CHR$(12); LPRINT:LPRINT:LPRINT LPRINT "File: ";F$;SPC(40)I'Date: ";D$ LPRINT "Sample Name: ";SN$ LPRINT LPRINT SPC(25);'*************** PHI *************************** LPRINT " CUMULATIVE WEIGHT % "; LPRINT " "; LPRINT" INDIVIDUAL WEIGHT %':LPRINT LPRINT " "; LPRINT " PHI TIME(sec) % VALUE"; LPRINT " Range %VALUE':LPRINT ML-I FOR I-I TO PMAX% IPHI-(I-PVALS-I)/PVALS PHIX(I)mIPHI FOR M-ML TO 2000 GOSUB 5340 IF PHI>IPHI GOTO 2560 NEXT M MS%-M-I:MEq-M ML=M-I FOR M'MSq TO MEq STEP .01 GOSU8 5340 IF PHI>#PHI GOTO 2620 NEXT N FR=M-HS% pffIDV(I)'FR*DV(MSq)+(I-FR)*DV(ME%) PHIDV(1)'INT(PHIDV(I)*I0÷.5)/10 IF I'1 THEN GOTO 2670 IF (PHIDV(I)-PNIDV(I-1))<0 THEN PHIDV(I)'PHIDV(I-I) LPRINT * "~ LPRINT USING "|||.|#";PHII:LPRINT SPC(5); LPRINT USING "|||||.#";M*SCItLPRINT SPC(5); LPRINT USING "#|@#.|';PffIDV(1); IF I'1 THEN LPRINTzGOTO 2770 LPRINT " * "; DIF-PHIDV(I)-PHIDV(I-I) LPRINT USING "||#.##*/(I-PVALS-2)/PVALS;zLPRINT " to "; LPRINT USING "|#|.|#";(I-PVALS-I)/PVALS;zLPRIN* " *; LPRINT USING "##|#.#";DIF NEXT I DIM F25(15) FLaLEN(F$) FOR I'i TO FL-3 F2$(I)'MID$(F$,I,I) NEXT F2$(FL-2)''S" F2$(FL-I)''T" F2$(FL)''S" FOR I'l TO FL F2$'F2$+F2$(I) NEXT REM ...................................... REM Stoce data on disk CLSsLOCATE 24,1~PRINT"Storlng data in file: ";F25 OPEN F25 AS |2 LEN-8 FIELD #2,8 AS N$ LSET N$-MKS$(NCHI) PUT #2,1 LSET N$=MKS$(NPHI) PUT #2,2 FIELD #2,8 AS AS FOR I-I TO N LSET A$-MKS$(DV(I)) PUT #2,I+2 NEXT OF'N+2 NCHI2"NCHI*2 FOR J'i TO NCHI2 STEP 2 JS-{J+I)/2 LSET A$-MKS$(CHIX(JS)) PUT #2,J+OF LSET A$-MKS$(CHIDV(JS)} PUT #2,J+OF+I NEXT OFmOF+NCNI2 NPHI2-NPHI*2

Page 13: SEDIDAT: A BASIC program for the collection and statistical analysis of particle settling velocity data

3120 3130 3140 3150 3160 3170 3180 3190 3200 3210 3220 3230 3240 3250 3260 3270 3280 3290 3300 3310 3320 3330 3340 3350 3360 3370 3380 3390 3400 3410 3420 3430 3440 3450 3460 3470 3480 3490 3500 3510 3520 3530 3540 3545 3550 3560 3570 3580 3590 3600 3610 3620 3630 3640 3650 3660 3670 3680 3690 3700 3710 3720 3730 3740 3750 3760 3770 3780

3785 3786 3790 3800 3810 3820 3830 3840 3850 3860 3870 3880 3890 3900 3910 3920

Analysis of particle settling velocity data

FOR I-I TO NPHI2 STEP 2 IS-(I+I)/2 LSET A$-MKS$(PHIX(IS)) PUT #2,I+OP LSET A$-MKS$(PHIDV(IS)} PUT |2,I+OF+I NEXT OF-OF+NPHI2 LSET A$-MKS$(GP) PUT #2,OF+I LSET A$=MKS$(A) PUT %2,OF+2 LSET A$=MKS$(PF) PUT #2,OF+3 LSET A$=MKS$(NN) PUT |2,OF÷4 CLOSE #2 REM ....................................... REM Calculate moment statistics for CHI CSUM-0:C2SUM=0:C3SUM-0:C4SUMa0:FSUM-0 FOR 1-2 TO NCHI FREQ-CHIDV(I)-CHIDV(I-I):MID-(CHIX(1)+CHIX(I-I))/2 IF FREQ<0 THEN FREQ=0 FSUM-FSUM+FREQ PROD-MID CSUM'CSUM+PROD*FREQ PROD-PROD*MID C2SUM-C2SUM+PROD*FREQ PROD=PROD*MID C3SDM-C3SUM+PROD*FREQ PROD-PROD*MID C4SUM-C4SUM+PROD*FREQ NEXT XBAR-CSUM/FSUM XBAR2-XBAR*XBAR XBAR3.XBAR2*XBAR XBAR4-XBAR2*XBAR2 USIG2-C2SUM/FSUM-XBAR2 IF USIG2<0 THEN USIG2-0:UCHISTD-0:UCHISKW-0:UCHIKUR-0:GOTO 3550 UCHISTD-SQR(USIG2} UCHISKW-((C3SUM-3*XBAR*C2SUM)/PSUM+2*XBAR3)/(UCHISTD*USIG2) UCHIKUR-((C4SUM-4*XBAR*C3SUM+6*XBAR2*C2SUM)/PSUM-3*XBAR4)/(USIG2*USIG2) REM ........................................ REM Calculate moment statistics for PHI CXBAR-XBAR CSUM-0:C2SUM-0:C3SUM-0~C4SUM-0:FSUM-0 FOR I-2 TO NPHI FREQ-PHIDV(I)-PHIDV(I-I):MID-(PHIX(I)+PHIX(I-I))/2 IF PREQ<0 THEN PREQ-0 FSUM-FSUM+FREQ PROD-MID CSUM-CSUM+PROD*FREQ PROD-PROD*MID C2SUM.C2SUM+PROD*PREQ PROD=PROD*MID C3SUM-C3SUM+PROD*FREQ PROD-PROD*MID C4SUM-C4SUM+PROD*FREQ NEXT XBAR-CSUM/PSUM XBAR2-XBAR*XBAR XBAR3-XBAR2*XBAR XBAR4-XBAR2*XBAR2 USIG2-C2SUM/FSUM-XBAR2 IF USIG2<0 THEN USIG2-0:UPHISTD-0zUPHISKW-0:UPHIKUR-0:GOTO 4080 UPHISTD-SQR(USIG2) UPHISKW.((C3SUM-3*XBAR*C2SUM)/FSUM+2*XBAR3)/(UPHISTD*USIG2) UPHIKUR.((C4SUM-4*XBAR*C3SUM+6*XBAR2*C2SUM)/FSUM-3*XBAR4)/(USIG2*USIG2} REM ...................................... REM Calculate graphic statistics for PHI and CHI PXBAR-XBAR FOR I-i TO N IF DV(1)>5 GOTO 3830 NEXT SLOPE-(DV(I)-DV(I-I}}:INTCPT-DV(I)-SLOPE*I M-(5-INTCPT)/SLOPE GOSUB 5340:GOSUB 5440 PHI5-PHI:CHI5-C:IST-I FOR I-IST TO N IF DV(I)>I0 GOTO 3900 NEXT SLOPE-(DV(I)-DV(I-I))~INTCPT-DV(1)-SLOPE*I M-(10-INTCPT)/SLOPE GOSUB 5340:GOSUB 5440

67

Page 14: SEDIDAT: A BASIC program for the collection and statistical analysis of particle settling velocity data

68 R. WRIGHT and S.M. THORNBEI~G

3930 3940 3950 3960 3970 3980 3990 4000 4010 4020 4030 4040 4050 4060 4070 4080 4090 4100 4110 4120 4130 4140 4150 4160 4170 4180 4190 4200 4210 4220 4230 4240 4250 4260 4270 4280 4290 4300 4310 4320 4330 4340 4350 4360 4370 4380 4390 4400 4410 4420 4430 4440 4450 4460

PHII0-PHI:CHII0-C:IST-I FOR IsIST TO N IF DV(I)>I6 GOTO 3970 NEXT SLOPE'(DV(I)-DV(I-I)):INTCPT-DV(I)-SLOPE*I M"(16-INTCPT)/SLOPE GOSUB 5340:GOSUB 5440 PHII6"PHI:CHII6=C:IST=I FOR I=IST TO N IF DV(I)>25 GOTO 4040 NEXT SLOPE=(DV(I)-DV(I-I)):INTCPTsDV(I)-SLOPE*I M=(25-INTCPT)/SLOPE GOSUB 5340:GOSUB 5440 PHI25=PHI:CHI25=C:IST=I FOR I=IST TO N IF DV(1)>50 GOTO 4110 NEXT SLOPE=(DV(I)-DV(I-I)):INTCPT=DV(I)-SLOPE*I M=(50-INTCPT)/SLOPE GOSUB 5340:GOSUB 5440 PHI50=PHI:CHI50=C:IST=I FOR I=IST TO N IF DV(I)>75 GOTO 4180 NEXT SLOPE=(DV(I)-DV(I-I)):INTCPT=DV(I)-SLOPE*I M=(75-INTCPT)/SLOPE GOSUB 5340:GOSUB 5440 PHI75"PHI:CHI75=C:IST=I FOR I=IST TO N IF DV(I)>84 GOTO 4250 NEXT SLOPE=(DV(I)-DV(I-I)):INTCPT-PV(I)-SLOPE*I M-(84-INTCPT)/SLOPE GOSUB 5340:GOSUB 5440 PHI84-PHI:CHI84-C:IST-I FOR I'IST TO N IF DV(I)>90 GOTO 4320 NEXT SLOPE-(DV(1)-DV(I-I)):INTCPT-DV(I)-SLOPEQI M-(90-INTCPT)/SLOPE GOSUB 5]40:GOHUB 5440 PHI90-PiII:CHI90~C:I~;T-I FOR I - IST TO N IF DV(1)>95 GOTO 4390 NEXT SLOPE-(DV(1)-DV(I-I)):INTCPT=DV(1)-SLOPE*I M-(95-1NTCPT)/SLOPE GOSUB 5340:GOSUB 5440 PHI95-PHI:CHI95=C:IST~I PHIMN2-(PHII6+PHI50+PHI84)/3 CHIMN2-(CHII6+CHI50+CHI84)/3 PHISTD2-(PHI84-PHII6)/4+(PHI95-PHI5)/6.6 CHISTD2=(CHI84-CHII6)/4+(CHI95-CHI5)/6.6

4470 PHISKW2-(PHI84+PHII6-2*PHI50)/(2*(PHI84-PHII6))+(PHI95+PHI5-2*PHI50)/(2*(PH 195-PHIl0)) 4480 CHISKW2-(CHI84+CHII6-2*CHI50)/(2"(CHI84-CHII6))+(CHI95+CHI5-2*CHI50)/(2*(CH 195-CHII0)) 4490 PHIKUR2=(PHI95-PHI5)/(2.44*(PHI75-PHI25)) 4500 CHIKUR2-(CHI95-CHI5)/(2.44*(CHI75-CHI25)) 4510 REM ................................ 4520 REM PRINTOUT OF RESULTS 4530 REM ................................ 4540 CLS:LOCATE 24,1:PRINT "Printing..."; 4550 LPRINT CHR$(12); 4560 LPRINT:LPRINT:LPRINT 4570 LPRINT SPC(42);'SEDIDAT STATISTICS';tLPRINT:LPRINT 4580 LPRINT SPC(15);'File: ";F$;SPC(40);'Datet ";D$ 4590 LPRINT SPC(15);'Sample name: ";SN$ 4600 LPRINT SPC(15);'Data collected on: ";MIDS(DI$,I,2);"-';MID$(DI$,3,2);"-";MI D$(DI$,5,4) 4610 LPRINT SPC(15);"Total settllng time: ";:LPRINT USING "|||.##";E/60;:LPRINT " min." 4620 LPRINT SPC(15);"Settllng dlstance:";:LPRINT USING "##|#.|";L;:LPRINT " cm."

4630 LPRINT SPC(15);"Water temperature: ";WT;:LPRINT "degrees C" 4640 LPRINT:LPRINT SPC(15);" .................................................... ...................... .

4650 LPRINT:LPRINT SPC(35);"GROUPED MOMENT MEASURES (McBride, 1971)":LPRINT 4660 LPRINT SPC(40);I/IVALS;" CHI',SPC(2};I/PVALS;" PRI":LPRINT 4670 LPRINT SPC(15);"Mean:";TAB(41);:LPRINT USING "|#|.###';CXBAR; 4680 LPRINT SPC(12);:LPRINT USING "|||.|#|";PXBAR 4690 LPRINT SPC(15);'Standard devlatlon:";TAB(41);:LPRINT USING "#|#.##|";UCHIST D;

Page 15: SEDIDAT: A BASIC program for the collection and statistical analysis of particle settling velocity data

Analysis of panicle ~ttling velocity data

4700 LPRINT SPC(12);:LPRINT USING "I|#.|##•;UPHISTD 4710 LPRINT SPC(15);•Skewness:";TAB(41)j:LPRINT USING "|##.#||•;UCHISKW; 4720 LPRINT SPC{12);:LPRINT USING "#I#.I#|';UPHISKW 4730 LPRINT SPC(15);•Kurtosis:"ITAB(41);:LPRINT USING •|#|.|||•;UCHIKUR; 4740 LPRINT SPC(12};:LPRINT USING "###.|||•;UPHIKUR 4750 LPRINT:LPRINT SPC(15);" .................................................... ...................... -

4760 LPRINT:LPRINT SPC(35);'GRAPHIC MEASURES (Folk and Ward, 1957)•:LPRINT 4770 LPRINT SPC(40);I/IVALS; • CHI•,SPC(2);I/PVALS; • PHI•:LPRINT 4780 LPRINT SPC(15);'Mean:•;TAB(41);:LPRINT USING •||#.|||•;CHIMN2; 4790 LPRINT SPC(12);:LPRINT USING "I##.#I#•~PHIMN2 4800 LPRINT SPC(15};'Standard deviatlon:•;TAB(41};:LPRINT USING •||#.#||•;CHISTD 2; 4810 LPRINT SPC(12);:LPRINT USING "#|#.###•;PHISTD2 4820 LPRINT SPC(15);•Skewness:•;TAB(41);:LPRINT USING •||#.###";CHISKW2; 4830 LPRINT SPC(12);:LPRINT USING "|#|.###";PHISKW2 4840 LPRINT SPC(15};'Kurtosis:•;TAB(41);:LPRINT USING •|##.|||";CHIKUR2; 4850 LPRINT SPC(12);:LPRINT USING "#||.#|#";PHIKUR2 4860 LPRINT:LPRINT SPC(15);" .................................................... ...................... •

4870 LPRINT SPC(50);•MODES:•:LPRINT 4880 LPRINT SPC(15);"Number•;SPC(10);•Velocity";SPC(10);"CHI";SPC(12);•PHI";SPC( 10);•Freq. %• 4890 LPRINT 4900 IF K>5 THEN K=5 4910 FOR I-i TO K 4920 M=ANS(I):GOSUB 5340 4930 GOSUB 5440 4940 LPRINT SPC(15);:LPRINT USING "|||.•;I;:LPRINT SPC(II);:LPRINT USING •||.#|" AA'';V;:LPRINT SPC(9);:LPRINT USING "#I#.#|•;C; 4950 LPRINT SPC(8);:LPRINT USING "%##.||•;PHI;:LPRINT SPC(8);:LPRINT USING "|##. ##';F(ANS(I));:LPRINT " %" 4960 NEXT 4970 LPRINT:LPRINT SPC(15); ..................................................... ...................... •

4980 LPRINT:LPRINT SPC(45);"PARAMETERS USED":LPRINT 4990 LPRINT SPC(15);'Number of data points: •IN 5000 LPRINT SPC(15);•Gibbs eq. constants: ":LPRINT SPC(20);CI:LPRINT SPC(20);CC2 :LPRINT SPC(20);C3:LPRINT SPC(20);C4 5010 LPRINT SPC(15);'Dynamic viscosity: ";NN; • poises • 5020 LPRINT SPC(15);•Acceleration of gravity: ";G;" cm/s" 5030 LPRINT SPC(15);"Fluid density: ";PF;" g/ml • 5040 LPRINT SPC(15);'Partlcle density: ";PS;" g/cm3 • 5050 IF H=I THEN LPRINT SPC(15);"Size conversion by straight GIBBS equation.":GO TO 5160 5060 IF H=2 THEN LPRINT SPC(15);"Size conversion using Komar FORAM correction, R D-';A:GOTO 5160 5070 IF H=3 THEN LPRINT SPC(15);"Size conversion using Komar QUARTZ correction, RD-';A:GOTO 5160 5080 IF H=4 THEN LPRINT SPC(15);"Size conversion using Komar CALCITE correction, RD-";A:GOTO 5160

5090 IF H-5 THEN LPRINT SPC(15);"Average heavy minerals correction applied, RD=" ;A:GOTO 5160 5100 LPRINT CHR$(12); 5110 5120 5130 5140 5150 5160 5170 5180 5190 5192 5195 5200 5210 5220 5230 5240 5250 5260 5270 5280 5290 5300 5310 5320 5330 5340 5350 5360 5370 5380

LOCATE 21,1,0:PRINT "Creating a plot file... • FL-LEN(F$):LOCATE 10,1,0:LPRINT SPC(15);•f$ - •;F$ FOR I=l TO 3:F$(FL-I)=F$(FL-I+I):NEXT I F$(FL-4)-"P" LPRINT SPC(15);'new f$= ";F$ REM ....................................... REM End of program, return to menu LPRINT CHR$(12); LOCATE 24,1,0:PRINT•Job complete. CLS CHAIN "C:SEDIDAT. EXE" END HEM ........................................ REM Running average smoothing routine DV(O) -0 S=DV(1)+DV(2)+DV(3)+DV(4) FOR I-5 TO N S-S-DV (I-5) +DV (I) DD(I-2)=S/5 NEXT NMM-N-2 FOR I-3 TO NMM:DV(I)-DD(I}:NEXT RETURN REM ........................................ REM Phi calculating routine IF M<-0 THEN PHI=999:RETURN V-L/(SC*M) V2=V*V R-(CI'V2*PF+SQR(CC2*V2*V2*PF*PF+GP*(CS*NN*V+C4*V2*PF)))/GP R~R/A 'Komar correction factor

69

Page 16: SEDIDAT: A BASIC program for the collection and statistical analysis of particle settling velocity data

70 R. WRIGHT and S.M. THORNBERG

5390 PHI'-LOG(20*R)/L2 5400 C'PHI 5410 RETURN 5420 REM ....................................... 5430 REM Chi calculating routine 5440 IF M<-0 THEN V-IE+29:C-V:RETURN 5450 V-L/(SC*M) 5460 C--LOG(V/100)/L2 5470 RETURN 5480 REM Calculate a time given a CHI 5490 M-L/(SC*I00*EXP(-L2*ICHI}) 5500 RETURN

140 150 160 170 180 190

2 REM ..................................................................

3 REM ........................ P L O T ............................. 4 REM .................................................................. 5 REM I0 REM PLOT.BAS - compiled version Is PLOT. EXE 12 REM For graphic plots of data collected using DIRT. EXE 20 CLS 30 KEY OFF 120 A%-ASC("I") 130 ON ERROR GOTO 160

LPRINT GOTO 200 CLS:LOCATE 12,20,0:PRINT "TURN ON THE PRINTER|" BEEP:LOCATE 24,10,0:PRINT "PRESS ANY KEY TO CONTINUE.";

200 210 220 230 240 25O 260 270 280 290 300 310 320 330 340 350 360 370 380 390 400 410 420 430 440 450 460 465 470 480 490 495 500 510 520 530 54O 550 560 570 580 590 600 610 620 630 640 650 660 670 680

A$-INKEY$:IF AS-"" THEN 180 PRINT:GOTO 20 LPRINT CHR$(12); LPRINT CHR$(27};"C";CHR$(66); LPRINT CHR$(27);CHR$(15); LPRINT CHR$(27);"O"; DIM N$(8) CI~.05!,~;04 CC2-.003114 C3-4.5 C4-8.705001E-03 G-979.2098 L2-LOG(2) D$-DATE$ NPLOTS-0 REM .................................. REM Set up graph characteristics

'Set form length to 66 lines 'Set compressed print mode

'ist const, i n Gibbs eq. '2nd '3rd '4th 'Acceleration of gravity

XAXMIN-50 'Left edge YAXMIN-0 'Top XAXMAX-710 'Right edge ¥AXMAX-290 'Bottom XAXDIF-XAXMAX-XAXMIN YAXDIF-YAXMAX-YAXMIN LABLYI-320 YMAX-100 'Sample percent YMIN-0 'Minimum percent YDIF-YMAX-YMIN 'Difference REM ..................................

PRINT SPC(20);"SEDIDAT GRAPHICS PROGRAM":.PRINT PRINT SPC(9};"UNIVERSITY OF NEW MEXICO - DEPT. OF GEOLOGY" PRINT~PRINT INPUT "Enter the system number of the data flle.";F$ REM ....................................... REM Read In data from .DAT and .STS files OPEN F$ AS #i LEN-8 FIELD #1,4 AS N$ GET #I,i N-CVS(N$) FIELD #1,6 AS N$ GET #1,2 L-CVS (N$) GET #I,3 E-CVS(N$) SC-E/N FIELD #1,8 AS N$ GET #1,4 DI$-N$ DIM DUM$(10) DUM$(1)'MID$(DI$,I,I)~DUM$(2)-MID$(DI$,2,1) DUM$(3)-'-" DUM$(4}'MID$(DI$,3,1):DUM$(5)-MID$(DI$,4,1) DUM$(6)-"-" FOR I-5 TO 8

690 DUM$(I+2)'MID$(DI$,I,I) 700 NEXT I

Page 17: SEDIDAT: A BASIC program for the collection and statistical analysis of particle settling velocity data

Analysis of particle settling velocity data 71

710 DIS-'" 720 FOR I-I TO 10 730 DIS-DIS+DUNS(I) 740 NEXT I 750 WIELD #1,4 AS N$ 760 GET #1,5 770 FIELD %1,8 AS N$ 780 GET %1,6 790 SNI$-N$ 800 GET #1,7 810 SN2$-N$ 820 GET #1,8 830 SN3$-N$ 840 SN$-SNI$+SN2$+Sq~3$ 850 SNLEN-LEN(SN$) 860 PRINT:PRINT"Calculations in p~ogress..." 870 DIM DV(1000),F(1000),FI(1000},PP(250},ANS(250),CHIDV(100),PHIDV(100),CHIX(10 0),PHIX(100),DD(1000),CTIME(100),PTIME(100),VELX(100),VELDV(100) 880 FIELD %1,8 AS AS 890 CLOSE 11 900 DIM F25(15) 910 REM ........................................ 920 FL-LEN(F$) 'Calculate the file name *.STS 930 PRINT 940 FOR I-i TO FL-3 950 F2$(I)-MID$(F$,I,I) 960 NEXT 970 ¥25(FL-2)-"S" 980 F2$(FL-I)-"T" 990 F2$(FL)-"S" I000 FOR I-I TO FL i010 F2$-F2$+F2$(I) 'Store finel name 1020 NEXT 1030 FOR I-3 TO FL-4 1040 FN$-FN$+F2$(I) 1050 NEXT I 1060 PRINT "Reading flies ";F25 1070 OPEN F25 AS %2 LEN-8 1080 FIELD %2,8 AS N$ 1090 GET %2,1 1100 NCHI-CVS(N$) 1110 GET %2,2 1120 NPHI-CVS(N$) 1130 FIELD #2,8 AS AS 1140 FOR I-i TO ~ 1150 GET %2,1+2 'Read data 1160 DV(I)-CVS(A$) 1170 NEXT 1180 OF-N+2 1190 NCHI2-NCHI*2 1200 FOR J-1 TO NCRI2 STEP 2 1210 GET 12,J+OF 1220 CHIX((J+I)/2)-CVS(A$) 1230 GET i2,J+OF+I 1240 CHIDV((J+I)/2)-CVS(A$) 1250 NEXT 1260 OF-OF+NCHI2 1270 NPHI2-NPHI*2 1280 FOR I-i TO NPHI2 STEP 2 1290 GET i2,I+OF 1300 PHIX((I+I)/2)-CVS(A$) 1310 GET i2,I+OF+I 1320 PHIDV((I+I)/2)-CVS(A$) 1330 NEXT 1340 OF-OF+NPHI2 1350 GET i2,OF+I 1360 GP-CVS(A$) 1370 GET %2,OF+2 1380 A-CVS(A$) 1390 GET #2,OF+3 1400 PF-CVS(A$) 1410 GET %2,OF+4 1420 NN-CVS(A$) 1430 CLS:LOCATE 10,20,0:PRINT "Please waito.."~ 1440 NM-N-I 1450 SC2-2 1460 FOR I-2 TO NM 1470 F(I)-(DV(I+I)-DV(I-I))/SC2 1480 NEXT 1490 F(1)-(DV(2)-DV(1))/SC2 1500 F(N)-(DV(N)-DV(N-I))/SC2 1510 CALL TMODEsCLS:LOCATE 3,30,0sPRINT "PLOTTING OPTION NENU":PRINT:PRINT 1520 PRINT SPC(20);"I - TIMEs Cumulatlve welght.%" 1530 PRINT SPC(20);"2 - VELOCITY: Cumulative weight %"

Page 18: SEDIDAT: A BASIC program for the collection and statistical analysis of particle settling velocity data

72 R. WRIGHT and S.M. THOR,~SERG

1540 1550 1560 1570 1580 1590 1600 1610 1620 1630 1640 1650 1660 1670 1680 1690 1700 1710 1720 1730 1740 1750 1760 1770 1780 1790 1800 1810 1820 1830 1840 1850 1860 1870 1880 1890 1900 1910 1920 1930 1940 1950 1960 1970 1980 1990 2000 2010 2020 2030 2040 2050 2060 2070 2080 209.0 2100 2110

PRINT SPC(20);'3 - CHI: Cumulative weight %" PRINT SPC(20);'4 - PHIl Cumulative weight %" PRINT PRINT SPC(20);"5 - TIME: Frequency weight %" PRINT SPC(20);'6 - VELOCITY: Histogram" PRINT SPC(20);"7 - CHIt Histogram" PRINT SPC(20);"8 - PHI Histogram" PRINT PRINT SPC(20)~"9 - End the program." LOCATE 20,1,0:BEEP:PRINT SPC(40) LOCATE 20,5,0:INPUT "Enter your choice. ",CH IF CH~9 THEN GOTO 5470 IF CH<I OR CH>9 THEN GOTO 1630 IP%-0:IL%=I IF CH>4 THEN GOTO 3490 CALL GMODE CALL GPAGE(IP%) CALL DISP(IP%) CALL LEVEL(IL%) CALL CLRSCR YDIF=YMAX-YMIN IF CH-I THEN GOSUB 1820 IF CH-2 THEN GOSUB 1960 IF CH-3 THEN GOSUB 2290 IF CH-4 THEN GOSUB 2510 GOTO 1510 REM ..................................... REM Linear wrt time XSC-XAXDIF/N IS%-0=IEt=INT(E/60) AXC-XAXDIF/(E/60) GOSUB 2740 IX%-320:IY%-LABLY%:IT$="TIme (mln)":CALL TEXTB(IX%,IY%,IT$) FOR I-1 TO N IX%-I*XSC+XAXMIN IY%--(DV(I)*YSC)+YAXMAX CALL PLOT(IX%,IY%) NEXT GOSUB 2120 RETURN REM ...................................... REM Linear wrt velocity V2-L/E:VI-L/(10*SC) IS%=30:IE%-0 XSC-XAXDIF/(IEt-ISt)tAXC-XSC GOSUB 2740:GOSUB 3040 IT$-'Veloclty (cm/sec)" IX%=300:IYt=LABLY% CALL TEXTB(IX%,IY%,IT$) FOR I-2 TO N IXt-(L/(I*SC)-IS%)*XSC+XAXMIN IF IX%<XAXMIN THEN GOTO 2080 IY%--(DV(I)*YSC)+YAXMAX CALL PLOT(IX%,IY%) NEXT I GOSUB 2120 RETURN REM ..........................

2120 BEEP:IX%=5:IY%-340:IT$= "Do you want a hardcopy? (Y/N) IN] ":CALL TEXTB(IX%, IY%,IT$) 2130 A$-INKEY$:IF AS-"" GOTO 2130 2140 IF A$'"y" OR A$="Y" THEN GOTO 2160 2150 RETURN 2160 ITS'" 2170 NPLOTS'NPLOTS+I 2180 CALL TEXTB(IX%,IYt,IT$)tCALL HRDCPY{A%) 2190 IF NPLOTS < 2 THEN RETURN 2200 NPLOTS'0 2210 FOR I'l TO 1000:DUM'3.45*9.34-4.9:NEXT I 2220 LPRINT CHR$(27);*@";CHR$(27);"2"; 2230 FOR I-1 TO 7tLPRINT:NEXT I 2240 LPRINT CHR$(27);"0"; 2250 FOR I-I TO 1000:DUM-3.45*9.34-4.9:NEXT I 2260 LPRINT CHR$(27);"@"; 2270 RETURN 2280 REM ...................................... 2290 REM CHI linear plotting routine 2300 M-N:GOSUB 5420 2310 C2-C:M-I:GOSUB 5420 2320 CB-C 2330 IS%-0:IEt-INT(C2} 2340 XSC-XAXDIF/(C2-IS%} 2350 AXC-XSC 2360 GOSUB 2740

Page 19: SEDIDAT: A BASIC program for the collection and statistical analysis of particle settling velocity data

2370 2380 2390 2400 2410 2420 2430 2440 2450 2460 2470 2480 2490 2500 2510 2520 2530 2540 2550 2560 2570 2580 2590 2600 2610 2620 2630 2640 2650 2660 2670 2680 2690 2700 2710 2720 2730 2740 2750 2760 2770 2780 2790 2800 2810 2820 2830 2840 2850 2860 2870 2880 I 2890 2900 2910 2920 2930 2940 2950 2960 2970 2980 2990 3000 3010 3020 3030 3040 3050 3060 3070 3080 3090 3100 3110 3120 3130 3140 3150 3160 3170 3180 3190

Analysis of particle settling velocity data

IT$''CHI" IX%=340:IY%'LABLY% CALL TEXTB(IXt,IY%,IT$) REM Data plotting routine for CHI FOR I=l TO N M-I:GOSUB 5420 IF C<IS% THEN GOTO 2470 IX%=XSC*(C-IS%)+XAXMIN Iy%--(DV(I)tYSC)+YAXMAX CALL PLOT(IX%,IY%) NEXT I GOSUB 2120 RETURN REM ........................................ REM PHI plotting routine M=N:GOSUB 5320 C2=C:M=2:GOSUB 5320 CB-C ISt--I:IEt-INT(C2) XSC=XAXDIF/(C2-ISt) AXC-XSC GOSUB 2740 IT$='PHI" IXt-340:IYt-LABLYt CALL TEXTB(IXt,IYt,IT$) REM Data plotting routine for PHI FOR I-I TO N M-I:GOSUB 5320 IF'C<IS% THEN GOTO 2690 IXt=XSCe(C-IS%)+XAXMIN IYt--(DV(I)*YSC)+YAXMAX CALL PLOT(IX%,IYt) NEXT I GOSUB 2120 RETURN H~ ......................................

REM Axis plot routine IT$="Plotting..." IXt-5zIYt-340 CALL TEXTB(IXt,IYt,IT$) YSC=YAXDIF/YDIF YSt-YMIN/IO:YEt-YMAX/IO FOR I-YSt TO YEt 'Plot y-axis numbers IXt=15=IYt-I*YAXDIF*I0/YDIF+5 IF I-YSt THEN IYt=IY%+7 P=(YEt-I)*10 IF P=I00 THEN IXt=IX%-4 P$-STR$(P) CALL TEXTB(IXt,IYt,P$) NEXT P$='Weight t m FOR I-i TO 8:IXt-5:IYt-I*20+60:A$-MID$(P$,I,I):CALL TEXTB(IXt,IY%,A$):NEXT

REM Draw axis lines IX%-XAXMIN:IY%-YAXMIN CALL MOVE(IXt,IY%) IY%=YAXMAX CALL DLINE(IX%,IY%) 'Y - axis IX%-XAXMAX CALL DLINE(IX%,IY%) 'X - axis HEM ........................................ FOR I-YS% TO YE% 'Plot y-axis tics IYI'I*YAXDIF*10/YDIF FOR IX%-XAXMIN-2 TO XAXMIN+2 CALL PLOT(IX%,IY%) NEXT IX% NEXT I REM ....................................... REM X-axis labeling ST-I:IF IS%>IE% THEN ST--I ST2-.25:MUL-3 IF (CH-2) OR (CH-6) THEN ST--5:ST2--I:MUL-4 D%'IE%-IS% FOR I=IS% TO IEt STEP ST IXt-(I-ISt)eAXC÷XAXMIN FOR J-YAXMAX-2 TO YAXMAX+2:IY%-J:CALL PLOT(IX%,IY%):NEXT J IS2"I+ST2:IE2=I+MUL*ST2 FOR If=IS2 TO IE2 STEP ST2 IX%'(II-IS%)*AXC+XAXMIN IF IX%>XAXMAX GOTO 3270 FOR J=YAXMAX-I TO YAXMAX+I:IYI=J:CALL PLOT(IX%,IYt)':NEXT J NEXT II IF D%<15 GOTO 3220 XNC2"XNC/2

?3

Page 20: SEDIDAT: A BASIC program for the collection and statistical analysis of particle settling velocity data

74 R. WRIGHT and S.M. THOR,~BERG

3200 3210 3220 3230 3240 3250 3260 3270 3280 3290 3300 3310 3320 3330 3340 3350 3360 3370 3380 3390 3400 3410 3420 3430 3440 3450 3460 3470 3480 3490 3500 ANS$ 3510 3520 3530 FI% 3540 3550 3560 3570 3580 3590 3600 3610 3620 3630 3640 3650 3660 3670 3680 3690 3700 3710 3720 3 7 3 0 3 7 4 0 3750 3760 3770 3780 3790 3800 3810 3820 3830 3840 3850 3860 3870 3880 3890 3900 3910 3920 3930 3940 3950 3960 3970 3980 3990 4000 4010 4020

T%=INT(I/2+oS) IF T%*2<>I GOTO 3280 P$-STR$(1) IX%-(I-IS%)*AXC+XAXMIN-15 IY%=LABLY%-I5 IF I<IE% GOTO 3270 IF IX%>XAXMAX-50 THEN IXE-IX%-50 CALL TEXTB(IX%,IY%,P$) NEXT I IXE=XAXMIN+I0 IY%=I0 CALL TEXTB(IX%,IY%,FN$) IY%=22 CALL TEXTB(IX%,IY%,DI$) IY%=34 CALL TEXTB(IX%,IY%,SN$) RETURN REH ........................................ IS%=INT(PHI):IE%=INT(PHI21) FOR I=l TO N IX%=I*XSC+XAXMIN IY%=-(DV(I)*YSC)+YAXMAX CALL PLOT(IX%,IY%) NEXT GOSUB 2120 RETURN RER ....................................... HEM First derivative and frequency plots REM ....................................... CLS:BEEP:LOCATE 10,10,0 INPUT "Do you want to f i x the upper limit of the y-axls yourself?(Y/N) [N}",

IF ANS$="y" OR ANS$i"Y" THEN GOTO 3530 GOTO 3560 INPUT "Enter the percentage amount to be used for the y-axls maxlmum.[50]";

IF FI%<=0 THEN FI%-50 FI%-FII/10 CALL GMODE CALL GPAGE{IP%) CALL DISP(IF%) CALL LEVEL(IL%) CALL CLRSCR IT$='Plottlng..." IX%=SzIY%=340 CALL TEXTB(IX%,IYt,IT$) IF CH-5 THEN GOSUB 3700 IF CH-6 THEN GOSUB 3880 IF CH-7 THEN GOSUB 4370 IF CH=8 THEN GOSUB 4760 GOTO 1510 HEN ..................................... = HEM Linear wrt time IS%-0:IEt-INT(E/60) XSC=XAXDIF/N AXC=XAXD I F/( E/60 ) GOSUB 5190 IT$='Time (min)" IX%=320zIYtaLABLY% CALL TEXTB(IX%,IY%,IT$) FOR Ill TO N IF F(I)tYSC<0 THEN GOTO 3830 IX%'I*XSC+XAXMIN IY%=-(F(I)*YSC)÷YAXMAX CALL PLOT(IX%,IY%) NEXT GOSUB 2120 R E T U R N REM . . . . . . . . . . . . . . . - . . . . . . . . . . . . . . . . - . . . . .

REM L i n e a r w r t v e l o c i t y IS%t30zIE%-0 XSC'XAXDIF/{IEI-ISt)zAXC=XSC NVEL-I ST=-1 FOR I'IS% TO IE%-ST STEP ST SEC'L/I PT%'SEC/SC+I SLOPE'DV(PTt)-DV(PT%-I} I NTCPT~DV ( PT% ) -SLOPE*PT% VELX (NVEL) "I VELDV (NVEL} "SLOPE* SEC/SC+ INTCPT NVEL=NVE L+ 1 NEXT VELX(NVEL)=0 VELDV(NVEL)-DV(N)

Page 21: SEDIDAT: A BASIC program for the collection and statistical analysis of particle settling velocity data

4030 4040 4050 4060 4070 4080 4090 4100 4110 4120 4130 4140 4150 4160 4170 4180 4190 4200 4210 4220 4230 4240 4250 4260 4270 4280 4290 4300 4310 4320 4330 4340 4350 4360 4370 4380 4390 4400 4410 4420 4430 4440 4450 4460 4470 4480 4490 4500 4510 4520 4530 4540 4550 4560 4570 4580 4590 4600 4610 4620 4630 4640 4650 4660 4670 4680 4690 4700 4710 4720 4730 4740 4750 4760 4770 4780 4790 4800 4810 4820 4830 4840 4850 4860

Analysis of particle settling velocity data

IF ANSSa'y" OR ANSSa'Y" GOTO 4090 DMX-VELDV ( 2 ) -VELDV ( 1 ) FOR I'3 TO NVEL IF VELDV(I}-VELDV(I-1)>DMX THEN DHX-VELDV(I)-VELDV(I-I) NEXT FIt-INT(DMX/10)+I YSC-YAXDIF/(FIqeI0) YE%-FI%:YSq-0 YDIF-(YE%-YS%)*I0 GOSUB 2790 IT$-"Velocity (cm/sec)" IX%-300zlY%-LABLY% CALL TEXTB(IX%,IY%,IT$) XNC-(VELX(2)-VELX(1))*XSC XNC2-XNC/2 FOR I-2 TO NVEL C-(VELX(I)+VELX(I-I))/2 CY-VELDV(I)-VELDV(I-I) IF CY*YSC<0 THEN GOTO 4330 IP C>IS% THEN GOTO 4330 IF I-2 GOTO 4330 IX%-XSC*(C-IS%)-XNC2+XAXMIN+I IY%-YAXMAX CALL MOVE(IX%,IY%) IY%--(CY*YSC)+YAXMAX CALL DLINE(IX%,IY%} IX%-XSCe(C-IS%}+XNC-XNC2+XAXMIN CALL DLINE(IX%,IY%) IY%~YAXMAX CALL DLINE(IX%,IY%) NEXT I GOSUB 2120 RETURN REM ...................................... REM Linear wrt Chl M-N:GOSUB 5420zC2-CzM-2:GOSUB 5420zCB-C IS%-0:IE%-INT(C2) XSC-XAXDIF/(C2-IS%) AXC-XSC IF ANS$-"y" OR ANS$-'Y" GOTO 4480 DMX-CHIDV(2I-CHIDV(1) FOR I-3 TO NCHI IF CHIDV(I)-CHIDV(I-I)>DMX THEN DMX-CHIDV(I)-CHIDV(I-I) NEXT FII-INT(DMX/10)+I YSC-YAXDIF/(PI%*I0) YE%-PI%zYSq-0 YDIF-(YEq-YS%)*I0 GOSDB 2790 IT$-'CHI" IXq-340:IYq-LABLY% CALL TEXTB(IX%,IY%,IT$) XNC-(CHIX(2)-CHIX(I})*XSC XNC2-XNC/2 FOR I-2 TO NCHI C-(CHIX(I)+CHIX(I-I))/2 CY-CHIDV(II-CHIDV(I-1) IF CY*YSC<0 THEN GOTO 4720 IF C<ISI THEN GOTO 4720 IF I-2 GOTO 4720 IX%-XSC*(C-IS%)-XNC2+XAXMIN+I IY%-YAXMAX CALL MOVE(IX%,IY%) IY%--(CY*YSC)+YAXMAX CALL DLINE(IX%,IY~) IXl-XSC*(C-IS%)+XNC-XNC2+XAXMIN CALL DLINE(IX%,IY~) IY%-YAXMAX CALL DLINE(IX~IYI) NEXT I GOSUB 2120 RETURN REM ...................................... REM Linear wrt Phi M-N:GOSUB 5320 C2-C~M-2zGOSUB 5320 CB-C IS%--IzIEI-INT(C2) XSC-XAXDIF/(C2-IS%) AXC-XSC IF ANS$-'y" OR ANS$-'Y" GOTO 4890 DMX-PHIDV(2)-PHIDV(1} FOR I-3 TO NPHI IF PHIDV(I)-PHIDV(I-I)>DMX THEN DMX-PHIDV(I}-PHIDV(I-I)

'Start of llne

'Vertical llne

'~orizontal line

'Vert line back to a x i s

'start of line

'vertical line

'Horizontal llne

'Vert line back to axis

75

Page 22: SEDIDAT: A BASIC program for the collection and statistical analysis of particle settling velocity data

76

4870 4880 4890 4900 4910 4920 4930 4940 4950 4960 4970 4980 4990 5000 5010 5020 5030 5040 5050 5060 5070 5080 5090 5100 5110 5120 5130 5140 5150 5160 5170 5180 5190 5200 5210 5220 5230 5240 5250 5260 5270 5280 5290 5300 5310 5320 5330 5340 5350 5360 5370 5380 5390 5400 5410 5420 5430 5440 5450 5460 5470 5480

R. WgXGST and S.M. THORNBEgG

NEXT PZt-INT(DMX/10)+I ¥SC-¥AXDIF/(FII*I0) YEt-FIt:YSt-0 TDIF=(YE%-¥S%)*I0 GOSUB 2790 IT$-'PBI" IXq-340:IY%-LABLY% CALL TEXTB(IX%,IY%,IT$} RER data plotting routine XNC-(PHIX(2)-PHIX(I})*XSC XNC2-XNC/2 FOR Z-2 TO NPHI C-(PHIX(I)+PHIX(I-I))/2 PY-PRIDV(I)-PHIDV(I-I) IF PY*YSC<0 THEN GOTO 5140 IF C<IS% THEN GOTO 5140 IF I-2 GOTO 5140 IXI-XSC*(C-IS%)-XNC2+XAXMIN+I IY~-YAXMAX CALL MOVE(IX%,IY%) IY%--(PYtYSC)+YAXMAX CALL DLINE(IX%,IY%) IX%-XSC*(C-IS%)+XNC-XNC2+XAXMIN CALL DLINE(IX%,IY%) IYI-YAXMAX CALL DLINE(IX%,IY%) XL-C:YL-PY NEXT I GOSUB 2120 RETURN

'Start o f l i n e

'Vectlcal l i n e

'Horizontal l i n e

'VeEr llne back to axis

R E M . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .

IF ANS$'"y" OR ANS$'"¥" THEN GOTO 5250 DMX-P(I) FOR I'2 TO N IF F(I)>DMX THEN DMX'F(I} NEXT FII-INT(DMX/10)+I ¥SC-YAXDIF/(FI%*10) ¥EI"FIq YDIF'(YE%-¥S%)*I0 GOSUB 2790 RETURN REM ......................................

REM Phi calculatlng routine IF M<-0 THEN PHI-999:RETURN V-LI(SC*M) V2-V*V R~(CI*V2*PF+SQR(CC2*V2*V2*PF*PF+GP*(C3*NN*V+C4*V2*PF)))/GP R-R/A 'Komar correction factor PHI--LOG(20*R)/L2 C-PHI RETURN RE~ ......................................

REM chl calculatlng routine IF M<-0 THEN V-IE+29:C-V:RETURN V-L/(SC*M) C--LOG (V/100)/L2 RETURN REM ......................................

CALL TMODE CHAIN "C:SEDIDAT. EXE"

APPENDIX 2

Statistical and Graphic Output

SEOI~T STATISTICS

Fzle: A:100627.~1 $aeple naee: ;e r 7 - 3 O,t* collecte4 on: 07-30-1986 Total setLlinq tiee: 10.15 ein. Settli.q distance: I~LO ¢e. Sater teeperature: 23 deqrees C

~,te: 08-05-I787

Page 23: SEDIDAT: A BASIC program for the collection and statistical analysis of particle settling velocity data

Analysis o f particle settling velocity data

~q00PED ~MENT NEASURES (~:Bride, t~71)

.1 CH! .25 PHI ~ean: 5.289 2.20? Standard deviation: 1.275 0.944 Skpcest: -0.~47 -0.647 Kurt:sis: 2.936 2,;48 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .

GRAPHIC ~SURES (Folk and ~ar~, 1957)

.1 CH[ .25 PHI

77

Mean: ~,246 2.173 Standar~ deviJtio~: L.~Z? O.U?!

Kurtosis: 1.180 1.261 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .

M~DES:

I~eber Velocity CHI PHI Freq. Z

I. 1.17E~01 3.09 0.41 1.27 1 2. 2.01E*00 5.64 2.~2 0.79 l ~. 2.22E*00 5.50 2.42 0.92 Z 4. 1.77E*O0 5.82 2.64 0.68 Z 5. 7.34E~00 3.77 1.06 0.68 I

PARA~TERS USEO

Nu*ber o( data pointsz 1000 6ebbs eq. constants:

.055804 .003114 4.5 8.70500lE-03

Dynaoic viscose(y: 8.999997E*05 poises Acceler,ltion of gravity: 97%2098 cels Fluid density: .gV7 g/el Particle dons]ty: 2.65 g/co3 Size conversion using Koiar OUARTZ correction, RO, .9859

Files A:TOO627.0AT Sanple Ma*e: kur 7 - 3

Oate: 08-05-1787

| i i i l l a l i 6 i f i l l C~] i l i l i l i # t l t l l l l t 6 t t

CUMIJI.ATIVE NEIGH! ! [NOIVIOU~ WEIGHt Z

0.00 I.d O.O 0.10 I.~ 0.0 * O.OOto 0.10 0.0 0.20 1.6 0.0 s 0.10 to 0.20 0.0 0.30 1.8 0.0 * 0.20 to ').]0 0.0 0.40 1.9 0.0 * 0.30 to 0.40 0.0 0.50 2.0 0.0 * 0.40 to 0.30 0.0 ¢.60 2.2 0.0 * 0.50 to 0.60 0.0 0.70 2.3 0.0 * 0.60 to 0.70 0.0 0.80 2.5 0.0 * 0.70 to 0.80 0.0 0.90 2.7 0.0 * 0.80 to O.gO 0.0 1.00 2.g 0.2 * 0.?0 to I.O0 0.2 I.IO 3.1 0.2 s 1.00 to l.lO 0.0 1.20 3.3 0.2 a 1.10 to 1.20 0.0 1.30 ~.5 0.4 o 1.20 to 1.50 0.2 1.40 3.8 0.4 o 1.30 to 1.40 0.0 1.50 4.0 0.6 * 1.40 to I.~O 0.2 1.60 4.3 0.6 * 1.50 Lo 1.60 0.0 1.70 4.6 0.6 * 1.60to 1.70 0.0 i.80 5.0 0.6 a 1.70to 1.80 0.0 1.90 5.3 0,6 * 1.80 to 1.90 0.0 2.00 5.1 0.6 * 1.90 to 2.00 0.0 2.10 6.1 0.6 • * 2.00 to 2.10 0.0 2.20 6.6 0.6 * 2.10 to 2.:0 0.0 2.30 7.0 0.6 * 2.20 to 2.30 0.0 2.40 7.5 0.6 a 2.~0 to 2.40 0.0 2.~0 8.1 0.6 e 2.40 to 2.~0 0.0 2.30 8.7 1.1 * 2.50 to 2.60 0.5

CHI TIME(see) Z VALUE Range IV~LUE

Page 24: SEDIDAT: A BASIC program for the collection and statistical analysis of particle settling velocity data

78 R. WRIGHT a n d S .M. THORNBERG

2.70 9. ] 2.90 lO.O 2.90 10.7 3.00 11.4 3.10 12.3 3.20 I L 1 3.~0 14.1 3.40 1~.1 3.50 16.2 3.60 17.3 3.70 18,6 3.80 1~.~ 3.90 21.3 4.00 22.9 4.10 24.~ 4,:0 26.3 i . 70 28.2 ~,40 30.2 4..'0 32.4 4. v) .'.4. ? 1.70 37,2 4.90 ~9.8 ~.+0 ~2,7 5.00 ~5.8 ~}. 10 49,0 5.20 52.{~ 5..~0 56.3 5.q0 60.4 5.5') 64.7 ~.,~o 69.4 ~.TO 7~.3 5,.~0 79.7 L?O 65.4 6.00 91.~ 6.10 ~8.1 6.20 lO~.l 6.30 112.7 6.40 120.8 ~.30 129.4 6.60 1~8.7 6,70 148,7 6.80 1~.9.3 6.qo 17.%8 7.00 19],0 7.10 IO6.2 ?.20 2L0.3 7.~0 22~.~ 7.40 241,5 7.."0 2"~9.? 7.~0 277.4 7.70 397.3 7.60 318.7 7.;0 341.6 8. O0 ~66,1 8.10 392.4 8.20 420.5 6.30 150.7 8.40 48].0 ~.,50 517.7 0.60 5",4.9

2.0 I 3.0 i, 6.0 * 7,0 m

7.9 * 10.9 * 11,~ o L3,5 o 14.7 * 11.7 o 17,0 o 17.9 o 19.5 o 19.9 20.3 21.5 2Z.7 2.~.~ 24,2 .~5.1 26.4 27.3 26.9 30.0 32.0 33.2 ,*,6.6 4~.~ q~,8 52.1 .%%3 63.7 67.9 71.6 75.3 76.6 60.9 83.0 6.%0 8~.9 89.0 99.7 912 92.7 919 94.7 95.5 %.2 97.0 97.2 97.3 99.2 96.3 98, 4 96,9 98.9 99.1 99.1 99. I 99.3

2 .~ to 2.70 0.+ 2.70 to 2.80 1.0 2.80 to 2.90 3.0 2.90 to 3.00 1.0 3.00 to 3. t0 0.9 3.10 to 3.20 3.0 3.20 to L.'O 0.6 3.30 to 3.40 2.0 3.40 to 3.50 1.2 3.~0 to 3.60 0.0 3.60 to 3.70 2.3 3.70 ta L.ao 0.9 3.80 to 3.?0 0.6 3.~0 to 4.00 1.4 4.00 to 4,10 C'.4 4.10 to 4.20 1.2 4.20 to 4.30 0,2 4.30 to 4,40 I,? 4.40 to 4.50 o.~ 4.~o to 4,60 0,9

4.~0 to d.70 1.3 4.70 to 4.80 o.? 4,80 to 4.qO 1.6 4.90 to 5.00 l . I 5.(,0 to LIO 2.0 ,~,10 to +.20 1.2 .%20 to 130 .',.4 5.,~0 to 5.40 3.9 ~,4~ to 5.~0 .~,3 ~.50 to 5.~.0 6.3 L60to ~.~0 +.2 5.70 to 5.80 %1 ~.80 to 5.9,5 4.2 5.~0 to 6.00 ,17 6.00 to 6.10 L7 6.10 to 6.20 L3 6.20ta 6.30 2,3 6.30 to 6.40 2.1 6.40 to 6.50 2.0 6.~0 to 6.+0 1.9 ~.60 to 6.7~ 1,6 6.70 to 6.90 1.2 6.80 to 6.90 I.~ 6.90 to 7.00 1.5 7.001o 7, t0 1.2 7. LO to 7.20 0,8 7.20 to 7.30 0.8 7.;0 to 7.40 0.7 7,40 to 7,,~0 0.8 7.50 to 7.60 0,2 7,60 to 7,70 0.1 7,70 to 7.PO 0.? 7.90 to 7.90 0.1 7,90 to 8,00 0.1 8.00 to 9.10 0.5 8.10 to 8,20 0.0 8.20 to 8.]0 0.2 8.:0 to 9,qO 0.0 8.qOto 6.~0 0.0 9.50to 8,60 0.2

F~:e: 4:TOO62L~T

Sal ; :e Nace: l l r 7 - Olte: 0B-05-1987

l l l l l l l l l l l l l l l PHI l l l l l l l l l + l l l f l l l l l

CURULATIVE WEIGHT % [ND[VIDUAL WEIGHT Z

PHI TIME(see) Z VAL~E Ran;e ZVALUE

-1.00 5.2 0.5 -0.75 6.0 0.6 t -0.50 6.9 0.6 , -Q.25 8.0 0.6 o 0.00 9.4 1.9 i

-1.00 to -0.75 0.! -0.75 1o -0.50 0.0 -0.50 to -0.25 0.0 -0.25 to Q.O0 1.3

Page 25: SEDIDAT: A BASIC program for the collection and statistical analysis of particle settling velocity data

Analysis of particle settling ~elocity data 79

0.25 l l.O ~,4 o 0.00 to 0.25 3,5 0.~0 1~.0 fi.~ o 0,25 to 0.50 3,4 0.?} 15,5 I2.9 o 0.50 to 0,75 I . l 1.~0 18.b 15.7 ~ 0.75 to 1.00 Z.B !.25 22.3 19.2 * 1.00 to 1.25 3.5 1.50 27.7 21.7 o 1.25 to 1.50 2.5 1.75 3a.3 24.~ o 1.50 to 1.T5 ~.2 2.00 43.0 29,7 o 1.7} to 2.'30 3,8 2.25 54,5 34.4 ~ 2.00 to 2.25 5.7 2.~9 70,0 53.0 o 2,25 to 2.5,) 1B,5 2.75 ?I,1 71,2 o 2.50 to 2.75 IB.Z T.00 !20.2 83,0 o 2,75 to 3.GO ll,B 3.:5 160.4 ~.~ i 3.~0 t~ 3,25 6,? 3.50 Z[L.~ c~,? t 3.25 to 3.50 5.,) 3.75 2@5,5 ~7.7 t 3.50 to 3.75 2,9 4.00 4Q~,5 9@,9 o 3,75 ta 4.00 1,2

Standard output Cumulative weight percent (Phi. Chi); individual weight percent (Phi. Chi); grouped moment statistics (Phi,

Chi): graphic statistics (Phi. Chi): largest five distribution modes (Phi. Chi); summary of input parameters. equation variables, and constants.

Optional output Cumulative curvcs (Phi. Chi. settling velocity, raw time); histograms (Phi. Chi, settling velocity); frequency

curve (raw timc).

CAGEO 14-I-F

Figures A 1-A4 overleaf

Page 26: SEDIDAT: A BASIC program for the collection and statistical analysis of particle settling velocity data

80 R. WRIGHT and S.M. THORNBERG

0 I

\ ,

: ' : . .

U

~J q~

0

t 1 I 1 I 1 I I 1 [

( % ) IW61OM ( % ) ILI6!eM

"-..,... "-- . . .~,

",,.., --,%

!

%

~D

I I I 1 l I I J I J i ~ o R ~ ~ ~ ~ o o o

( % ) ~ q 6 ! o M

Q.

8L~ J" 0 Jc

I

I

( % ) l q S ! O M

o Y

Page 27: SEDIDAT: A BASIC program for the collection and statistical analysis of particle settling velocity data

Analysis of particle settling velocity data 81

I 1 cr~

! i o

t \

"-,,.

o~

8 ~ '" t ~ 1 L l i J I 1 1" . . . . . . ,~

8 ~ 8 o o 8 8 8 8 o o

( % ) INB!OM

~D

E

i

i °

CD

,~T9

0

( % ) 8 ~ 8 ! 0 M

c:

x.

\

- - 0

" 0

o

%.

E (.~

8

o

tO

I l I I I I I I I I ~ o o 8 8 o o o o o

( % ) ~LI6!OM

I I °

0

o

Io

¢0

I I I o 8

( % ) ~,LI6!0M

I o

J ~ 0