General Mechanical

General Mechanical

Topics related to Mechanical Enterprise, Motion, Additive Print and more.

SIMULATION | DOUBLE ELLIPSOIDAL HEAT SOURCE MODEL ||

    • sravank
      Subscriber

      Hai


      I have a code for simulation of double ellipsoidal heat source model. But getting parallel(two) directional flows.


      Am attaching the code of it. Can any one resolve the error in the code. Kindly help me to slove the problem.


      Thank you


      Kindly find the attachment.

    • Rob
      Forum Moderator

      Please provide more details, and include images within the text: staff are not permitted to open/download attachments. 

    • sravank
      Subscriber

      CMSEL,ALL


      *GET,EMAX,ELEM,,NUM,MAX


      *GET,EMIN,ELEM,,NUM,MIN


      ALLSEL


       


      AUTOTS,ON


       


      TIME_WELD=200


      DT=1


      A=0.003


      B=0.004


      C1=0.004


      C2=0.016 !A, B AND C ARE JUST THE HEAT SOURCE DIMENSIONS


      TAU=0 !TIME DELAY


      FF=0.4 !FRACTION OF HEAT ON THE FRONT PART OF THE HEAT SOURCE


      FR=1.6 !FRACTION OF HEAT ON THE REAR PART OF THE HEAT SOURCE


      Q=3840 !WELDING ENERGY J/S (W)


      VEL=0.002 !WELDING SPEED


      EE=2.71 !I HAD TO DEFINE THE EULER NUMBER AS 2.71 INSTEAD OF USING exp() DUE TO UNSTABILITIES ON MY RESULTS


       


      NPT=TIME_WELD/DT


                                        a


      *DO,ii,1,NPT,1 !TIME INCREMENT


      WTIME=(ii/2)


      TIME,WTIME


       


      HCENTER=VEL*WTIME !HEAT SOURCE CENTER


       


      *DO,jj,EMIN,EMAX,1 !SELECTS THE CENTROID OF EVERY ELEMENT


       


      X=CENTRX(jj)


      Y=CENTRY(jj)


      Z=CENTRZ(jj)


       


      CSI=Y+(VEL*(TAU-WTIME)) !MOVING COORDINATE (IT MOVES THROUGH Z AS TIME PASSES


       


      *IF,Y,GT,HCENTER,THEN !DEFINES WHETHER IT'S THE FRONT PART OF THE HEAT SOURCE OR THE REAR PART


       


      C=C1


      F=FF


       


      *ELSE


       


      C=C2


      F=FR


       


      *ENDIF


       


       


      PART1=(6*(3**0.5)*Q*F)/(A*B*C*3.14*(3.14**0.5))


      PART2=(EE**(-3*(Z/A)**2))*(EE**(-3*(X/B)**2))*(EE**(-3*((CSI/C)**2)))


       


      QF=PART1*PART2 !HEAT SOURCE EQUATION


       


      BFE,jj,HGEN,,QF


       


      *ENDDO


       


      SOLVE


       


      *ENDDO


       


      CMSEL,ALL


      BFEDELE,ALL,ALL


      ALLSEL



       


      Here in the 3rd image the flow is parallel and two flows are getting. But i need only one flow on the middle of the part..


      Thank you

    • Sandeep Medikonda
      Ansys Employee

      It is not clear, what you are trying to do here? can you explain? What are the 2 flows you are referring to?

    • sravank
      Subscriber

      Two flows are referring the directional heat flux. It should be in unidirection along the weldzone. After chaning the orientation in the Details of directional heat flux am getting the directional heat flux in unidirection. Directional problem is sloved. But i need help with UDF.


      Am working on simulation of the moving heat source of double ellisopidal heat source model (In ansys ACT extension Gaussian moving heat source is only available)..To find out the temperature distribution along the weldzone. Giving convection and moving heat source (UDF) as input. In the code the mathemtical equation of double ellipsoidal is given. But am not getting the temperature distribution reference to the double ellipsoidal graph. 


      Code is attached. Can you please check the code.. 


      CMSEL,ALL


      *GET,EMAX,ELEM,,NUM,MAX


      *GET,EMIN,ELEM,,NUM,MIN


      ALLSEL


      AUTOTS,ON


      TIME_WELD=100


      DT=1 ! Time step


      A=0.003


      B=0.004


      C1=0.004


      C2=0.016 !A, B AND C ARE JUST THE HEAT SOURCE DIMENSIONS


      TAU=0 !TIME DELAY


      FF=0.6 !FRACTION OF HEAT ON THE FRONT PART OF THE HEAT SOURCE


      FR=1.4 !FRACTION OF HEAT ON THE REAR PART OF THE HEAT SOURCE


      Q=3840 !WELDING ENERGY J/S (W)


      VEL=1.73e-3 !WELDING SPEED


      !!EE=2.71 !I HAD TO DEFINE THE EULER NUMBER AS 2.71 INSTEAD OF USING exp() DUE TO UNSTABILITIES ON MY RESULTS


      NPT=TIME_WELD/DT


      NROPT, FULL


      *DO,i,1,NPT,1 !TIME INCREMENT


      WTIME=(i/2)


      TIME,WTIME


      HCENTER=VEL*WTIME !HEAT SOURCE CENTER


      *DO,jj,EMIN,EMAX,1 !SELECTS THE CENTROID OF EVERY ELEMENT


      X=CENTRX(jj)


      Y=CENTRY(jj)


      Z=CENTRZ(jj)


      CSI=Z+(VEL*(TAU-WTIME)) !MOVING COORDINATE (IT MOVES THROUGH Z AS TIME PASSES


      *IF,Z,GT,HCENTER,THEN !DEFINES WHETHER IT'S THE FRONT PART OF THE HEAT SOURCE OR THE REAR PART


      C=C1


      F=FF


      *ELSE


      C=C2


      F=FR


      *ENDIF


      PART1=(6*(3**0.5)*Q*F)/(A*B*C*3.14*(3.14**0.5))


      PART2=(Exp(-3*(X/A)**2))*(Exp(-3*(Y/B)**2))*(Exp(-3*((CSI/C)**2)))


      QF=PART1*PART2 !HEAT SOURCE EQUATION


      BFE,jj,HGEN,,QF


      *ENDDO


      SOLVE


      *ENDDO


      CMSEL,ALL


      BFEDELE,ALL,ALL


      ALLSEL

    • Sandeep Medikonda
      Ansys Employee

      Hi,


      Here is what I would suggest you do. 


      You are looping over 100 timesteps; at every time step you are applying a BFE load for each element. Then solving. The problem is that you are only looking at the postprocessor results. To debug this I would recommend simplifying.


      1) remove the outer DO loop. Just set NPT = 50. 


      You should know what heat generation load each element should get. Or at least you can choose a few elements and check.


      2) I would remove the SOLVE. 


      You do not need to solve to check if the load is applied correctly


      3) So if you set NPT=50 and apply load on all elements you can then either do BFELIST to list the loads and check them. You can also do /PBF command to plot the elements with the heat gen loads shown. 


      So, my suggestion is to review the loads at time=50 before doing any solution

    • sravank
      Subscriber

      hai


      What i got understand from your points i changed the code and sloved. Results are attached. Once check it please..


       


      CMSEL,ALL


      *GET,EMAX,ELEM,,NUM,MAX


      *GET,EMIN,ELEM,,NUM,MIN


      ALLSEL


      TIME_WELD=100


      DT=1


      A=0.002


      B=0.002


      C1=0.004


      C2=0.015


      TAU=0.6


      FF=0.6


      FR=1.4


      Q=1500


      VEL=1.73e-3


      NPT=50


      NROPT, FULL


      *DO,jj,EMIN,EMAX,1


      X=CENTRX(jj)


      Y=CENTRY(jj)


      Z=CENTRZ(jj)


      CSI=-Z+VEL*(TAU)


      *IF,Z,GT,0,THEN


      C=C1


      F=FF


      *ELSE


      C=C2


      F=FR


      *ENDIF


      PART1=(6*(3**0.5)*F*Q)/(A*B*C*3.14*(3.14**0.5))


      PART2=(exp(-3*(X/A)**2))*(exp(-3*(Y/B)**2))*(exp(-3*(CSI/C)**2))


      QF=PART1*PART2


      BFE,jj,HGEN,,QF


      *ENDDO


      SOLVE


      CMSEL,ALL


      BFEDELE,ALL,ALL


      ALLSEL


       


      There is no moving heat source. At one place the temperature is distributing. But we need moving heat source.


      There is no moving action. At one place the temperature is distributing. But we need moving heat source across the weldzone. 


      If I remove solve, am getting error.


      Thank you. Awaiting for your reply.

    • Sandeep Medikonda
      Ansys Employee

      If you are using the moving heat source ACT, the index number is the number of heat sources. You can have as many as you want. Why script it?

    • sravank
      Subscriber

      Ansys providing the moving heat source extension for only Gaussian model. Adding extension and giving parameters produce the simulation of it with correct results. 


      But my requirement is finding the moving heat source for double ellipsodial model instead of gaussian model.


      Thank You

    • opencdr
      Subscriber

      hi,


      Have you solved the problem?I'm doing the same job as you. Do you have a good solution?


      Thank You

    • sravank
      Subscriber

      Hai


      Still working on it..


      Same job means..?? Can i know the project title /domain ...??


      Thank you

    • sunil.voleti
      Subscriber

      Hi sandeep,


      could you please explain me about how we can calculate and input laser absorption rate in moving heatflux extension.


      thanks in advance.


      with regards,


      sunil.voleti

    • Shekhar
      Subscriber

      Hi sravank


      I need some help to understand your code.


      1) U have used velocity as 1.73 mm/s. Is it not a very small value as the welding speed?


      2) Why you opt TIME_WELD = 100? Is it the 100 seconds?


      3) What is DT?


       

    • sravank
      Subscriber

      Hai


      1. Yes. welding speed is the velocity.


      2. Duration of welding time with cooling cycle. In above case welding time is 80sec am giving 20sec cooling.


      3. DT - Time steps in the analysis.


       


      Can i know whats you project/research..?? Which domain..?? my contact - ksravank27@gmail.com


      Thank you

    • Hassaan123
      Subscriber

      Dear Sandeep,


       


      I want to simulate 2 moving heat sources using moving heat source act. Can I have a tutorial or how can I achieve it?


       


      Regards,


      Muhammad Hassaan Bin Tariq

    • sunil.voleti
      Subscriber

      Hai Hassaan,


       


      you can move two or more heatsources by index number,first patch and last patch settings. If there is only one moving heat load then 'first patch' and 'last patch' are both yes,if you have two or more heatsources you can set first patch yes for the first heatsource but last patch as no.set last patch as yes for the last heatsource.

    • Hassaan123
      Subscriber

      Dear sunil.voleti,


      Thank you for your response,


       


      It is working. However, when I attach structural analysis, deformation  is only shown for the first second. Deformation is not being shown for the whole analysis which is of 12 seconds. Due to which deformation is only shown in the start of the thin sheets. Picture is attached herewith.


       


      Thanks in advance.


       


       


      Regards,


      Muhammad Hassaan Bin Tariq

    • sunil.voleti
      Subscriber
      In your "Analyze settings" you have the possibility to define the simulation time. Standard is 1 s. You can define any time you like. Usually the time stepping is default. You set "Auto Time Stepping" to "Off" and "Defined By" to "Time". Then you can define a minimun, a maximum and a start value do define the resolution of your load function.
    • Hassaan123
      Subscriber

      After setting the time to 12 s, it is still giving deformation at the start. Can you point out any other mistake that might be present?



      Thermal analysis settings



      Attached thermal analysis settings


      Regards,


      Muhammad Hassaan Bin Tariq

    • sravank
      Subscriber

      Hi


      TIME_WELD (In Command) = No. of steps (Analysis Settings). Change no. of steps not step End time. Try this once 


      Thank you.

    • Hassaan123
      Subscriber

      Should I write this in command section?


       


      Regards

    • sunil.voleti
      Subscriber

      If you defined Apdl code write command in that but I think you are using Moving heatsource extension so please try once changing no. of  steps.I think you used no. of steps as 1, so change it with some other no of  steps and try 

    • Hassaan123
      Subscriber

      Hi Sunil,


       


      Thanks for your response.


       


      I figured out another thing. The problem is with the imported load I suppose. Body temperature is only being imported for 1 sec, therefore stresses are for 1 sec only. Can you help me out in this?


       


      Regards

    • DHARMISTA BANALA
      Subscriber

      where can i find the extension for goldak heat source model?

Viewing 23 reply threads
  • The topic ‘SIMULATION | DOUBLE ELLIPSOIDAL HEAT SOURCE MODEL ||’ is closed to new replies.