Jump to content
vreddy

Getting material data by id

Recommended Posts

Hello  @vreddy @timonq

 

Whatever the solver profile, manually change the material data value in hypermesh, and read the command.tcl file.

Suppose you have changed the density (rho), you will notice the following reflected in your command file: (hypermesh 2017. In older versions, you can find it in "attributeupdatedouble")

 

*setvalue mats id=41 STATUS=2 183={8.77e-009}

 

which means "183" is the parameter code. Since you have the attribute dataname now, you can query it in your script like so:

 

hm_getvalue mats id=41 dataname=183

This will return the rho (density) value currently assigned to the field! 

timonq likes this

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.


×
×
  • Create New...