|
[Sponsors] |
August 18, 2022, 11:35 |
scalarTransportToam time step sensitivity
|
#1 |
Member
Sylvain Aguinaga
Join Date: Feb 2010
Posts: 41
Rep Power: 16 |
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 |
|
August 23, 2022, 04:43 |
|
#2 |
Member
Sylvain Aguinaga
Join Date: Feb 2010
Posts: 41
Rep Power: 16 |
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; } } |
|
|
|
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 |