How to visual thickness of 2D elems in HyperView
Answers
-
Maybe Altair's solvers have some special card allowing you to output thickness into H3D?
I use a script to write out a HWASCII file from Hypermesh/my FE solver in order to visualize the thickness in Hyperview.
0 -
-
Try this code:
*createmarkpanel elems 1 "Select Shell Elems"
*createmark elems 2 'by config' 'quad4' 'tria3' 'quad8' 'tria6'
*markintersection elems 1 elems 2
set eList [hm_getmark elems 1]
hm_markclear elems 1
hm_markclear elems 2
set fh [open "thickness.hwascii" w]
puts $fh "ALTAIR ASCII FILE"
puts $fh "\$TITLE = Thickness"
puts $fh "\$SUBCASE = 1 Subcase 1"
puts $fh "\$BINDING = ELEMENT"
puts $fh "\$COLUMN_INFO = ENTITY_ID"
puts $fh "\$RESULT_TYPE = Thickness(s)"
foreach eid $eList {
set prop_id [hm_getvalue elements id=$eid dataname=propertyid]
set thick [hm_getentityvalue props $prop_id \$PSHELL_T 0]
puts $fh [format "%d %0.3E" $eid $thick]
}
close $fh;If you have a lot of elements, maybe try FE output template.
HTH,
0 -
Thank somuch /profile/43398-qnguyen-dai/?do=hovercard' data-mentionid='43398' href='<___base_url___>/profile/43398-qnguyen-dai/' rel=''>@Q.Nguyen-Dai /emoticons/default_smile.png' srcset='/emoticons/smile@2x.png 2x' title=':)' width='20' />
0 -
If you just need to contour your thickness value of shells, you could also create a Result Math from your model (.fem or any other solver deck card).
First step is to load your model as your solver deck, not the H3D file. And select Advanced Math Template.
<?xml version="1.0" encoding="UTF-8"?>
Then you create a new result using the 'Derived Results' function.
In your function you will map a Property value to your elements, using the command 'BCPropToElem', and giving it as argument the PSHELL_Thickness get from your model.
<?xml version="1.0" encoding="UTF-8"?>
After that, a new contour will be available for you
0 -
Adriano A. Koga_21884 said:
If you just need to contour your thickness value of shells, you could also create a Result Math from your model (.fem or any other solver deck card).
First step is to load your model as your solver deck, not the H3D file. And select Advanced Math Template.
<?xml version="1.0" encoding="UTF-8"?>
Then you create a new result using the 'Derived Results' function.
In your function you will map a Property value to your elements, using the command 'BCPropToElem', and giving it as argument the PSHELL_Thickness get from your model.
<?xml version="1.0" encoding="UTF-8"?>
After that, a new contour will be available for you
Dear Adriano,
I have I used ".fem", ".h3d" and "advanced" settings but in the table browser there is no entry "P_SHEL_THICKNESS".
Do I have to check a specific output flag in Hypermesh?
Is there another explanation why I do not have this table?
Help is much appreciated.
Regards Sig
0 -
It need to be mentioned that this approach doesnt work when plotting any Derived Load Case. Also for any custom result legend is always continuous, so You need to be lucky to know your thk. intervals, and then add suited description in report how to interpret thickness interval e.g. from 3.0 to 3.5 - is it plot of thickness with tolerances of sheet 3.25+/-0.25 or its only for lowest sheet thickness 3.2 ?
But in my case thickness should change due to plasticity and i cannot get the correct plot of thickness in Expression Builder. Any idea how to get this from shell results?
0 -
Q.Nguyen-Dai said:
Try this code:
*createmarkpanel elems 1 "Select Shell Elems"
*createmark elems 2 'by config' 'quad4' 'tria3' 'quad8' 'tria6'
*markintersection elems 1 elems 2
set eList [hm_getmark elems 1]
hm_markclear elems 1
hm_markclear elems 2
set fh [open "thickness.hwascii" w]
puts $fh "ALTAIR ASCII FILE"
puts $fh "\$TITLE = Thickness"
puts $fh "\$SUBCASE = 1 Subcase 1"
puts $fh "\$BINDING = ELEMENT"
puts $fh "\$COLUMN_INFO = ENTITY_ID"
puts $fh "\$RESULT_TYPE = Thickness(s)"
foreach eid $eList {
set prop_id [hm_getvalue elements id=$eid dataname=propertyid]
set thick [hm_getentityvalue props $prop_id \$PSHELL_T 0]
puts $fh [format "%d %0.3E" $eid $thick]
}
close $fh;If you have a lot of elements, maybe try FE output template.
HTH,
hi, i am new for tcl
when i run in hypermsh,i select element ,and continue?
0 -
There are 2 points to consider in this thread:
- Can I visualize results on top of elements while they get displayed in 3D mode? The answer is YES for all elemental (centroiadal) bound data using post processing direclty in HM(POST). One can see in the picture below. This is not (yet) possible for nodal bound data (e.g. Displacements) as the dev is WIP to accomplish the proper interpolation from graphic point of view
- How can I visualize model attributes as contour? A good appraoch is still in HM using the tool "Dataname Viewer" where tabular fields are created for elements/nodes/properties/materials and can be displayed easily (you can see similar behavior using Matrix Browser)
Hope this helps further.
Thanks
Michele
0