hypermesh script for solver dataname query

shiucomp5
shiucomp5 Altair Community Member
edited April 19 in Community Q&A

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".

image

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

image

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"?

image

The message is a bit lengthy, but I still want to know how to locate the information. Please advise.

Answers

  • Fred_Juras
    Fred_Juras
    Altair Employee
    edited April 15

    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.htm

    In 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=ElasticTypeEnumField

     

    Regards,
    Fred.

  • shiucomp5
    shiucomp5 Altair Community Member
    edited April 19

    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.htm

    In 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=ElasticTypeEnumField

     

    Regards,
    Fred.

    yes, my answer is the same with you,but when run the command and if fail.as below picture

    image