Retrive BeamSction ID

brahmadev
brahmadev Altair Community Member
edited October 2020 in Community Q&A


Hello Forum!

 

How do I retrieve the beam section ID assigned for a bar2 (CBAR) element in NASTRAN profile?

 and for any given beam section ID how to I determine a given ID is 'shell' or 'generic'

Thanks in advance.

Regards,

Brahmadev.

Answers

  • Jeffersondhv
    Jeffersondhv Altair Community Member
    edited March 2019

    Hello brahmadev,

     

    It's been a while since I've worked with beam sections or the NASTRAN profile, but I would suggest to you looking into the matrix browser.

    Within the matrix browser you can see the information there is regarding all the properties the elements were assigned.

    From the datanames you can then identify the path for the intended information within the database.

     

    Hope this helps.

    Best regards

  • llyle_20499
    llyle_20499 New Altair Community Member
    edited March 2019

    Hi Brahmadev,

     

    You can find the config of the element using: 

    hm_getvalue elems id=$elemID dataname=config

    This will return a number which is associated with the type of element in this case Bar2 (60)

     

    To get if it is shell or generic find the beamsect id:

    hm_getvalue beamsects id=$beamId dataname=sectiontype

    This will again return a number which will be associated with the sectiontype. 

     

    Refer datanames help for more info. 

  • brahmadev
    brahmadev Altair Community Member
    edited March 2019

    You can find the config of the element using: 

    hm_getvalue elems id=$elemID dataname=config

    This will return a number which is associated with the type of element in this case Bar2 (60)

     

     

    Here I want to retrieve the the beam section ID which has been assigned to a given CBAR element...

  • tinh
    tinh Altair Community Member
    edited March 2019

    beam section is assigned to property, not bar elem.

    from a bar elem, get its property (dataname: 'collector.propertyid'}

    then from that property id, get beamsection id (attribute name: \$BeamSec)

  • brahmadev
    brahmadev Altair Community Member
    edited April 2019

    property  dataname: 'collector.propertyid'}

    beamsection id (attribute name: \$BeamSec)

     

    Where do I find the ' attributes name or dataname  '  in help files as in future I may require some other. So, from where should I refer these names ?

     

     

  • tinh
    tinh Altair Community Member
    edited April 2019

    Data names are in hm reference help.

    Attrib names: use hm_attributelist

  • brahmadev
    brahmadev Altair Community Member
    edited April 2019

    Woah thanks a lot tinh . This has helped me a lot.

     

    Regards,

    Brahmadev.