HyperMesh scripting : error skip

Matthieu_22066
Matthieu_22066 Altair Community Member
edited November 2021 in Community Q&A

Hello, 

 

I am currently working with a script to mesh geometries successively on Hypermesh. I have hundreds of them so I lauch the mesh during the night mostly.

The geometries are the same, just with differents radiuses of beams and fillets. 

However, I still don't know why, I always have 1 geometry that goes wrong (never more than one, and always a different one at each run. When I change some parameters just for this one it goes well, but i loose too much time because the software stops.

Is there a way to skip an error message ? Something I could implement in the code below. 

 

 

Thanks for any help, 

Matthieu.

for {set k 1} {$k<=3} {incr k} { for {set j 0} {$j<=4} {incr j} { for {set i 1} {$i <=9} {incr i} {  #IMPORT CATPART *start_batch_import 3 *setgeomrefinelevel 1 *geomimport "auto_detect" "G:/Matthieu/Convergence1/topo$k/strut$j/file$i/file$i.CATPart" "CleanupTol=-0.01" "CreationType=Parts" "DoNotMergeEdges=off" "ImportBlanked=off" "SplitComponents=Part" "TargetUnits=CAD units" *end_batch_import  *drawlistresetstyle   #3DTETRA MESH 1st element : MaxElem=0.01, min=0.0005, Trias *createstringarray 3 "pars: post_cln vol_smth vol_smth2 nlayer_tet=11 tet_clps='0.500000,0.300000,0.500000,1.000000,0.505000,0.100000'" \   "tet: 99 1.1 -1 0 1.1 0" "2d: 1 0 4 0.02 0.002 3.01 1" *createmark solids 1 "all" *tetmesh solids 1 0 elements 0 -1 1 3 #3DTETRA MESH 2nd element #*createstringarray 3 "pars: post_cln elem_order=2 nlayer_tet=5 tet_clps='0.500000,0.300000,0.500000,1.000000,0.505000,0.100000'" \   "tet: 1123 1.1 -1 0 1.1 0" "2d: 1 0 4 0.01 0.001 5 1" #*createmark solids 1 1 #*tetmesh solids 1 0 elements 0 -1 1 3      #SYM1 *createmark elements 1 1-50000000 *duplicatemark elements 1 1 *createplane 1 -0.707106781 -0.707106781 0 -0.5 0 0 *reflectmarkwithoption elements 1 1 0  #SYM2 *createmark elements 1 1-50000000 *duplicatemark elements 1 1 *createplane 1 -0.19245009 0.19245009 0 0 0 -0.5 *reflectmarkwithoption elements 1 1 0  #EQUIVALENCE *createmark elements 1 "all" *equivalence elements 1 0.0001 1 0 0  #SAVE *writefile "G:/Matthieu/Convergence1/topo$k/strut$j/file$i/file$i.hm" 1  #EXPORT SOLVER DECK NASTRAN *createstringarray 2 "HM_NODEELEMS_SET_COMPRESS_SKIP " "HMMATCOMMENTS_XML" \   "IDRULES_SKIP" *feoutputwithdata "G:/ALTAIR_2019/templates/feoutput/nastranNX/general" "G:/Matthieu/Convergence1/topo$k/strut$j/file$i/file$i.bdf" 0 0 1 1 2  #DELETE *createmark elements 1 "all" *deletemark elements 1 *createmark solids 1 "all" *deletesolidswithelems 1 1 1 *deleteelementsmode 0 *createmark surfaces 1 "all" *deletemark surfaces 1 *deleteelementsmode 3  } } } 

Answers