Command Line Options
Command Line Options
Instead of starting T/HIS using the Command shell it is also possible to start T/HIS from the command line with a number of optional input parameters. Starting T/HIS from the command line offers a number of advantages.
- Faster start-up is possible by pre-selecting the device type.
- The input filename can be specified and opened automatically.
- Faster start-up is possible by pre-selecting the device type
Argument format:
<application name> (<arg 1>) (<arg n>) (<input filename>)
T/HIS 22.1 can be started with a number of optional command line options
| Graphics device type |
-d=<device type>
eg -d=default |
Valid device types are:
|
|
| opengl | OpenGL | ||
| tty | No windows | ||
| default | OpenGL | ||
| Command file name |
-cf=<filename>
eg -cf=run_1.tcf |
Any valid T/HIS command file filename | |
|
FAST-TCF input file |
-tcf=<filename>
eg -tcf=run_1.inp |
Any valid T/HIS FAST-TCF command file filename | |
|
Settings file |
-set=<filename>
eg -set=this001.set |
Any valid T/HIS settings file | |
| JavaScript |
-js=<filename>
eg -js=sort_curve.js |
Any valid T/HIS JavaScript file | |
| JavaScript Arguments |
-js_arg=<argument>
eg -js_arg=abc |
Any valid string.
The arguments can be accessed in the script by using the global arguments array. Multiple arguments can be given to a script by using more than one -js_arg command line argument. |
|
|
Ansys LS-DYNA Model
All the files associated with the model are opened and the contents scanned. |
<filename>
eg run_1.thf |
Any filename from the analysis
This should be the last argument on the command line. |
|
|
Ansys LS-DYNA Model list
Specify a file containing a list of models for T/HIS to automatically open. |
-model_list=<filename>
eg -model_List=job_list |
The model list file should contain the full pathname of one file from each model that T/HIS should open. Each file should be on a seperate line and it should be the first item on each line (other items seperated with commas can be specified on the same line for use with REPORTER). | |
|
Model Database file
Specify the name of the default model database file. |
-mdb=<filename>
eg -mdb=database.xml |
The model database file is an XML format file that contains information on where models are located along with a brief description of each model The model database can be used to easily select multiple models..
|
|
|
T/HIS curve file
Specify a T/HIS curve file containing one or more curves for T/HIS to automatically open. |
-cur=<filename>
or -curve=<filename> eg -cur=test.cur |
||
|
T/HIS curve file list
Specify a file containing a list of curve files for T/HIS to automatically open. |
-curve_list=<filename>
or -curve=<filename> eg -cur=test.cur |
The curve list file should contain the full pathname of each cure file that you want T/HIS to open. Each file should be on a separate line. | |
|
T/HIS bulk data file
Specify a T/HIS BDF file containing one or more curves for T/HIS to automatically open. |
-bdf=<filename>
eg -bdf=test.cur |
||
| Automatically maximises the T/HIS window so that it occupies the full screen. | -maximise | ||
| Read THF file | -thf=<yes/no> | ||
| Read XTF file | -xtf=<yes/no> | ||
| Read LSDA (binout) file | -lsda=<yes/no> | ||
| Read ASCII files | -ascii=<yes/no> | ||
|
Specifying a custom
"oa_pref" file.
This causes an extra, optional "oa_pref" file to be read. |
-pref=<filename> |
<filename> must be a valid "oa_pref" file.
If it has no path prefixed, the file is assumed to be in the OA_INSTALL directory. Any legal filename may be used. |
|
| Use ELOUT instead of ELOUTDET | -use_elout=<yes/no> | By default T/HIS uses the ELOUTDET part of the LSDA file in preference to ELOUT if the LSDA file contains both. This option can be used to force T/HIS to use the ELOUT data when reading Shell and ThickShell data as the ELOUT data can be in the global coordinate system instead of the element local coordinate system. | |
| Write out data in the ISO-MME format (See WRITE Options ) | -write_iso_mme |
This option should be used in conjunction with the -iso_output_dir and -iso_config options. A model to extract the data from also needs to be specified.
As an example:
this.exe -write_iso_mme -iso_output_dir=<directory> -iso_config=<filename> <model_filename> |
|
| Specify the output directory to write data to for the -write_iso_mme option. | -iso_output_dir=<directory> | ||
| Specify the configuration file to use for the -write_iso_mme option. | -iso_config=<filename> | ||
| Specify a directory for T/HIS to start in. |
-start_in=<directory>
|
Any valid directory | |
| Set the width of the T/HIS graph window (in pixels) |
-xres=<size>
eg -xres=800 |
||
| Set the height of the T/HIS graph window (in pixels) |
-yres=<size>
eg -yres=600 |
||
| Run T/HIS without the console window. | -noconsole | Windows only. | |
| Run T/HIS in "batch" mode where the main application window is not displayed on the screen. | -batch |
For this option to work you must also specify a command file "
-cf=filename
" and the name of the PTF file to open.
This option will automatically set " -exit " so that D3PLOT terminates after playing the command file. |
|
|
Redirect output from the console window to a file on Windows.
To redirect output on Unix/Linux use the shell redirection options (typically > for <stdout>, & for <stderr>) |
-eo=<filename>
-eo -eo=default |
-eo=<filename> is designed for the user to suppress the console and redirect logfile output to the specified filename. In order to permit multiple sessions to coexist on the same machine the process ID will be appended to the <name> part of the filename to give <name>_pid.<ext>.
If plain "-eo" or "-eo=default" are found then filename generation is automatic, and the first valid of: %TEMP%\this_log_<pid>.txt %TMP%\this_log_<pid>.txt %HOMESHARE%\this_log_<pid>.txt %USERPROFILE%\this_log_<pid>.txt will be used. |
|
|
Read/Write checkpoint files
Start writing the checkpoint files upon T/HIS startup Read checkpoint files and Show checkpoint playback panel upon T/HIS startup. Directory path to write checkpoint files |
|
TRUE/FALSE, turn on/off the writing of the checkpoint files (default is FALSE) TRUE/FALSE, turn off the initial checkpoint files panel (default is FALSE) If the writing of the checkpoint files is OFF, the reading will also be OFF. <directory> must be a valid directory name on your system. If the value is <none> then the checkpoint files are not recorded for the T/HIS session. |
|
| Stop and exit after command file | -exit | ||
Some examples for T/HIS might be:
| pathname/this12.exe -d=x run_2.thf | (Use device X, open a .thf file) |
| pathname/this12.exe -d=tty cf=batch.tcf -exit | (No graphics, run command file) |
Note that no spaces should be left in the syntax <arg>=<value>.
| For example: | " -d = x " is illegal. |
| Correct syntax is: | " -d=x " |