BatchMesher supports grid-based computing. The default grid is "PBS Pro".
The "Grid" option is disabled by default in BatchMesher's base configuration (loaded from the <altair_home>\hm\batchmesh\hw_batchmesh.cfg file). To enable BatchMesher grid computing, select Load Config from the File menu and load the <altair_home>\hm\batchmesh\hw_batchmesh_grid.cfg file.
After loading hw_batchmesh_grid.cfg, a new Grid option displays alongside Local in the File menu’s Run Options sub-menu. Once this option is activated, it will remain even if you load subsequent configuration files.
To use the Grid option, you also need to modify/configure three default scripts: qsub.tcl, qstat.tcl, and qdel.tcl (all of which can be found in the same directory as mentioned above).
The exact script configuration depends on the grid system you use, and requires detailed knowledge of your current grid system. The three default scripts were created for use with Unix PBS Pro clusters and will work without modification if your cluster configuration is similar to the default configuration.
These scripts are described below.
qsub.tcl -batch_args {args} -work_dir dir
This script creates a node-side script and submits the job to the computing grid. If an error is encountered at job submission, this script returns the word "error". Otherwise, it returns the unique JobID for the submitted job.
args
The command line for one BatchMesher job, contained in curly braces. This line is created by the BatchMesher GUI, and has to be written to the node-side script.
dir
Specifies the directory where the output files are to be written.
qsub.tcl -batch_args {/soft/hw/altair/scripts/hw_batchmesh -nogui -cad_translator hm -criteria_file /homes/username/configs/nvh10.criteria -param_file /homes/username/configs/nvh10.param -cad_model_file /homes/username/models/model.hm -nobg} -work_dir /homes/username/results/bm_060209_001/
Returns JobID:
1234
qstat.tcl JobIDList
This script gets status information for jobs with specified JobIDs. It returns a list of JobIDs paired with status mnemonics.
R – Job is running
Q – Job is queued, eligible to run
E – Job is exiting after having run
W – Job is waiting for idle resource
U – Status undefined (if status not R, Q, E or W)
none – Information about job was not found
JobIDList
The list of unique JobIDs for submitted jobs:
qstat.tcl 1234 1235 1236 1239
Returns JobID status list:
1234 none
1235 R
1236 R
1239 Q
qstat.tcl JobIDList
This script terminates jobs with specified JobIDs. It returns 0 if the jobs terminated without errors or "none" if the jobs cannot be terminated or there was a termination error.
JobIDList
The list of unique JobIDs for submitted jobs:
qdel.tcl 1234 1235
Returns termination status:
0