Adams-Bashforth implicit scheme for time.
Hello :)
I would like to use a second order accurate Adams-Bashforth implicit scheme for time. I searched in the Internet, how to implement this scheme in OpenFOAM but i did not find any Information about it... Can we use this kind of scheme in OpenFOAM ? Is there any option to use other scheme, which works in the same way ? |
Hello, Mirage12.
For example, I want to solve ∂y/∂t + ∂(yU_i)/∂x_i = 0. To use Adams-Bashforth, I should do next y^(n+1) = y^(n) - dt*(3/2*( ∂(y^(n+1)U_i)/∂x_i) - 0.5*( ∂(y^(n)U_i)/∂x_i)). That seems right, yes? So, implementation would be Code:
|
I don t know ...
|
Of course, you can study how CrankNicholson scheme is implemented in OF and create AB from it, but this is the fastest way.
By the way, Crank-Nicholson scheme is easy to implement too Code:
yEqn |
could you please specify where should i implement the code ?
i am not really an expert...i am just a beginner :D |
Okay, e.g., let's take icoFoam and use AB for momentum time discretisation.
icoFoam.C looks like: Code:
... Code:
... |
Thx , i wil try it :)
|
All times are GMT -4. The time now is 08:58. |