HM Macro for Updating Beam properties in DYNA profile

Altair Forum User
Altair Forum User
Altair Employee
edited October 2020 in Community Q&A

hi,

 

I am trying to prepare the HM Macro for Updating Beam properties in LS DYNA profile.

 

I want to supress the beam third node and need to update beam Shear force factor to 1.

Macro was working fine. but along with the above updates shear force factor for shell properties also updating.

please  suggest the modifications please.

 

please find the macro below.

 

*createmark elements 1 'by config' 'bar2'
*maskentitymark elements 1 0
*maskreverse elements
*startnotehistorystate {Attached attributes to elements}
*createmark elements 1 'displayed'
*attributeupdateintmark elements 1 4153 9 2 0 1
*createmark elements 1 'displayed'
*attributeupdateintmark elements 1 3121 9 1 0 1
*endnotehistorystate {Attached attributes to elements}
*startnotehistorystate {Attached attributes to properties}
*displaycollectorwithfilter components 'none' '' 1 0
*displaycollectorwithfilter components 'all' '' 1 0
*displaycollectorwithfilter components 'none' '' 1 0
*displaycollectorwithfilter components 'all' '' 1 0
*view 'iso1'
*drawlistresetstyle 
*createmark elements 1 'by config' 'bar2'
*maskentitymark elements 1 0
*maskreverse elements
*startnotehistorystate {Attached attributes to properties}
*createmark properties 1 'displayed'
*attributeupdatedoublemark properties 1 402 9 1 0 1
*createmark properties 1 'displayed'
*attributeupdateintmark properties 1 458 9 2 0 0
*endnotehistorystate {Attached attributes to properties}
*displaycollectorwithfilter components 'none' '' 1 0
*displaycollectorwithfilter components 'all' '' 1 0
*view 'iso1'
*Isolate 1D Elements

 

 

Answers

  • tinh
    tinh Altair Community Member
    edited April 2018

    When you first *createmark elems 'by config' bar2

    then don't mask it (mask &  reverse), because when you reverse mask, some other elems may be displayed

    just *createmark 'by config' bar2 and then update (*attributeupdate...)

    do not *createmark properties 'by displayed', instead, first *createmark elems 'by config' bar2

    then retrieve their properties by hm_getvalue and update those properties

    if you mark properties 'by displayed', some other properties may be selected and updated!