|
[Sponsors] |
June 8, 2005, 21:58 |
Crank-Nicolson
|
#1 |
Guest
Posts: n/a
|
HI all,
I am trying to incorporate Crank-Nicolson scheme, into my code, I have a small doubt about the calulation of the source terms for the scheme, when I calculate the source term for the crank-nicolson scheme should I update the new source terms every time step or should I update the source term at every Iteration ? The source term for Crank-Nicolson scheme is calculated as the summation of the product of (flux*velocity_old) for all the directions 4 in 2d and 6 in 3d, although the u_old,v_old,w_old are from previous time step, should the term (flux*velocity_old) be updated every iteration with the newly calcuated "flux", got by discretizing diffusion and convection co-efficients ? Thanks in advance, Glen. |
|
June 25, 2005, 22:16 |
Re: Crank-Nicolson
|
#2 |
Guest
Posts: n/a
|
I guess the method to deal with the source term depends:if the 'flux' is dependent solely on 'velocity',then it should not be updated until next time step;while in-time update may be necessary for the situation that 'flux' changes also with other variables or parameters,and the variables or parameters are not constant during the iterations. I'm not sure about my answer,maybe trial-error is useful,
|
|
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
Crank Nicolson scheme | msrinath80 | OpenFOAM Running, Solving & CFD | 6 | November 14, 2010 14:59 |
crank nicolson....emergency | morteza08 | Main CFD Forum | 5 | June 1, 2010 09:21 |
Crank Nicolson scheme contd | msrinath80 | OpenFOAM Running, Solving & CFD | 0 | December 12, 2006 23:41 |
Crank Nicolson. | ! | Main CFD Forum | 0 | September 5, 2005 13:52 |
Convergence problem using crank nicolson method | Carlos Gonzalez | CFX | 1 | September 24, 2002 17:52 |