CFD Online Logo CFD Online URL
www.cfd-online.com
[Sponsors]
Home > Forums > Software User Forums > OpenFOAM > OpenFOAM Running, Solving & CFD

Time step becomes too short during the simulation

Register Blogs Community New Posts Updated Threads Search

Like Tree2Likes
  • 1 Post By JulioPieri
  • 1 Post By Crane_

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   July 9, 2022, 23:28
Default Time step becomes too short during the simulation
  #1
New Member
 
Guo Zongchao
Join Date: Nov 2021
Posts: 8
Rep Power: 4
Crane_ is on a distinguished road
Hello everyone, I meet some troubles during my simulation of oscillatory flowing around cruciform cylinders.
I have simulated single cylinder in oscillatory flow successfully,whose length is 4D(D is the diameter of cylinder). Then I keep all the other conditions same, and simulated two cylinders (the lengths are 10D) in the form of a cross. However, it always stops running because the time step becomes too short during the simulating. At the beginning, I think it is caused by the mesh size, so I try to change the mesh size, including increasing the thickness of the first layer of grid on the cylinder surface and over all grid size, but it is useless.
I don't know what else might be wrong. I would appreciate it if someone could give me some advice. Please let me know if there is any information I need to provide.
Thanks.
Attached Images
File Type: jpg 1.jpg (123.4 KB, 16 views)
File Type: jpg 2(1).jpg (173.4 KB, 18 views)
Crane_ is offline   Reply With Quote

Old   July 11, 2022, 10:15
Default
  #2
Member
 
Julio Pieri
Join Date: Sep 2017
Posts: 96
Rep Power: 8
JulioPieri is on a distinguished road
This kind of problem is usually caused by bad set-up and boundary conditions. Run using PISO instead of PIMPLE and check that your solution will likely diverge sooner.

Check your BCs, parameters and schemes.
Also, write smaller timesteps results and open them in paraview. See that velocity/pressure will likely be increasing a lot at some places in the mesh.

Last edited by JulioPieri; July 14, 2022 at 07:39.
JulioPieri is offline   Reply With Quote

Old   July 14, 2022, 03:25
Default
  #3
New Member
 
Guo Zongchao
Join Date: Nov 2021
Posts: 8
Rep Power: 4
Crane_ is on a distinguished road
Quote:
Originally Posted by JulioPieri View Post
This king of problem is usually caused by bad set-up and boundary conditions. Run using PISO instead of PIMPLE and check that your solution will likely diverge sooner.

Check your BCs, parameters and schemes.
Also, write smaller timesteps results and open them in paraview. See that velocity/pressure will likely be increasing a lot at some places in the mesh.
Thanks very much for your kind reply. I tried to chang the div(phi,U) from Gauss cubic to Gauss limitedLinearV 1 and decreased the initial timestep from 0.001 to 0.0001, and it works successfully now.
However, some other errors still exist. I observed the running image in paraview. It is found that in the outlet half of the computing domain, the speed image is very strange, while in the inlet half, everything is ok. What might be the reason?
Attached Images
File Type: jpg 1.jpg (14.3 KB, 8 views)
File Type: jpg 3.jpg (34.1 KB, 8 views)
Crane_ is offline   Reply With Quote

Old   July 14, 2022, 07:42
Default
  #4
Member
 
Julio Pieri
Join Date: Sep 2017
Posts: 96
Rep Power: 8
JulioPieri is on a distinguished road
This is typical in bad setup of BCs. You might be using some bad set of BCs.
Use upwind scheme first, before choosing higher order.

Did your first case, with 4D run smoothly? The results were ok?
Double check your boundary conditions to see if the 10D case is the same.

zip your case, I can take a look at it
JulioPieri is offline   Reply With Quote

Old   July 14, 2022, 08:45
Default
  #5
New Member
 
Guo Zongchao
Join Date: Nov 2021
Posts: 8
Rep Power: 4
Crane_ is on a distinguished road
Quote:
Originally Posted by JulioPieri View Post
This is typical in bad setup of BCs. You might be using some bad set of BCs.
Use upwind scheme first, before choosing higher order.

Did your first case, with 4D run smoothly? The results were ok?
Double check your boundary conditions to see if the 10D case is the same.

zip your case, I can take a look at it
My 4D case ran smoothly and the force coefficients results agreed well with other's results.
The follow zip file is my case. Thank you very much for your help.
Attached Files
File Type: zip cru-cylinder.zip (17.2 KB, 1 views)
Crane_ is offline   Reply With Quote

Old   July 15, 2022, 07:38
Default
  #6
Member
 
Julio Pieri
Join Date: Sep 2017
Posts: 96
Rep Power: 8
JulioPieri is on a distinguished road
Hello, here are my observations:

1) The cyclic boundary condition is a very troublesome one. Since you have cyclic on every side, the flow is excessively free to move. Try switching to symmetry BC, as it constrains the normal velocity, likely stabilizing the simulation. Consider using wall as well. I believe it wouldn't affect your case, since you (probably) trying to look close to the cylinders, right? 10D away from boundary is far enough from wall BC as well.

2) your patches are cyclicAMI and your bc is cyclic. Is it even running? OpenFOAM usually complains when the setup is like this.

3) You are running straight LES case? Try firs running laminar, then some RAS model and see if the case goes. This is the usual strategy: first run it simple, then add complexity gradually.

4) Are you sure of all your fvSchemes and fvSolutions entries? You seem to have a lot more stuff than the solver is using. But since it's a custom solver, it might use it, I don't know.. This doesn't affect the solution, but it points that the file is being copied from other cases, bundling up hypothesis that may make it hard to find any error. I'd start a fresh file if the previous suggestions don't work.


Hope this helps.
dokeun likes this.
JulioPieri is offline   Reply With Quote

Old   July 16, 2022, 22:44
Default
  #7
New Member
 
Guo Zongchao
Join Date: Nov 2021
Posts: 8
Rep Power: 4
Crane_ is on a distinguished road
Quote:
Originally Posted by JulioPieri View Post
Hello, here are my observations:

1) The cyclic boundary condition is a very troublesome one. Since you have cyclic on every side, the flow is excessively free to move. Try switching to symmetry BC, as it constrains the normal velocity, likely stabilizing the simulation. Consider using wall as well. I believe it wouldn't affect your case, since you (probably) trying to look close to the cylinders, right? 10D away from boundary is far enough from wall BC as well.

2) your patches are cyclicAMI and your bc is cyclic. Is it even running? OpenFOAM usually complains when the setup is like this.

3) You are running straight LES case? Try firs running laminar, then some RAS model and see if the case goes. This is the usual strategy: first run it simple, then add complexity gradually.

4) Are you sure of all your fvSchemes and fvSolutions entries? You seem to have a lot more stuff than the solver is using. But since it's a custom solver, it might use it, I don't know.. This doesn't affect the solution, but it points that the file is being copied from other cases, bundling up hypothesis that may make it hard to find any error. I'd start a fresh file if the previous suggestions don't work.


Hope this helps.
Hello, thanks for your reply.
I chose the cyclic boundary based on other's literature and now I think I need to try switching to symmetry BC. The cyclicAMI BC was not used in my case because I didn't use the command 'createPatch', and it was only an attempt in my past. For the fvSchmes and fvSolutions entries, I really don't know them very well now. I need to learn them.
I'm really lucky to get these experience from you.
JulioPieri likes this.
Crane_ is offline   Reply With Quote

Reply

Tags
time step;cruciform


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
[solidMechanics] Support thread for "Solid Mechanics Solvers added to OpenFOAM Extend" bigphil OpenFOAM CC Toolkits for Fluid-Structure Interaction 686 December 22, 2022 09:10
Convergence problem of OF WUYing OpenFOAM Running, Solving & CFD 2 September 20, 2021 10:09
AMI speed performance danny123 OpenFOAM 21 October 24, 2020 04:13
Setting up Lid driven Cavity Benchmark with 1M cells for multiple cores puneet336 OpenFOAM Running, Solving & CFD 11 April 7, 2019 00:58
AMI interDyMFoam for mixer nu problem danny123 OpenFOAM Programming & Development 8 September 6, 2013 02:34


All times are GMT -4. The time now is 06:20.