General Mechanical

General Mechanical

Birth and death technique

    • JKPete07
      Subscriber

      Hi!


      I am trying to kill elements in a wooden beam based on temperature.


      This is the code I am using:



      *get,myncmls,active,,solu,ncmls              
      *if,myncmls,gt,0,then                     
          cmsel,s,elem_to_kill_body               
          nsle,r,                        



         


          nsel,r,temp,,30,200                


          *get,numnode,node,,count                 
          *if,numnode,gt,0,then
              
           
                             



              esln                       
              *get,numelem,elem,,count


      *if,numelem,gt,0,then


      ekill,all


      *endif


      *endif
      allsel
      *else

      fini
      /solu
      *endif 


       I am not able to see any changes in the solution


      I have uploaded the file


      Please help me in this regard


       

Viewing 0 reply threads
  • You must be logged in to reply to this topic.