User Procedures
Procedures can be customized for pre-run, post-run, pre-geometry load, post-geometry load, pre-batchmesh, and post-batchmesh.
- Exporting a mesh in solver format.
- Generating the midsurface of a thin solid geometry.
- Performing a surface offset to move a sheet geometry to a midsurface location.
- Naming and numbering parts to user-specific requirements.
- Pre-geometry load
- Executed immediately after the job begins, before the input model is imported.
- Pre-batch mesh
- Executed immediately after the input model is imported, before the batch mesh begins. Examples include extracting a midsurface or performing a surface offset.
- Post-batch mesh
- Executed immediately after the batch mesh process is complete. Examples include creating solver specific cards, or exporting the mesh in a specific format.
::hmbm::gVarArray
contains variables accessible by you.CADImportOpt
- String of CAD import options.
cadtype
- Type of model file.
critername
- Criteria file name, excluding the path.
criterpath
- Criteria file name, including the path.
CurrentEventName
modelname
- Input model file name, excluding the path.
modelpath
- Input model file name, including the path.
outmodelname
- Output model file name, excluding the path.
outpath
- Output file path.
paramname
- Parameter file name, excluding the path.
parampath
- Parameter file name, including the path.
POST_BATCHMESH,tclparameters
- Parameters passed to the post-batch mesh procedure. Only available when such a procedure is defined.
POST_BATCHMESH,tclprocedure
- Post-batch mesh procedure name. Only available when such a procedure is defined.
POST_BATCHMESH,tclscriptpath
- Post-batch mesh script name, including the path. Only available when such a procedure is defined.
PRE_BATCHMESH,tclparameters
- Parameters passed to the pre-batch mesh procedure. Only available when such a procedure is defined.
PRE_BATCHMESH,tclprocedure
- Pre-batch mesh procedure name. Only available when such a procedure is defined.
PRE_BATCHMESH,tclscriptpath
- Pre-batch mesh script name, including the path. Only available when such a procedure is defined.
PRE_GEOMETRY_LOAD,tclparameters
- Parameters passed to the pre-geometry load procedure. Only available when such a procedure is defined.
PRE_GEOMETRY_LOAD,tclprocedure
- Pre-geometry load procedure name. Only available when such a procedure is defined.
PRE_GEOMETRY_LOAD,tclscriptpath
- Pre-geometry load script name, including the path. Only available when such a procedure is defined.
resfilename
- Output result file name, excluding the path.
Tcl scripts must not automatically run any procedures, as this is handled by BatchMesher. Doing so will generate an error or unexpected results.
hm_answernext "yes" *writefile "$::hmbm::gVarArray(outmodelname)" 0
- Pre-run
- Executed before the first model/job starts.
- Post-run
- Executed after the last model/job completes.