Ansys Assistant will be unavailable on the Learning Forum starting January 30. An upgraded version is coming soon. We apologize for any inconvenience and appreciate your patience. Stay tuned for updates.
Fluids

Fluids

Topics related to Fluent, CFX, Turbogrid and more.

Fixed vs Variable Time Stepping

    • kmkb21
      Subscriber

      Hi there


       


      I am currently trying to run a grid convergence study using the pressure-based coupled transient method and can't seem to get the case to run with a fixed time step. Does the Courant number in the "methods" section definition override the fixed time step?


       


      Cheers!

    • DrAmine
      Ansys Employee

      No: iThis CFL number has nothing to do with the temporal evolution of the solution. It just adds an implicit relaxation for the solution matrix (increase stability).


       

    • kmkb21
      Subscriber
      Hi there

      Thank you. I have selected the fixed time stepping in the "run calculation" section but the output says that it is updating the solution at time N and N-1 using variable time stepping method. Should I try to start the case from scratch?
    • DrAmine
      Ansys Employee

      Variable time stepping is an adaptive approach used for multiphase modeling. This will adapt the time step based on global CFL number near the free surface cells.

    • kmkb21
      Subscriber
      Thank you! I am doing single phase flow and have not selected variable time stepping so I'm wondering where it is specified in the gui or if I can select it in the text user interface?

      Regards

      Kai
    • DrAmine
      Ansys Employee

      For single phase, variable time stepping is not available. The alternative is adaptive time stepping method which can be selected under Run calculation panel. Details in the help.

    • kmkb21
      Subscriber

      There appears to be something wrong with my setup then. I'm not sure what I'm doing wrong in here as this is what my run calculation panel looks like:



       


    • DrAmine
      Ansys Employee

      Restart from scratch and tell us if it disappears. Just to clarify: Are you using / Have you used a density based solver?

    • kmkb21
      Subscriber

      I've done it again from scratch and it is still using the variable time stepping method despite saying fixed time stepping method in the run calculation panel. I am using the pressure based solver

    • DrAmine
      Ansys Employee

      Share screenshot of Solution Methods and Controls. Which version are you using? What do you mean from scratch?

    • kmkb21
      Subscriber

      Thank you.


      I am using version 19.2 (Installed a couple weeks ago). I reimported the grid, set the turbulence model, chose the transient option, pressure-based solver, then edited the materials, cell zone conditions and boundary conditions, changed the methods and controls, intialized the flow (standard initialization computed from the farfield values), and ran the calculation. I can share the case if desired, as well as a case which is the same but with twice as coarse a grid.


      Thanks and kind regards


      Kai


       


    • DrAmine
      Ansys Employee
      Can you report the time step and plot it to see if it is really changing. I guess it is already available to be plotted as report definition or any other report definition written into file
    • kmkb21
      Subscriber

      It appears as though the time step doesn't change from the specified step when it is reported, though there is some error (0.004500000000000001 instead of 0.0045) in places. Is it possible that this is just the reporting interval and that the time step being computed is something else? It is reported as "flow time" in the report file.

    • DrAmine
      Ansys Employee

      I am pretty sure that the time step is not changing there. There is flow time and time step size. If you mow report volume average of whatever you have the option to write in a File and you can add into that file the time step size. Here you can check everything in a glance.


       


      Please add a screenshot of the Task page where Calculation activities are listed. Are you using any scheme command? If you now save the case file into .cas and open it in Notepad++ and search for "variable" and "variable time" where do you find them?

    • kmkb21
      Subscriber

      Please see the screenshot attached. In the initial .cas file, the model was set to laminar, though once I extracted a new cas.gz that I saved, these were the results for searching for variable:


       


      (dpm/variable-interpolation/kernel-gaussian 1.)


      (dpm/variable-interpolation/stencil 1)


      (dpm/variable-interpolation/nci-node-correction-algorithm 1)


      (dpm/variable-interpolation/kernel 2)


      (dpm/variable-interpolation/nodes? #f)


      (dpm/variable-interpolation/in-time? #f)


      (dpm/variable-interpolation/velocity-wall-interpolation? #f)


      (dpm/variable-interpolation/barycentric? #f)


      (dpm/variable-interpolation? #t)


      (variable-time-step/verbosity 0)


      (variable-time-step/undo-time-step? #t)


      (variable-time-step? #f)


       


      I am not sure what you mean by "If you mow report volume average of whatever you have the option to write in a File and you can add into that file the time step size"


       


      Kind regards


       


      Kai


       



       


       

    • DrAmine
      Ansys Employee

      Variable time step is not activated according to the settings. I cannot say now why the message is written.


      Regarding the report: You create a report definition as volume average of any variable and write into a file. In that file you add the time step size.

    • kmkb21
      Subscriber

      I have added the report for the time step size and it is constant. However, a physical phenomenon which is observed on every coarser grid does not appear in this simulation, with none of the parameters changed except the finer grid, and the now "variable time step".


      Is there a reason for this?

    • DrAmine
      Ansys Employee

      I do not know. Please create a new thread for that but here my comments


      As you refine grid you need to refine the time step to keep constant CFL. But again by refining the grid you will require eventually high end turbulence models to capture length scales and time scales properly as RANS methods might fail here.


       


      Regarding your question here: I can reproduce the message and it is just referring to the method deployed for discretization. You do not worry about that. Your time step is fixed.

Viewing 17 reply threads
  • The topic ‘Fixed vs Variable Time Stepping’ is closed to new replies.
[bingo_chatbox]