CFD Online Logo CFD Online URL
www.cfd-online.com
[Sponsors]
Home > Forums > General Forums > Main CFD Forum

Problem when switching from explciit to implicit

Register Blogs Community New Posts Updated Threads Search

Like Tree4Likes
  • 1 Post By TomLyd123
  • 3 Post By aerosayan

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   June 2, 2021, 10:16
Default Problem when switching from explciit to implicit
  #1
New Member
 
Tom
Join Date: Jun 2021
Posts: 2
Rep Power: 0
TomLyd123 is on a distinguished road
I am currently running a steady 3D K-Epsilon Realizable Simulation, I run the simulation for around 20,000 explicit iterations and then switch to implicit for another 10,000.

The simulation runs fine in explicit as expected but when I switch to implicit the simulation crashes, I have tried reducing the CFL number to 1 from 5 but it still crashes.

The simulation orginally runs in 2nd order schemes but I am now swicthing that to 1st order to see if that helps.

I was just wondering if anyone has any ideas that could possibly help it run in implicit? Possibly incease explicit iterations to around 25,000 or 30,000 to increase convergence?
aerosayan likes this.
TomLyd123 is offline   Reply With Quote

Old   June 7, 2021, 04:04
Default
  #2
Senior Member
 
Sayan Bhattacharjee
Join Date: Mar 2020
Posts: 495
Rep Power: 8
aerosayan is on a distinguished road
Disclaimer : not an expert, may want to wait for a better answer from someone more experienced than me


If it takes an extra few hours to complete 10,000 more explicit iterations, it might be better to just let it be explicit till the end, but I can see the benefit of switching out to use implicit iterations for the last few thousand iterations till convergence.



Since you're using explicit iterations, and implicit is not converging, I'm assuming that your simulation has a lot of complex interactions that happen within a very small time-frame.



I'm generally only qualified to answer for explicit solvers and don't know much about implicit solvers, but your troubleshooting ideas seem right.


  • Running more explicit iterations
  • Ensure your implicit scheme is stable for CFL values you want to use, and the case you're trying to simulate. Mistakes happens from time to time.
  • Check that the delta-t timesteps used by your implicit scheme, is not extremely higher than the delta-t timesteps used by your explicit scheme. Ex : you run the explicit scheme with a global 1e-9 timestep, but the implicit scheme decides that 1e-6 would be enough. This might cause problem, as you go from explicit to implicit.
  • Reducing CFL number < 1 for the implicit section. Since the cell sizes won't change, the CFL number reduction will most likely cause the delta-t timesteps to be reduced significantly. Make sure there's no global timestep limit that causes the timesteps to be higher than a certain value (say 1e-6), and ensure it doesn't overwrite the local timestep calculated by the CFL condition of your implicit scheme. As the cell sizes can be very small in certain sections of the mesh, the CFL condition can cause the delta-t timesteps to be very small.
  • See if your simulation software can dynamically change the CFL to maintain stability. Let's say from 20,000 to 25,000 iterations for some reason CFL 0.9 was valid, but after that CFL 5 was valid between 25,000 to 30,000 iteratons, then again CFL 0.9 was valid. A software which can detect instability and go back a few timesteps to restart the simulation with a reduced CFL, would help.
arjun, aero_head and TomLyd123 like this.
aerosayan is offline   Reply With Quote

Old   June 8, 2021, 11:52
Default
  #3
New Member
 
Tom
Join Date: Jun 2021
Posts: 2
Rep Power: 0
TomLyd123 is on a distinguished road
Quote:
Originally Posted by aerosayan View Post
Disclaimer : not an expert, may want to wait for a better answer from someone more experienced than me


If it takes an extra few hours to complete 10,000 more explicit iterations, it might be better to just let it be explicit till the end, but I can see the benefit of switching out to use implicit iterations for the last few thousand iterations till convergence.



Since you're using explicit iterations, and implicit is not converging, I'm assuming that your simulation has a lot of complex interactions that happen within a very small time-frame.



I'm generally only qualified to answer for explicit solvers and don't know much about implicit solvers, but your troubleshooting ideas seem right.


  • Running more explicit iterations
  • Ensure your implicit scheme is stable for CFL values you want to use, and the case you're trying to simulate. Mistakes happens from time to time.
  • Check that the delta-t timesteps used by your implicit scheme, is not extremely higher than the delta-t timesteps used by your explicit scheme. Ex : you run the explicit scheme with a global 1e-9 timestep, but the implicit scheme decides that 1e-6 would be enough. This might cause problem, as you go from explicit to implicit.
  • Reducing CFL number < 1 for the implicit section. Since the cell sizes won't change, the CFL number reduction will most likely cause the delta-t timesteps to be reduced significantly. Make sure there's no global timestep limit that causes the timesteps to be higher than a certain value (say 1e-6), and ensure it doesn't overwrite the local timestep calculated by the CFL condition of your implicit scheme. As the cell sizes can be very small in certain sections of the mesh, the CFL condition can cause the delta-t timesteps to be very small.
  • See if your simulation software can dynamically change the CFL to maintain stability. Let's say from 20,000 to 25,000 iterations for some reason CFL 0.9 was valid, but after that CFL 5 was valid between 25,000 to 30,000 iteratons, then again CFL 0.9 was valid. A software which can detect instability and go back a few timesteps to restart the simulation with a reduced CFL, would help.
I have been tempted to run the simulation until convergence in explicit but I am looking at implicit to speed up convergence as I need to run multiple simulations on this case in a small time frame.

Thanks for the troubleshooting advice, I will now check through the simulation for these and to see if the software has dynamic CFL numbers.

I will continue to increase the explicit iteration count and reduce the CFL number below 1.
TomLyd123 is offline   Reply With Quote

Reply

Tags
ansys 18.2, explicit solver, implicit explicit


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are Off
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
area does not match neighbour by ... % -- possible face ordering problem St.Pacholak OpenFOAM 11 September 4, 2024 05:28
Is COMSOL Multi Physics is suitable to solve complex flow problem? steve lee COMSOL 8 January 5, 2023 03:31
Problem diverges when exhaust valve opens swerner0711 AVL FIRE 0 September 21, 2018 08:14
Convergence Problem in Multiphase problem (three phases) m.uzair FLUENT 0 August 2, 2018 09:23
Adiabatic and Rotating wall (Convection problem) ParodDav CFX 5 April 29, 2007 20:13


All times are GMT -4. The time now is 16:25.