General Mechanical

General Mechanical

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

Simulation error

    • Shivansh Karanwal
      Subscriber

      Hello Everyone!!!

      I am facing a problem while I am doing simulation of FSW welding in Transient Thermal Analysis

      I am almost done with my project, just I need to verify my model with the given experimental data in which the major part of it is cooling down after the entire process

      In my APDL commands I have given the Weld Time = 150s but the experimental data has values beyond the welding time ( t = 125s) to the cooling period as well.

      I want to simulate those conditions as well for a fitting curve to check the accuracy of my model but I am unable to

      In order to do my analysis 1st I divided my entire simulation time to 2 parts,
      i) Weld period (t=0 to t=150) &
      ii) Cooling phase (t=150 to t=900)

      In the end it gets simulated till t=150 but for after that it shows error: Present time 150 is less than or equal to the previous time 150 in a transient analysis.

      Ansys experts or anyone please help me out with it 

      #mechanical #simulation #structures #transient #analysis #thermal #APDL

    • Erik Kostson
      Ansys Employee

      Hi

      The error is clear I think (Present time 150 is less than or equal to the previous time 150 in a transient analysis.).

      It is probably due to the apdl commands and what is done there.

      All the best

      Erik

      • Shivansh Karanwal
        Subscriber

        Actually I don't get it why it's happening, how can I simulate fsw and then cooling down of the plate after fsw in the same. 

        When I kept Weld time = 900 then too I wasn't able to get it. 

        Please help me out with this what should I do 

        • Erik Kostson
          Ansys Employee

          The error as we said is in the apdl commands  you are using.

          If you post them here perhaps some forum members can provide some feedback on what is wrong.

          All the best

          Erik

        • Shivansh Karanwal
          Subscriber

          Ok Erik, Here's my APDL commands

          Please let me know what can be alterered in it

    • Erik Kostson
      Ansys Employee

       

       

      Think make sure that this (apdl commands) is only active for step 1, as the 2nd step is cooling and thus this apdl command snippet (that adds a heat source), does not need to run in the 2nd step.

      See here how to select steps for the commands (so set it to First).

      /forum/forums/topic/step-selection-mode-for-apdl-command-in-workbench/

      Erik

       

       

      • Shivansh Karanwal
        Subscriber

        I got the point that what you said but when I saw the settings, it was applied only for 1st step 

         

        If this is not the case then what I can do?

    • Erik Kostson
      Ansys Employee

       

       

      Hi

       

      Try:

      In the details of the commands you show, set the issue solve command to No. This is because you have a solve command in the apdl commands, so no need to issue a solve again.

      After that, and in the analysis settings make sure that you have two steps defined.

      In the first step set end time to 150 s (same as weld time in the apdl script), and use one initial substep, and one max and min substep in the substeps (see here about substeps: https://www.padtinc.com/2011/11/08/you-dont-wanna-step-to-this-breaking-down-loadsteps-and-substeps-in-ansys-mechanical/).

      The second step will then continue from 150 s, and untill 900 s say.

      All the best

      Erik

       

       

       

      • Shivansh Karanwal
        Subscriber

        I tried that but still same error, 

        also I watched a video about cooling in ansys mechanical, which suggested deactivation of the temprature at the very end. How can I do that or any other suggestion? 

        link for referal: Transient Thermal Analysis - Cooling

    • Erik Kostson
      Ansys Employee

       

      Hi

      With our above suggestions it works.

      All the best

      Erik

       

       

      • Shivansh Karanwal
        Subscriber

        No it isn't please suggest something else please.

    • Erik Kostson
      Ansys Employee

       

      We have tried it on a simple model and it works fine. Same moving heat source as you provided (apdl command snippet).

      Now to find out what you are doing and why it gives an error.

      Add all of your analysis settings below (steps, end times) etc.,

      and all details of Boundary Conditions (convections, why do you have 2 ?)

      and apdl command settings, etc so users can give some feedback.

      All the best

      Erik

       

      • Shivansh Karanwal
        Subscriber

        So I have added it 2 times because I have two area, (1 is air and other is the below suface that's in contact with the welding plates during the opreation. So to make things simple I used 2 convection of diffrent value. 

         

      • Shivansh Karanwal
        Subscriber

      • Shivansh Karanwal
        Subscriber

        APDL Commands:

        CMSEL,ALL
        *GET,EMAX,ELEM,,NUM,MAX
        *GET,EMIN,ELEM,,NUM,MIN
        ALLSEL

        Q3=9.89921468294e4
        rp=0.0025
        rs=0.01
        Zi=-0.001
        VEL=0.00125
        TAU=0
        PI=ACOS(-1)

        rm=(rs+rp)/2
        qfswp=(3*Q3*rm)/(2*PI*(rs**3-rp**3))*0.128

        time_weld=150
        time_inc=1
        time_steps=time_weld/time_inc
        NROPT, FULL

        *DO,i,1,time_steps,1
        WTIME=(i*time_inc)
        TIME,WTIME
        HCENTER=VEL*WTIME

        *DO,jj,EMIN,EMAX,1
        X=CENTRX(jj)
        Y=CENTRY(jj)
        Z=CENTRZ(jj)
        CSI=Y+(VEL*(TAU-WTIME))

        rr=sqrt(X**2+CSI**2)

        *IF,Z,LT,Zi,THEN
        qfsw=0
        *ELSEIF,rr,GT,rs
        qfsw=0
        *ELSEIF,rr,LT,rp
        qfsw=qfswp
        *ELSE
        qfsw=(3*Q3*rr)/(2*PI*(rs**3-rp**3))
        *ENDIF

        BFE,jj,HGEN,,qfsw
        *ENDDO
        SOLVE
        *ENDDO

        CMSEL,ALL
        BFEDELE,ALL,ALL
        ALLSEL

      • Shivansh Karanwal
        Subscriber

        This is the video I refferd for heat source Moving heat source fsw

    • Erik Kostson
      Ansys Employee

      Show please the apdl command settings also.

      Erik

      • Shivansh Karanwal
        Subscriber

    • Erik Kostson
      Ansys Employee

      Please read through in detail what we are writting. SO i said:

      In the details of the commands you show, set the issue solve command to No. This is because you have a solve command in the apdl commands, so no need to issue a solve again.

      So set that (issue solve command) in the commands apdl details to NO.

      Erik

      • Shivansh Karanwal
        Subscriber

        Thank you so much Erik it worked perfectly 

        Regards 

        Shivansh Karanwal

        • Erik Kostson
          Ansys Employee

          Happy to help.

          All the best

          Erik

Viewing 7 reply threads
  • The topic ‘Simulation error’ is closed to new replies.