Hypermesh .tcl number of failed Jacobian
Hi,
I would like to check the number of elements with Jacobian 2D and 3D less than 0 of all the key files under a folder. My current commands are as follow:
set fpt [open [tk_getSaveFile -defaultextension .csv] w]
puts $fpt 'mass,2D<0,3D<0'
*createmark comps 1 all
set a [hm_getmass comps 1]
set mass [lindex $a 0]
*createmark elems 1 all
*createmark elems 2
*elementtestjacobian elems 1 0 2 2 0 ' 2D Jacobian '
set jacobian2d [hm_get2delemchecktestval jacobian2d]
*createmark elems 1 all
*createmark elems 2
*elementtestjacobian elems 1 0 2 3 0 ' 3D Jacobian '
set jacobian3d [hm_getmarkvalue elems 2 jacobian3d 0]
puts $fpt '$mass,$jacobian2d,$jacobian3d'
close $fpt
However, this does not give me the correct number of failed elements. I am wondering if anyone can help take a look? Thank!
Answers
-
Altair Forum User said:
Hi,
I would like to check the number of elements with Jacobian 2D and 3D less than 0 of all the key files under a folder. My current commands are as follow:
set fpt [open [tk_getSaveFile -defaultextension .csv] w]
puts $fpt 'mass,2D<0,3D<0'
*createmark comps 1 all
set a [hm_getmass comps 1]
set mass [lindex $a 0]*createmark elems 1 all
*createmark elems 2
*elementtestjacobian elems 1 0 2 2 0 ' 2D Jacobian '
set jacobian2d [hm_marklength elems 2]*createmark elems 1 all
*createmark elems 2
*elementtestjacobian elems 1 0 2 3 0 ' 3D Jacobian '
set jacobian3d [hm_marklength elems 2]puts $fpt '$mass,$jacobian2d,$jacobian3d'
close $fptHowever, this does not give me the correct number of failed elements. I am wondering if anyone can help take a look? Thank!
Please modify as above bold text
0