Export Nodal Stresses / Thermal Analysis
Hey guys,
I want to export nodal stresses from a model given in HyperMesh and write them into a .csv-file. The important thing is to only use HyperMesh, because I want to run a .tcl-script to customize and automate this procedure in a following step. Do you have any ideas how this could work without using HyperView or any other post-processing tool?
Besides, I was wondering if it's possible to start a Thermal Analysis and placing the thermal load on elements - and not on nodes how it is usually done. Could somebody help me out here?
Thanks in advance and Greetings from Germany
Simon
Answers
-
GPSTRESS just has 2 formats H3D and HM
Output it with format HM (*.res)
Load this *.res file into hypermesh
In panel post>xy plots>results curve, create a stress curve 'along nodes' will help you extract gpstress at nodes, then query curve data to export to csv file
Can you do it?
0 -
Altair Forum User said:
GPSTRESS just has 2 formats H3D and HM
Output it with format HM (*.res)
Load this *.res file into hypermesh
In panel post>xy plots>results curve, create a stress curve 'along nodes' will help you extract gpstress at nodes, then query curve data to export to csv file
Can you do it?
Thank you for your quick reply.
Using the Matrix Browser for querying the curve data only gives me the Curve Id. How can I get to the gpstresses of the curve?
Attached you'll find Screenshots of the model (all stresses of the blue component should be exported, is it also possible to do it with a curve?) and the information of the curve in the Matrix Browser.
Kind regards,
Simon
0 -
you can use hm_getvalue to query stress values of the curve:
....
#before plotting curve, get node list:
set NodeList [hm_getlist nodes 1]
*plotnodelist 1
set XY_CurveValues [hm_getvalue curves id=[hm_latestentityid curves] dataname=points]
set StressValues [dict values $XY_CurveValues]
set buf ''
foreach NodeId $NodeList Stress $StressValues {
append buf ${NodeId},$Stress \n
}
set fpt [open sample.csv w]
puts $fpt $buf
close $fpt
0 -
It's finally working.
Thank you so much, you helped us a lot.
0