FILE

The FILE command loads a new model from a dataset file, or executes commands from a Command file.

Format

Arguments

 
COMMAND=c
Specifies the file name of a file that contains Adams Solver (FORTRAN) commands. The file name may include the directory on operating systems that support path names, such as Linux. Adams Solver (FORTRAN) assumes an .acf file extension if you do not specify one. Because the COMMAND argument and value can be at most eighty characters long, the file name and path name are limited from seventy-two characters (if you do not abbreviate COMMAND=) to seventy-six characters (if you abbreviate COMMAND= to COM=).

Range: All printable characters except “!”, “;”, “,” and “&”
MODEL=c
Specifies the file name of an Adams Solver (FORTRAN) model definition file.

The file name may include the directory on operating systems that support path names, such as Linux. Adams Solver (FORTRAN) assumes an .adm file extension if you do not specify one. Because the argument and value can be at most eighty characters long, the file name and path are limited from seventy-three characters (if you do not abbreviate MODEL=) to seventy-six characters (if you abbreviate MODEL= to MOD=).

Range: All printable characters except “!”, “;”, “,” and “&”
OUTPUT_PREFIX=c
Optionally, specifies a new file base name for output files that Adams Solver (FORTRAN) generates by subsequent simulations. The file extensions conform to standard Adams Solver (FORTRAN) naming conventions. If you do not specify an OUTPUT_PREFIX argument, Adams Solver (FORTRAN) defaults to the basename of the MODEL argument. Because the OUTPUT_PREFIX argument and value can be at most eighty characters long, the basename and path are limited from sixty-six characters (if you do not abbreviate OUTPUT_PREFIX) to seventy-six characters (if you abbreviate OUTPUT_PREFIX to OUT=).

Range: All printable characters except “!”, “;”, “,” and “&”

Extended Definition

The FILE command either restarts Adams Solver (FORTRAN) with a new model, or a executes a set of commands from a file.
The MODEL argument specifies a new dataset (.adm) file. Adams Solver (FORTRAN) closes any output files from a previous simulation, and then completely restarts by setting the simulation time to zero and reading the new model. Next, Adams Solver (FORTRAN) prompts you for a new command, just as if Adams Solver (FORTRAN) had read the model when first started. By default, the output files use the same base name as the model file. The optional OUTPUT_PREFIX argument specifies a different base name, if needed.
The COMMAND argument specifies a file containing Adams Solver (FORTRAN) commands. Adams Solver (FORTRAN) reads and executes the commands in the file. If the FILE command was interactive, Adams Solver (FORTRAN) returns to interactive input when the command file is exhausted. If the FILE command was in a command file itself, Adams Solver (FORTRAN) returns to reading commands from that file. Command files can contain other FILE commands, nested up to 10 files deep.
 
Tip:  
The FILE/MODEL= command allows you to execute a series of simulations within one Adams Solver (FORTRAN) run. This may be quicker and more convenient than invoking Adams Solver (FORTRAN) separately for each simulation.
Although the FILE command may be used to repeatedly reload the same model, the SAVE and RELOAD combination is much quicker than rereading the original dataset.
Caution:  
The COMMAND argument does not automatically load a new model, it executes commands just as they appear in the specified file. Unlike a Command file used to start Adams Solver (FORTRAN), a Command file read here must start with an Adams Solver (FORTRAN) command, not input and output file names.

Examples

FILE/MODEL=TURN45
This FILE command loads dataset TURN45.ADM. The output files default to TURN45.REQ, TURN45.GRA, etc.
FILE/MODEL=TURN45,OUTPUT_PREFIX=TEST2
This FILE command also loads dataset TURN45.ADM, but the output files are TEST2.REQ, TEST2.GRA, etc.
See other Simulation available.