General Mechanical

General Mechanical

Topics relate to Mechanical Enterprise, Motion, Additive Print and more

    • Hasan İlker ÇELİKER
      Subscriber

      Invalid node/element number= 0.  The BFE command is ignored. 

       

      I am getting such an error. how can i solve it?

       

      I'm doing thermal analysis. This is the code I use.
       
      CMSELL,ALL
      *GET,EMAX,ELEM,,NUM,MAX
      *GET,EMIN,ELEM,,NUM,MIN
      ALLSEL
       
      Q0=1e11
      r0=0.005
      Yi=-0.0005
      VEL=0.003
      TAU=0
       
      time_weld=10
      time_inc=0.25
      time_steps=time_weld/time_inc
      NROPT,FULL
       
      DO,i,1,time_steps,1
      WTIME=(i*time_inc)
      TIME, WTIME
       
      DO,jj,EMIN,EMAX,1
      X=CENTRX(jj)
      Y=CENTRY(jj)
      Z=CENTRZ(jj)
      CSI=Z+(VEL*(TAU-WTIME))
       
      *IF,Y,GT,Yi,THEN
      Q=Q0*exp((-3)*(X**2+CSI**2)/(r0)**2)
      *ELSE
      Q=0
      *ENDIF
       
      BFE,jj,HGEN,,Q
      *ENDDO
      SOLVE
      *ENDDO
       
      CMSEL,ALL
      BFEDELE,ALL,ALL
      ALLSEL

       

    • Ashish Khemka
      Ansys Employee

      Hi Hasan,

      The error looks due to an element with the number '0' exists in the model. Try starting jj from 1 or set jj=1.

      Regards,

      Ashish Khemka

Viewing 1 reply thread
  • You must be logged in to reply to this topic.