Copyright 2003 by gINT Software. All rights reserved worldwide.
GR007.TXT

gINT Rules Code Samples - 007

Requires gINT version 6.1.013 or later.

NOTE:  Code samples are provided free of charge and as-is.  gINT Software makes no claim or warranty as to the accuracy of the samples.  It is the responsibility of the user to ensure that the code performs as it should.  Comments, suggestions, and error reports are appreciated.

Description
===========
Uses the AGS file structure for particle size distribution.  That structure records the percent passing the 0.425mm sieve in the CLSS table.  This code determines the percent passing the 0.425mm sieve from the GRAD table and inserts it into the appropriate field in the CLSS table.

Revision History
================
08 December 2003:
Initial upload
*************************************************

INCLUDED FILES:
GR007.GLB:
  Contains the gINT Rules code modules GR007 and GR007 COMMON PROCEDURES.

GR007.GPJ:
  Sample project that makes use of the code modules.
*************************************************

INSTALLATION PROCEDURE:
Copy the files wherever you prefer.  To see the gINT Rules code modules you must either merge the GLB into your library (Utilities:Lib Merge/Copy) or change to the included library (File:Change Library).
*************************************************

SPECIAL NOTES:
To see the different conditions that the code handles, move to the "Lab" group in the sample project.  There are six tests:
1. No gradation data.  The code allows you to input any value you wish in the 425 um field in the parent table.
2. There is a 0.425mm size in the gradation data and the code just copies the percent passing at that size into the parent.
3. There is no 0.425mm size in the gradation data but that size is bracketed.  The code determines the percent passing using log-linear interpolation.
4. The maximum sieve size is 0.3mm and the percent passing at that size is 32.  The percent passing the 0.425mm sieve cannot be determined and the code clears the field in the parent.
5. The minimum sieve size is 0.5mm.  The percent passing the 0.425mm sieve cannot be determined and the code clears the field in the parent.
6. The maximum sieve size is 0.3mm and the percent passing at that size is 100 therefore the percent passing the 0.425mm must also be 100.

In cases 2 to 6 above, any value typed into the 425 um field in the parent will be cleared by the code and its value inserted.  That is, if there are any gradation data, the calculated result is always used, otherwise, the code leaves whatever value may be in that field.
*************************************************