hypermesh script for solver dataname query
Hello to all the experienced programmers,
I have a question to consult with experienced peers.
I need to check the content of the input file generated by HyperMesh (Abaqus user profile), specifically regarding the entries labeled as "1st", "2nd", "3rd", and "4th".
I navigated to the following directory to locate the material.att file for Abaqus: C:\Program Files\Altair\2022.3\hwdesktop\templates\feoutput\abaqus\include
From the material.att file, I found keywords such as UseElasticCard, ElasticType, Young, and Poiss. I attempted to search for "1st" and "2nd", but unfortunately, I was only able to locate information for "3rd" and "4th". Could you please advise on how to locate data entries for "1st" and "2nd"?
The message is a bit lengthy, but I still want to know how to locate the information. Please advise.
Answers
-
Hello,
The hm_getvalue command is the right command to query data names, attributes and metadata on entities.
Datanames are generic references to the information that physically defines an entity in the HyperMesh. For instance the x, y, and z coordinates that define a node's location.
Datanames are consistent across solvers/interfaces. All available datanames are listed here: https://help.altair.com/hwdesktop/hwd/topics/reference/hm/data_names_r.htm
Or can be queried thanks to the hm_getentityinfo command. For instance: hm_getentityinfo material namedidentifier
Attributes are solver specific datanames. That's why they are defined by the solver template/interface.
You can use the 'hm_attributelist' commands (for instance "hm_attributelist mat 1 name") to query entity attributes. More details here: https://help.altair.com/hwdesktop/hwd/topics/reference/hm/hm_attributelist.htmIn your case, the attributes you're interested in are: 'UseElasticCard' and 'ElasticTypeEnumField'.
hm_getvalue mat id=1 dataname=UseElasticCard
hm_getvalue mat id=1 dataname=ElasticTypeEnumFieldRegards,
Fred.1 -
Frederic Juras_21782 said:
Hello,
The hm_getvalue command is the right command to query data names, attributes and metadata on entities.
Datanames are generic references to the information that physically defines an entity in the HyperMesh. For instance the x, y, and z coordinates that define a node's location.
Datanames are consistent across solvers/interfaces. All available datanames are listed here: https://help.altair.com/hwdesktop/hwd/topics/reference/hm/data_names_r.htm
Or can be queried thanks to the hm_getentityinfo command. For instance: hm_getentityinfo material namedidentifier
Attributes are solver specific datanames. That's why they are defined by the solver template/interface.
You can use the 'hm_attributelist' commands (for instance "hm_attributelist mat 1 name") to query entity attributes. More details here: https://help.altair.com/hwdesktop/hwd/topics/reference/hm/hm_attributelist.htmIn your case, the attributes you're interested in are: 'UseElasticCard' and 'ElasticTypeEnumField'.
hm_getvalue mat id=1 dataname=UseElasticCard
hm_getvalue mat id=1 dataname=ElasticTypeEnumFieldRegards,
Fred.yes, my answer is the same with you,but when run the command and if fail.as below picture
0