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

successful time step for 2D problem failing for 3D case of same problem.

Register Blogs Community New Posts Updated Threads Search

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   March 9, 2015, 09:02
Question successful time step for 2D problem failing for 3D case of same problem.
  #1
New Member
 
Manoj Dhiman
Join Date: Dec 2014
Posts: 4
Rep Power: 12
mandman is on a distinguished road
Hello,
I am trying to simulate 3D convective diffusive unsteady problem using SIMPLER technique (Finite Volume Method). I got successful 2D case of the problem. For 3D I am keeping the size of space step same as in 2D, with one extra direction.
The problem is in choosing the time step. When I keep it same as in 2D the simulation diverges and in order to converge it I have to reduce the time step by order of 4.
Is this thing common or I am committing some other problem.
Unluckily if its common than it will take ages for this simulation.
BTW I am running this code with gfortran compilers.
mandman is offline   Reply With Quote

Old   March 9, 2015, 12:17
Default
  #2
Senior Member
 
Filippo Maria Denaro
Join Date: Jul 2010
Posts: 6,897
Rep Power: 73
FMDenaro has a spectacular aura aboutFMDenaro has a spectacular aura aboutFMDenaro has a spectacular aura about
Quote:
Originally Posted by mandman View Post
Hello,
I am trying to simulate 3D convective diffusive unsteady problem using SIMPLER technique (Finite Volume Method). I got successful 2D case of the problem. For 3D I am keeping the size of space step same as in 2D, with one extra direction.
The problem is in choosing the time step. When I keep it same as in 2D the simulation diverges and in order to converge it I have to reduce the time step by order of 4.
Is this thing common or I am committing some other problem.
Unluckily if its common than it will take ages for this simulation.
BTW I am running this code with gfortran compilers.


yes, the numerical stability involves the relation of dimensionality therefore the constraint is more strict when going from 1D, 2D, 3D.
FMDenaro is offline   Reply With Quote

Old   March 9, 2015, 22:32
Default
  #3
Senior Member
 
adrin
Join Date: Mar 2009
Posts: 115
Rep Power: 17
adrin is on a distinguished road
Though it is true that the stability constraint for 3D is stricter than in 2D, it is difficult to believe that the time step size would have to drop by 4 _orders_. By 4 _orders_ I understand you're saying 10^4 (10,000 times). Otherwise, if the drop is _factor_ 4 (4 times) it is somewhat more reasonable, though it depends (very much) on the problem and what physics are introduced by the addition of the third dimension (and 4x increase doesn't really translate to "ages" of simulation time in added cost)

adrin
adrin is offline   Reply With Quote

Old   March 10, 2015, 09:31
Default
  #4
agd
Senior Member
 
Join Date: Jul 2009
Posts: 358
Rep Power: 19
agd is on a distinguished road
If you are saying that the time step has to be 10000 times smaller rather than 4 times smaller, I would look for an error in the coding. A factor of 10000 is not reasonable for a jump to 3D, in my experience.
agd is offline   Reply With Quote

Old   March 10, 2015, 15:18
Default
  #5
New Member
 
Manoj Dhiman
Join Date: Dec 2014
Posts: 4
Rep Power: 12
mandman is on a distinguished road
by O(4) I mean 10000.
mandman is offline   Reply With Quote

Old   March 10, 2015, 15:40
Default
  #6
Senior Member
 
adrin
Join Date: Mar 2009
Posts: 115
Rep Power: 17
adrin is on a distinguished road
Then you most likely (definitely?) have a bug in the code! What are the 2- and 3-D problems you were solving and what are the corresponding CFL values?

adrin
adrin is offline   Reply With Quote

Old   March 10, 2015, 20:01
Thumbs up
  #7
New Member
 
Manoj Dhiman
Join Date: Dec 2014
Posts: 4
Rep Power: 12
mandman is on a distinguished road
Ya!! you guys are right. I found THE "bug", it was resting in expression calculating the difference between pressure and pressure correction.
I was struggling with this problem for last 2 months, and I was so much confident about my code that I thought that its common for 3D problems. But you guys conviction made me doubtful.
I even learned OpenMP and parallelised this code, but there’s no way I could have compensated for O(4) time increase.
Thanks all
I am working on double diffusive convection problem, let me know if you want to know more. You can email me on manoj_d@students.iitmandi.ac.in
mandman is offline   Reply With Quote

Reply

Tags
3 dimensional simulation, diverging solution, fortran code, time discretization


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
a problem with convergence in buoyantSimpleFoam skuznet OpenFOAM Running, Solving & CFD 6 November 15, 2017 13:12
High Courant Number @ icoFoam Artex85 OpenFOAM Running, Solving & CFD 11 February 16, 2017 14:40
bubbleFoam tutorial case with turbulence setzberg OpenFOAM Running, Solving & CFD 6 October 15, 2015 14:29
Superlinear speedup in OpenFOAM 13 msrinath80 OpenFOAM Running, Solving & CFD 18 March 3, 2015 06:36
convergence problem when use pisoFoam, LES for wind tunnel case Forrest_Lei OpenFOAM 3 July 19, 2011 07:00


All times are GMT -4. The time now is 02:50.