Find more posts tagged with
Sort by:
1 - 11 of
111
If you have HM model with shell elements, thickness is defined via component property, you can test the following code:
*createmarkpanel comps 1 'Select Component' set mycomps [hm_getmark comps 1] hm_markclear comps 1; set myHMDir [file dirname [hm_info hmfilename]] set outFile 'thickness.hwascii' set fileTypes { {'HWASCII' {.hwascii} } {'All files' *} } set fileName [ tk_getSaveFile -filetypes $fileTypes \ -title 'HWASCII data' \ -initialdir $myHMDir \ -initialfile $outFile ] set fh [ open $fileName w ] puts $fh 'ALTAIR ASCII FILE' puts $fh '\$TITLE = Static Analysis' puts $fh '\$SUBCASE = 1 Subcase 1' puts $fh '\$BINDING = ELEMENT' puts $fh '\$COLUMN_INFO = ENTITY_ID' puts $fh '\$RESULT_TYPE = Thickness(s)' puts $fh '\$DELIMITER = ;' foreach i $mycomps { set cname [hm_entityinfo name components $i] set elems [hm_elemlist id $cname] set prop [ hm_getvalue comps id=$i dataname=propertyid ] set thickness [ hm_getentityvalue props $prop \$PSHELL_T 0 ]; #puts [format '%d %s %d T=%0.3f' $i $cname $prop $thickness] foreach eid $elems { puts $fh [format '%d;%0.6E' $eid $thickness] } } close $fh;
If this macro was executed successfully, you get a file 'thickness.hwascii'. Export your FE model to Optistruct format for example, you got 'mesh.fem'.
Within Hyperview, load 'mesh.fem' & 'thickness.hwascii', you can visualize the shell thickness now.
Here's my screenshot:
Note: My script was tested with NASTRAN profile. Maybe you need some adaptation for another profile.
Hi,
It is not possible to visualize the shell thickness in HyperView, as of now. But this feature will be updated in the coming versions.