Overwrite in batchmesh
Hello everyone,
is it possible to include a syntax in the batch mesh script which defines that the newly created fe output should replace or overwrite the existing fe output in the same name? For instance, if the existing file is named as 'dyna.key', then I make some changes to the geometry and mesh it again, it should not be saved as dyna_1.key (which is now) but should overwrite the existing dyna.key every time.
the script looks like
-nogui -cad_translator step -cad_model_file E:\Datei\Results\Optimization\LS_OPT_results\Optimization_model_1\Schweller.stp -criteria_file C:\FK-Programme\Altair\hm\batchmesh\crash_5mm.criteria -param_file C:\FK-Programme\Altair\hm\batchmesh\crash_5mm.param -user_procedure POST_BATCHMESH C:\FK-Programme\Altair\hm\batchmesh\ExportMesh.tcl exportmesh 'dyna' -work_dir E:\Datei\Results\Optimization\LS_OPT_results\Optimization_model_1
Thank you. any suggestion will be greatly appreciated.
Find more posts tagged with
Hello Tinh,
I tried the following code and it seems to work fine. Just one more doubt. I had wanted the script to print 'normal termination' at the end of the file. You had suggested to include it in the 'exportdynamesh.tcl' fine which worked. But i would like to include that in the .bat file which i tried now is working. Could you please suggest a method?
The following code is the latest one i tried from the command line to ivoke the batchmesher
set SW_DIR=C:\FK-Programme\Altair\hm\batchmesh set MODEL_DIR=E:\Datei\Results\Optimization\Schweller_Optimization %SW_DIR%/hw_batchmesh.bat -nogui -cad_translator step -cad_model_file E:\Datei\Results\Optimization\Schweller_Optimization\Schweller.stp -criteria_file C:\FK-Programme\Altair\hm\batchmesh\crash_5mm.criteria -param_file C:\FK-Programme\Altair\hm\batchmesh\crash_5mm.param -user_procedure POST_BATCHMESH C:\FK-Programme\Altair\hm\batchmesh\exportdynamesh.tcl exportmesh 'dyna' -work_dir E:\Datei\Results\Optimization\Schweller_Optimization
Thank you
Hi Samraj,
how did you run it successfully last time?