CFD Online Discussion Forums

CFD Online Discussion Forums (https://www.cfd-online.com/Forums/)
-   CFX (https://www.cfd-online.com/Forums/cfx/)
-   -   Transient run continues from last time (when startover is desired) (https://www.cfd-online.com/Forums/cfx/150409-transient-run-continues-last-time-when-startover-desired.html)

bongbang March 21, 2015 12:12

Transient run continues from last time (when startover is desired)
 
Although I am fairly new to Ansys, I have done many dozens of transient runs before. Every time, if a the CFX-Pre setup is modified and a run executed, the run restarts as expected from the specified initial time and ends at the specified duration. The monitors plot is reset and there's no evidence of continuance from the last run.

My latest run, however, appears to continue from last completed run even though I didn't do tell it to. The simulation time adds on that of the last run, the monitors plot continues, and the run quickly terminates because the duration is reached (duh!). How can I force the solver to restart at the initial time?

Here's the relevant code from the .out file. The initial time is still 0, although I shortened the duration to 0.02225 [s] from 0.89 [s] in the previous run.

Code:

  ANALYSIS TYPE:
    Option = Transient
    EXTERNAL SOLVER COUPLING:
      Option = None
    END
    INITIAL TIME:
      Option = Automatic with Value
      Time = 0 [s]
    END
    TIME DURATION:
      Option = Total Time
      Total Time = 0.02225 [s]
    END
    TIME STEPS:
      Timesteps = 0.00445 [s]
      Option = Timesteps
    END
  END


The simulation time is unexpectedly the sum of current time step to the last time step of the previous run.

Code:

CFD Solver started: Sat Mar 21 12:20:25 2015


 +--------------------------------------------------------------------+
 |                      Convergence History                          |
 +--------------------------------------------------------------------+


 ======================================================================
 |                      Timestepping Information                      |
 ----------------------------------------------------------------------
 |      Timestep      |  RMS Courant Number  |  Max Courant Number  |
 +----------------------+----------------------+----------------------+
 |      4.4500E-03      |          7.32        |        43.20        |
 ----------------------------------------------------------------------

 ======================================================================
 TIME STEP =  201 SIMULATION TIME = 8.9445E-01 CPU SECONDS = 8.057E+04
 (THIS RUN:      1                  4.4500E-03              2.256E+01)
 ----------------------------------------------------------------------
 COEFFICIENT LOOP ITERATION =    1              CPU SECONDS = 2.256E+01
 ----------------------------------------------------------------------
 |      Equation      | Rate | RMS Res | Max Res |  Linear Solution |
 +----------------------+------+---------+---------+------------------+
 | U-Mom                | 1.00 | 4.1E-05 | 7.6E-04 |      1.9E-01  ok|
 | V-Mom                | 1.00 | 3.7E-05 | 7.6E-04 |      1.9E-01  ok|
 | W-Mom                | 0.98 | 3.8E-04 | 1.0E-02 |      7.6E-03  OK|
 | P-Mass              | 0.68 | 6.9E-05 | 3.4E-03 |  8.6  9.7E-02  OK|


When the first time step is solved, the solver terminates.

Code:

CFD Solver finished: Sat Mar 21 12:21:56 2015
 CFD Solver wall clock seconds: 9.0774E+01

 ======================================================================
              Termination and Interrupt Condition Summary
 ======================================================================
   
 CFD Solver: Run duration reached
  (Maximum simulation time)

Thank you!

Opaque March 21, 2015 16:34

Try the following (note the change of option for initial time)

Code:

ANALYSIS TYPE:
    Option = Transient
    EXTERNAL SOLVER COUPLING:
      Option = None
    END
    INITIAL TIME:
      Option = Value
      Time = 0 [s]
    END
    TIME DURATION:
      Option = Total Time
      Total Time = 0.02225 [s]
    END
    TIME STEPS:
      Timesteps = 0.00445 [s]
      Option = Timesteps
    END
  END


bongbang March 22, 2015 23:05

Ah, that makes sense. Many thanks, Opaque.


All times are GMT -4. The time now is 23:56.