|
[Sponsors] |
![]() |
![]() |
#1 |
Senior Member
Mandeep Shetty
Join Date: Apr 2016
Posts: 185
Rep Power: 10 ![]() |
I had worked with the Crank Nicolson method in college to solve the diffusion equation.... but there I had always used central differencing to discretize the space terms. Even now when I look-up most of the texts and notes explain the CN method I find the use of central differencing for the space derivative terms. My question is can we use another method, like say forward differencing or backward differencing, instead of central differencing (I realize they are first order and I don't know if they will stable) to discretize the space terms?
I asking because in OpenFOAM we use CN scheme for time terms and can pick any other schemes for the Gradient or Laplacian or some other space terms, which are not central differencing. So this made me go back to what I had learned during my college days. |
|
![]() |
![]() |
![]() |
![]() |
#2 | |
Senior Member
Filippo Maria Denaro
Join Date: Jul 2010
Posts: 6,830
Rep Power: 73 ![]() ![]() ![]() |
Quote:
The answer is that you can formally use any type of spatial discretization, the CN can be seen as a second order trapezodial rule for the time integration. But your final goal is to have a stable and accurate solution and is suitable to use at least a second order accurate spatial discretization. I used personally with success the CN scheme coupled to a fourth order accurate spatial discretization. |
||
![]() |
![]() |
![]() |
![]() |
#3 | |
Senior Member
Mandeep Shetty
Join Date: Apr 2016
Posts: 185
Rep Power: 10 ![]() |
Quote:
|
||
![]() |
![]() |
![]() |
Tags |
crank-nicolson |
|
|
![]() |
||||
Thread | Thread Starter | Forum | Replies | Last Post |
Implementtaion of Crank Nicolson scheme in OpenFOAM | hchen | OpenFOAM Running, Solving & CFD | 5 | May 6, 2020 14:25 |
Fraction Step Method Question | matdehaast | Main CFD Forum | 6 | January 17, 2016 10:39 |
A fundamental question on FDF (Filtered density function) method for turbulent flow | levinperson | Main CFD Forum | 0 | December 20, 2015 14:51 |
Basic question about writing a differential equation related to finite element | RbBb | Main CFD Forum | 1 | April 10, 2014 03:50 |
Basic question | forsumit | OpenFOAM | 0 | April 7, 2010 10:46 |