4SIGHT Manual: A Computer Program for Modelling Degradation of Underground Low Level Waste Concrete Vaults/Program Execution

3Program Execution

4SIGHT was written to be executed in either interactive or batch mode. The interactive mode simply waits for the user to type in the various input parameters at run-time. When executed in batch mode, the user first edits an ASCII file containing the input parameters as if typed during interactive mode. This ASCII file is then included at the command line when running 4SIGHT.

3.1Interactive Mode

When run interactively, 4SIGHT simply waits for the user to enter input parameters. The user specifies the end of the list entering either quit or exit. For example, assuming the executable program is in the directory C:\4SIGHT, interactive mode is initiated by simply typing in the program name:

C:\4SIGHT\4SIGHT

The program responds with:

Enter commands:

At this point 4sight is simply waiting for the user to input program parameters. The commands are given one per line:

DIFF = 2.0E-12
WC = 0.45
TIME = 100000
quit

After which, 4SIGHT begins the calculation, printing intermediate results to the screen.

3.2Batch Mode

When run in batch mode the user specifies an input file at the command line. This input file simply contains any number of input parameters, as in the interactive mode. For example, assume the following text is saved into a file called input.dat:

DIFF = 5.0E-12
THICKNESS = 1.0
WC = 0.50
EXTERNAL Cl = 0.150
EXTERNAL Na = 0.150
DEPTH = 0.25

This file can be created by any ASCII editor such as the DOS edit program or the UNIX vi program. When using a commercial word processing program to create input files make sure that the output is in plain ASCII. As a check, give the C:\type input.dat command at the DOS prompt. The text should appear as typed. Note that neither quit nor exit are required in the input file. To use input files with 4SIGHT, simply include that file name on the DOS command line:

C:\4SIGHT\4SIGHT input.dat

The output from 4SIGHT goes to the screen. This is useful for initial calculations and trial runs. However, if the user desires to save the output to an ASCII file, simply use redirection of the output:

C:\4SIGHT\4SIGHT input.dat >output.dat

This example uses the commands in the file input.dat as input parameters and saves the output in the file output.dat.

3.3Plotting Results

The output from 4SIGHT has been formatted with quotes (") and tabs to facilitate incorporating them into commercial spreadsheet programs. Once incorporated into the spreadsheet program, the user can plot either the sulfate and chloride depth versus time from the intermediate results, or the ion concentration as a function of depth from the final state of the system.


This work is in the public domain in the United States because it is a work of the United States federal government (see 17 U.S.C. 105).

Public domainPublic domainfalsefalse