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

scalarTransportToam time step sensitivity

Register Blogs Community New Posts Updated Threads Search

Like Tree3Likes
  • 1 Post By Sylvain
  • 2 Post By Sylvain

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   August 18, 2022, 11:35
Default scalarTransportToam time step sensitivity
  #1
Member
 
Sylvain Aguinaga
Join Date: Feb 2010
Posts: 41
Rep Power: 16
Sylvain is on a distinguished road
Hi everyone
I’m currently working on benchmarking a pollutant dispersion setup for OpenFOAM. I use the isolated building benchmark used by Tominaga & Stathopoulos (1997 2018). To do so, I use “scalarTransportFoam” (the classic one and a homebrewed one for the turbulent dispersion). The velocity field is frozen and calculated before, using simpleFoam.

While trying to get better results, I realized that the solution was very sensitive to the time step (see figures attached). This was done with the classic scalarTransportFoam



I replicated the issue with the pitzDaily test case provided in the tutorials (here openfoam8). I just turned down the molecular diffusion to 1e-5m2/s. I did some snapshots of the concentration field at t=0.2s, when the pollutant starts to spread inside the recirculation zone.

Turns out when the time step is too low, the solution “freezes”. I tried to increase the writing precision for both the time and other variables. But it didn’t change anything. I also discovered that for those low courant number, the initial condition for T (for example set at 1e-5 instead of 0) has a great impact on the converged solution.

I did not expect to have such issues for low Courant number, quite the contrary. I thought that the lower is the time step, the more precise is the simulation. But it appears it is the contrary!!!

Is this normal? Has anyone ever encountered this problem? I would be interested in any explanation of this behaviour.

Thanks ahead for any insight about this.

Sylvain
Attached Images
File Type: png isolated_cube_ts_influence.png (82.6 KB, 14 views)
File Type: png isolated_cube_ts_influence_2.png (117.4 KB, 15 views)
File Type: png pitz_daily_ts_influence.png (55.0 KB, 15 views)
File Type: jpg pitz_daily_ts_influence_2.jpg (66.7 KB, 10 views)
SphericalCube likes this.
Sylvain is offline   Reply With Quote

Old   August 23, 2022, 04:43
Default
  #2
Member
 
Sylvain Aguinaga
Join Date: Feb 2010
Posts: 41
Rep Power: 16
Sylvain is on a distinguished road
So, it turns out that the final solution is also very sensitive to the initial condition for T. So you can get anything you want, depending on the time step and the initial condition.

But… because there is a but… I found out that if you lower down the tolerance parameter of the solver in fvSolution, things are getting much better, and are no longer depending on neither the time step nor the initial condition. More, the results are nicely fitting the benchmark.

The tolerance parameter was 1e-06 in the tutorial. I lowered it down to 1e-8. I guess that the relative high value of molecular diffusivity chosen in the tutorial allows to keep the value of 1e-6 without problem.

Code:
solvers
{
    T
    {
        solver          PBiCGStab;
        preconditioner  DILU;
        tolerance       1e-08;
        relTol          0;
    }
}
I hope it might be helpful to anyone who might encounter this issue.
esma and SphericalCube like this.
Sylvain is offline   Reply With Quote

Reply


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
AMI speed performance danny123 OpenFOAM 21 October 24, 2020 05:13
SU2 7.0.7 Built on CentOS 7, parallel computation pyscript mpi exit error? EternalSeekerX SU2 3 October 9, 2020 19:28
High Courant Number @ icoFoam Artex85 OpenFOAM Running, Solving & CFD 11 February 16, 2017 14:40
Floating point exception error lpz_michele OpenFOAM Running, Solving & CFD 53 October 19, 2015 03:50
Star cd es-ice solver error ernarasimman STAR-CD 2 September 12, 2014 01:01


All times are GMT -4. The time now is 01:08.