The following TCL commands are available:
Load |
The Load command is used to read the data from either the grid file or an existing RTM save file. The GRF file is loaded to start a new run. load gridfile_name phlex "Two Phase Flow"
To restart a run from the binary/ASCII save file: load savefile restart step_number |
||||||||
Source |
The source command is used to read in another TCL file. These additional TCL files are usually used to define a user proc function. source tclfile_name |
||||||||
pset |
The pset command is used to initialize variables such as job control parameters or fluid properties. pset variable_name value A variable can be re-initialized many times. For example, you can run the job with a constant time step value for a few time steps, and then change the time step before continuing the analysis. |
||||||||
solve |
The solve command is used to solve the problem after reading the data and initializing the variables. solve "solver" Valid entries for solver are: GMRES and Sparse. GMRES is an iterative solver. It will soon be replaced by PETSc. Sparse is a direct solver and it is the preferred solver and the default. When invoking the solve command for the first time, you have the option to initialize the flow field. This can be done by adding extra options to the solve command. The following table gives the syntax for each option. |
||||||||
interactive |
The interactive command is invoked to display the GUI for either post-processing or running the job interactively. |
||||||||
estimate |
The estimate command is used to compute the solution error estimates. Before issuing this command, ensure that the error estimation and mesh adaptation parameter are set properly. |
||||||||
refine |
The refine command is used to refine the mesh. The mesh refinement can be isotropic or directional over the entire domain or portions of the flow domain. refine domain direction
|
||||||||
enrich |
The enrich command is used to enrich the polynomial order of the elements in the mesh. Mesh enrichment can be isotropic or directional over the entire domain or portions of the flow domain. enrich domain direction order
|
||||||||
adapt |
The adapt command is used to automatically refine/enrich mesh. The solution error estimates must be computed and the adaptation parameters set properly before issuing this command. |
||||||||
save |
The save command is used to save the solution into a file. save save_file_name binary save save_file_name ascii |
||||||||
exit |
The exit command must be invoked to exit the job after completing the analysis. |