Jump to content
Sign in to follow this  

Recommended Posts

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

Share this post


Link to post
Share on other sites

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?

Livil Lyle likes this

Share this post


Link to post
Share on other sites
5 hours ago, tinh 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

matrix_browser_query.PNG

model.PNG

Share this post


Link to post
Share on other sites

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

Share this post


Link to post
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
You are posting as a guest. If you have an account, please sign in.
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Sign in to follow this  

×
×
  • Create New...