Inexplicable behaviour of CrankNicholson Scheme
1 Attachment(s)
Dear all,
when I run transientSimpleFoam (without any turbulence models, codes are attached) on a very trivial case where the flow is just going through a 2D frictionfree channel (blockMeshDict and boundary condition files etc. are attached too), I observe unphysical uniform pressure gradient in the direction of the flow. As the calculation proceeds in time, the pressure gradient tends to vanish, but even after 100 FlowThroughTime it still stays there. Another thing is that when I edit icoFoam as the following, phi = (fvc::interpolate(U) & mesh.Sf()); // + fvc::ddtPhiCorr(rUA, U, phi); I obtain the same unphysical pressure gradient. As far as I know, the term I omitted is for the calculation with a very small time step width and not supposed to behave like this. Let me also note that the pressure gradient appears even when the calculation starts from the uniform velocity field with the inlet velocity magnitude which can be obtained by another solver or whatever. When I run this icoFoam with the implicit Euler scheme, the unphysical pressure gradient does not appear. Unstability is, however, no excuse on this very trivial case (Courant number was set less than 1, just for info). If anyone would tell me why this happens, I deeply appreciate it. Thank you, tomori 
My applogies
Starting from some reasonable initial field and avoiding a "rocketstart" solution, CrankNicholson was all right. My deepest appologies.

All times are GMT 4. The time now is 05:48. 