CFD Online Logo CFD Online URL
www.cfd-online.com
[Sponsors]
Home > Forums > General Forums > Main CFD Forum

Is the Crank-Nicolson method for a parabolic pde with source term conditionally stabl

Register Blogs Community New Posts Updated Threads Search

Like Tree4Likes
  • 1 Post By eozugurlu
  • 1 Post By FMDenaro
  • 1 Post By FMDenaro
  • 1 Post By FMDenaro

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   September 2, 2022, 06:19
Default Is the Crank-Nicolson method for a parabolic pde with source term conditionally stabl
  #1
New Member
 
Ersin
Join Date: Sep 2022
Posts: 6
Rep Power: 4
eozugurlu is on a distinguished road
Dear All,
Is the Crank-Nicolson method for a parabolic pde with source term conditionally stable? Our source term is a typical rho*u*(1-u) where rho=0.023 (constant and small); our pde is u_t=a*u_xx+ rho*u*(1-u), u_x(x=0,t)=0, u_x(x=1,t)=0, u(0,t) is given as well.
When we try to show the stability of the Crank-Nicolson, first of all we take the linear form of the source term as rho*u.
We get the amplification factor as
g=(1-2*R sin^2(theta/2)+(1/2)*rho*Delta t)/(1+2*R sin^2(theta/2)-(1/2)*rho*Delta t)
where R=(a*Delta t)/(Delta x)^2.
To get |g|<=1 we get a conditional stability ???? Is this normal? Today, I have read an article "Stability analysis of Crank–Nicolson and Euler schemes
for time-dependent diffusion equations" by Cassio M. Oishi · Jin Y. Yuan ·
Jose A. Cuminato · David E. Stewart and they say that if the BC is explicit then the Crank-Nicolson is conditionally stable.
aerosayan likes this.
eozugurlu is offline   Reply With Quote

Old   September 2, 2022, 09:07
Default
  #2
Senior Member
 
Filippo Maria Denaro
Join Date: Jul 2010
Posts: 6,849
Rep Power: 73
FMDenaro has a spectacular aura aboutFMDenaro has a spectacular aura aboutFMDenaro has a spectacular aura about
Quote:
Originally Posted by eozugurlu View Post
Dear All,
Is the Crank-Nicolson method for a parabolic pde with source term conditionally stable? Our source term is a typical rho*u*(1-u) where rho=0.023 (constant and small); our pde is u_t=a*u_xx+ rho*u*(1-u), u_x(x=0,t)=0, u_x(x=1,t)=0, u(0,t) is given as well.
When we try to show the stability of the Crank-Nicolson, first of all we take the linear form of the source term as rho*u.
We get the amplification factor as
g=(1-2*R sin^2(theta/2)+(1/2)*rho*Delta t)/(1+2*R sin^2(theta/2)-(1/2)*rho*Delta t)
where R=(a*Delta t)/(Delta x)^2.
To get |g|<=1 we get a conditional stability ???? Is this normal? Today, I have read an article "Stability analysis of Crank–Nicolson and Euler schemes
for time-dependent diffusion equations" by Cassio M. Oishi · Jin Y. Yuan ·
Jose A. Cuminato · David E. Stewart and they say that if the BC is explicit then the Crank-Nicolson is conditionally stable.

Before addressing my opinion, I would be sure of your scheme for the source term. It is explicit or implicit?
FMDenaro is offline   Reply With Quote

Old   September 2, 2022, 10:07
Default source term is treated as implicit ...
  #3
New Member
 
Ersin
Join Date: Sep 2022
Posts: 6
Rep Power: 4
eozugurlu is on a distinguished road
source term is treated as rho*(u_m^n+1 + u_m^n)/2 in Crank-Nicolson.
eozugurlu is offline   Reply With Quote

Old   September 2, 2022, 10:28
Default
  #4
Senior Member
 
Filippo Maria Denaro
Join Date: Jul 2010
Posts: 6,849
Rep Power: 73
FMDenaro has a spectacular aura aboutFMDenaro has a spectacular aura aboutFMDenaro has a spectacular aura about
Ok, assuming a convection-diffusion-production equation, you have to produce the stabilty regions like I computed here. If you disregard the convection you have one plane since G_max(alpha,rho) for any theta.

https://www.researchgate.net/publica...extFileContent
aerosayan likes this.
FMDenaro is offline   Reply With Quote

Old   September 2, 2022, 10:41
Default
  #5
New Member
 
Ersin
Join Date: Sep 2022
Posts: 6
Rep Power: 4
eozugurlu is on a distinguished road
you are not using Crank-Nicolson, your scheme is an explicit one.
eozugurlu is offline   Reply With Quote

Old   September 2, 2022, 11:57
Default
  #6
Senior Member
 
Filippo Maria Denaro
Join Date: Jul 2010
Posts: 6,849
Rep Power: 73
FMDenaro has a spectacular aura aboutFMDenaro has a spectacular aura aboutFMDenaro has a spectacular aura about
Quote:
Originally Posted by eozugurlu View Post
you are not using Crank-Nicolson, your scheme is an explicit one.
Yes and what is the issue? For implicit scheme You have only to divide the RHS by the expression the multiplies E_n+1 in the LHS and you have G exactly like for explicit scheme.
FMDenaro is offline   Reply With Quote

Old   September 2, 2022, 13:42
Default
  #7
Senior Member
 
Filippo Maria Denaro
Join Date: Jul 2010
Posts: 6,849
Rep Power: 73
FMDenaro has a spectacular aura aboutFMDenaro has a spectacular aura aboutFMDenaro has a spectacular aura about
This is what I found in your case
Attached Images
File Type: jpg 0C7D901B-4E34-4244-AAE9-12B8C07CDC26.jpg (39.0 KB, 8 views)
FMDenaro is offline   Reply With Quote

Old   September 2, 2022, 13:44
Default
  #8
New Member
 
Ersin
Join Date: Sep 2022
Posts: 6
Rep Power: 4
eozugurlu is on a distinguished road
Dear Dr. Denaro,

We get the amplification factor using the Crank-Nicolson method applied to
u_t=a*u_xx+ rho*u*(1-u)
as
g=(1-2*R sin^2(theta/2)+(1/2)*rho*Delta t)/(1+2*R sin^2(theta/2)-(1/2)*rho*Delta t)
where R=(a*Delta t)/(Delta x)^2.
Can you say that the Crank-Nicolson method is unconditionally stable?
eozugurlu is offline   Reply With Quote

Old   September 2, 2022, 13:48
Default
  #9
Senior Member
 
Filippo Maria Denaro
Join Date: Jul 2010
Posts: 6,849
Rep Power: 73
FMDenaro has a spectacular aura aboutFMDenaro has a spectacular aura aboutFMDenaro has a spectacular aura about
Quote:
Originally Posted by eozugurlu View Post
Dear Dr. Denaro,

We get the amplification factor using the Crank-Nicolson method applied to
u_t=a*u_xx+ rho*u*(1-u)
as
g=(1-2*R sin^2(theta/2)+(1/2)*rho*Delta t)/(1+2*R sin^2(theta/2)-(1/2)*rho*Delta t)
where R=(a*Delta t)/(Delta x)^2.
Can you say that the Crank-Nicolson method is unconditionally stable?



You cannot do that. The classical von Neumann stability analsys applies for the linear case, you cannot use the analsys as-it-is for the non linear case.
aerosayan likes this.
FMDenaro is offline   Reply With Quote

Old   September 2, 2022, 13:52
Default
  #10
New Member
 
Ersin
Join Date: Sep 2022
Posts: 6
Rep Power: 4
eozugurlu is on a distinguished road
I have stated that I applied it to the linear form in my first post
eozugurlu is offline   Reply With Quote

Old   September 2, 2022, 13:54
Default
  #11
New Member
 
Ersin
Join Date: Sep 2022
Posts: 6
Rep Power: 4
eozugurlu is on a distinguished road
Quote:
Originally Posted by FMDenaro View Post
This is what I found in your case
what can you say about the stability then? Is the ratio less than 1 for every Delta and Delta x?
eozugurlu is offline   Reply With Quote

Old   September 2, 2022, 14:02
Default
  #12
Senior Member
 
Filippo Maria Denaro
Join Date: Jul 2010
Posts: 6,849
Rep Power: 73
FMDenaro has a spectacular aura aboutFMDenaro has a spectacular aura aboutFMDenaro has a spectacular aura about
Quote:
Originally Posted by eozugurlu View Post
Dear Dr. Denaro,

We get the amplification factor using the Crank-Nicolson method applied to
u_t=a*u_xx+ rho*u*(1-u)
as
g=(1-2*R sin^2(theta/2)+(1/2)*rho*Delta t)/(1+2*R sin^2(theta/2)-(1/2)*rho*Delta t)
where R=(a*Delta t)/(Delta x)^2.
Can you say that the Crank-Nicolson method is unconditionally stable?



You wrote the non linear source term.

I wrote in my note the amplification factor for the linear source term, you can deduce the condition for G(alpha, beta) at the worst theta =k*h condition.
aerosayan likes this.
FMDenaro is offline   Reply With Quote

Reply


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are Off
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
[openSmoke] LaminarSMOKE compilation error mdhfiz OpenFOAM Community Contributions 8 July 2, 2024 11:32
[Other] Tabulated thermophysicalProperties library chriss85 OpenFOAM Community Contributions 62 October 2, 2022 04:50
How to add Source term (2) for PYROLYSIS - reactingOneDim Kummi OpenFOAM 10 April 12, 2021 22:11
Source term for EVAPORATION in Energy Equ. - technical difficulty ? Kummi OpenFOAM 1 September 9, 2019 10:32
polynomial BC srv537 OpenFOAM Pre-Processing 4 December 3, 2016 10:07


All times are GMT -4. The time now is 23:52.