|
[Sponsors] |
Why decreasing time step makes diffusion more significant for diffusion equation? |
|
LinkBack | Thread Tools | Search this Thread | Display Modes |
February 16, 2018, 13:34 |
|
#21 | |
Senior Member
|
Quote:
So to sum up: it appears to me now that the LTE will not increase by simply reducing the time step size; rather, the diffusion-like situation is due to the summation of errors for longer iteration. Am I correct? |
||
February 16, 2018, 13:49 |
|
#22 | |
Senior Member
Filippo Maria Denaro
Join Date: Jul 2010
Posts: 6,896
Rep Power: 73 |
Quote:
However, the evaluation of the time accuracy makes sense if you fix dx at a value quite low. |
||
February 16, 2018, 13:54 |
|
#23 |
Senior Member
|
Ok, so anyway, to be simple enough: just make sure reducing dt and dx at the same time, right?
|
|
February 16, 2018, 14:09 |
|
#24 |
Senior Member
Filippo Maria Denaro
Join Date: Jul 2010
Posts: 6,896
Rep Power: 73 |
||
February 17, 2018, 19:20 |
|
#26 |
Senior Member
|
I re-ran my code with cosine wave instead of Dirac function, and with time step size decreased, the wave just diffuses faster; but eventually, the inf norms of the waves are almost of the same magnitude.
So I guess it is not accurate to say "more diffusion"; it should have be "diffuses slightly faster". |
|
February 18, 2018, 02:14 |
|
#27 |
New Member
MOHAMMAD UMAIR
Join Date: Feb 2017
Location: ALIGARH, INDIA
Posts: 3
Rep Power: 9 |
The initial condition should not have a sudden jump or discontinuities. Try to adjust time-step so that Pe becomes less than 2. Note that Pe<2 doesn't necessarily mean pure diffusion. If doesn't solve solve your problem then reduce dt even further.
|
|
February 18, 2018, 04:01 |
|
#28 |
Senior Member
|
I am a little bit confused by your notation: does your Pe stand for cell Re # or something else?
|
|
February 18, 2018, 04:05 |
|
#29 | |
Senior Member
|
Quote:
the velocity a = 1, diffusivity = 1, and the mesh size dx = 0.05, so I guess the cell Re is much smaller than 2, and it should have not appear to have excessive diffusion for this reason.. I guess |
||
February 18, 2018, 04:43 |
|
#30 | |
Senior Member
Filippo Maria Denaro
Join Date: Jul 2010
Posts: 6,896
Rep Power: 73 |
Quote:
The Pe_h<=2 is for the cell number, not for the global number. However, it does not depend on the time step but only on the mesh size. |
||
February 18, 2018, 04:45 |
|
#31 |
Senior Member
Filippo Maria Denaro
Join Date: Jul 2010
Posts: 6,896
Rep Power: 73 |
If you consider the physics you want to resolve, the global Reynolds (o Peclet) number is so small that you have a real physical diffusion that smoothes out your initial solution very fast.
|
|
Tags |
diffusion equation, time step size |
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
pressure in incompressible solvers e.g. simpleFoam | chrizzl | OpenFOAM Running, Solving & CFD | 13 | March 28, 2017 06:49 |
simpleFoam error - "Floating point exception" | mbcx4jc2 | OpenFOAM Running, Solving & CFD | 12 | August 4, 2015 03:20 |
Help for the small implementation in turbulence model | shipman | OpenFOAM Programming & Development | 25 | March 19, 2014 11:08 |
Micro Scale Pore, icoFoam | gooya_kabir | OpenFOAM Running, Solving & CFD | 2 | November 2, 2013 14:58 |
How to write k and epsilon before the abnormal end | xiuying | OpenFOAM Running, Solving & CFD | 8 | August 27, 2013 16:33 |