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

How to define fluxes for two dimensional convection-diffusion equation?

Register Blogs Members List Search Today's Posts Mark Forums Read

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   September 8, 2015, 09:14
Default How to define fluxes for two dimensional convection-diffusion equation?
  #1
New Member
 
Tanmay Agrawal
Join Date: May 2015
Location: Taiwan
Posts: 29
Rep Power: 10
tanmayagrawal7 is on a distinguished road
Send a message via Skype™ to tanmayagrawal7
tanmayagrawal7 is offline   Reply With Quote

Old   September 8, 2015, 11:08
Default
  #2
Senior Member
 
Filippo Maria Denaro
Join Date: Jul 2010
Posts: 6,764
Rep Power: 71
FMDenaro has a spectacular aura aboutFMDenaro has a spectacular aura aboutFMDenaro has a spectacular aura about
The definition of F and G are correct and they define the fluxes in the exact continous form. Note that in the equation you wrote you assumed u=v=1. The general convective fluxes are u*T and v*T

However, the discretization you wrote is not the only one you can write in a FVM. You wrote a second order central discretization, which combined with the first order explicit time discretization has relevant stability constraint to work with. If lambda vanishes (the equation will be hyperbolic in such case) your discretization is unconditionally unstable.
FMDenaro is offline   Reply With Quote

Old   September 9, 2015, 08:21
Default
  #3
New Member
 
Tanmay Agrawal
Join Date: May 2015
Location: Taiwan
Posts: 29
Rep Power: 10
tanmayagrawal7 is on a distinguished road
Send a message via Skype™ to tanmayagrawal7
Quote:
Originally Posted by FMDenaro View Post
The definition of F and G are correct and they define the fluxes in the exact continous form. Note that in the equation you wrote you assumed u=v=1. The general convective fluxes are u*T and v*T

However, the discretization you wrote is not the only one you can write in a FVM. You wrote a second order central discretization, which combined with the first order explicit time discretization has relevant stability constraint to work with. If lambda vanishes (the equation will be hyperbolic in such case) your discretization is unconditionally unstable.
May I ask you how do we say whether this PDE is hyperbolic or elliptic or parabolic? Because we have three independent variables here i.e. x, y and t. So if lambda is zero, does not that mean that it should rather be parabolic because A = B = C = 0 and therefore B^2 - 4*A*C equals zero?
tanmayagrawal7 is offline   Reply With Quote

Old   September 9, 2015, 08:31
Default
  #4
Senior Member
 
Filippo Maria Denaro
Join Date: Jul 2010
Posts: 6,764
Rep Power: 71
FMDenaro has a spectacular aura aboutFMDenaro has a spectacular aura aboutFMDenaro has a spectacular aura about
Classification of PDE is a mathematical tool used for second order PDE (or system of PDE), you have to analyse the nature of the eigenvalues.
In your case if lambda =0 you have a first order equation that has no other classification than hyperbolic.
FMDenaro is offline   Reply With Quote

Old   September 9, 2015, 08:35
Default
  #5
New Member
 
Tanmay Agrawal
Join Date: May 2015
Location: Taiwan
Posts: 29
Rep Power: 10
tanmayagrawal7 is on a distinguished road
Send a message via Skype™ to tanmayagrawal7
Quote:
Originally Posted by FMDenaro View Post
Classification of PDE is a mathematical tool used for second order PDE (or system of PDE), you have to analyse the nature of the eigenvalues.
In your case if lambda =0 you have a first order equation that has no other classification than hyperbolic.
May you please let me know about any easy resource from where I can judge about the nature of eigenvalues? (Sorry my mathematics background is not very strong). Since I am using a mesh refinement procedure which was designed for hyperbolic PDEs, I am getting some undesired results (probably because my PDE is not hyperbolic as lambda is non-zero positive quantity).
tanmayagrawal7 is offline   Reply With Quote

Old   September 9, 2015, 08:42
Default
  #6
Senior Member
 
Filippo Maria Denaro
Join Date: Jul 2010
Posts: 6,764
Rep Power: 71
FMDenaro has a spectacular aura aboutFMDenaro has a spectacular aura aboutFMDenaro has a spectacular aura about
Quote:
Originally Posted by tanmayagrawal7 View Post
May you please let me know about any easy resource from where I can judge about the nature of eigenvalues? (Sorry my mathematics background is not very strong). Since I am using a mesh refinement procedure which was designed for hyperbolic PDEs, I am getting some undesired results (probably because my PDE is not hyperbolic as lambda is non-zero positive quantity).
Any good textbook about PDE describes this classification...
The eigenvalue-based classification is described also in some classical CFD texbook such as Chap.3 in:

https://books.google.it/books?hl=it&...namics&f=false
FMDenaro is offline   Reply With Quote

Old   September 9, 2015, 08:44
Default
  #7
New Member
 
Tanmay Agrawal
Join Date: May 2015
Location: Taiwan
Posts: 29
Rep Power: 10
tanmayagrawal7 is on a distinguished road
Send a message via Skype™ to tanmayagrawal7
Quote:
Originally Posted by FMDenaro View Post
Any good textbook about PDE describes this classification...
The eigenvalue-based classification is described also in some classical CFD texbook such as Chap.3 in:

https://books.google.it/books?hl=it&...namics&f=false
Thanks a lot!! BTW, if my lambda is non-zero positive, what kind of PDE would that be? And also, do you have any experience in mesh refinement(local or adaptive)?
tanmayagrawal7 is offline   Reply With Quote

Old   September 9, 2015, 10:22
Default
  #8
Senior Member
 
Filippo Maria Denaro
Join Date: Jul 2010
Posts: 6,764
Rep Power: 71
FMDenaro has a spectacular aura aboutFMDenaro has a spectacular aura aboutFMDenaro has a spectacular aura about
Quote:
Originally Posted by tanmayagrawal7 View Post
Thanks a lot!! BTW, if my lambda is non-zero positive, what kind of PDE would that be? And also, do you have any experience in mesh refinement(local or adaptive)?

second order parabolic equation
FMDenaro is offline   Reply With Quote

Old   September 9, 2015, 10:25
Default
  #9
New Member
 
Tanmay Agrawal
Join Date: May 2015
Location: Taiwan
Posts: 29
Rep Power: 10
tanmayagrawal7 is on a distinguished road
Send a message via Skype™ to tanmayagrawal7
Quote:
Originally Posted by FMDenaro View Post
second order parabolic equation
Professor, for this PDE with λ>0. Should not it be elliptic? Because A=C=λ and B is zero? How do we manage the third independent variables i.e. time, in such cases?
tanmayagrawal7 is offline   Reply With Quote

Old   September 9, 2015, 10:27
Default
  #10
Senior Member
 
Filippo Maria Denaro
Join Date: Jul 2010
Posts: 6,764
Rep Power: 71
FMDenaro has a spectacular aura aboutFMDenaro has a spectacular aura aboutFMDenaro has a spectacular aura about
Quote:
Originally Posted by tanmayagrawal7 View Post
Professor, for this PDE with λ>0. Should not it be elliptic? Because A=C=λ and B is zero? How do we manage the third independent variables i.e. time, in such cases?

no at all...elliptic is only at the steady state (dT/dt=0)
FMDenaro is offline   Reply With Quote

Old   September 9, 2015, 10:34
Default
  #11
New Member
 
Tanmay Agrawal
Join Date: May 2015
Location: Taiwan
Posts: 29
Rep Power: 10
tanmayagrawal7 is on a distinguished road
Send a message via Skype™ to tanmayagrawal7
Quote:
Originally Posted by FMDenaro View Post
no at all...elliptic is only at the steady state (dT/dt=0)
Oh! So for unsteady, I would be treating that y as t rather. Is that right?
tanmayagrawal7 is offline   Reply With Quote

Old   September 9, 2015, 10:41
Default
  #12
Senior Member
 
Filippo Maria Denaro
Join Date: Jul 2010
Posts: 6,764
Rep Power: 71
FMDenaro has a spectacular aura aboutFMDenaro has a spectacular aura aboutFMDenaro has a spectacular aura about
Quote:
Originally Posted by tanmayagrawal7 View Post
Oh! So for unsteady, I would be treating that y as t rather. Is that right?
Why?? in the unsteady case you have x,y,t as independent variables, x,y in the steady case ...
FMDenaro is offline   Reply With Quote

Old   September 9, 2015, 10:44
Default
  #13
New Member
 
Tanmay Agrawal
Join Date: May 2015
Location: Taiwan
Posts: 29
Rep Power: 10
tanmayagrawal7 is on a distinguished road
Send a message via Skype™ to tanmayagrawal7
Quote:
Originally Posted by FMDenaro View Post
Why?? in the unsteady case you have x,y,t as independent variables, x,y in the steady case ...
I mean, just for checking the nature of PDE. To check the nature of unsteady PDE here as parabolic, we are not considering the T_yy term, because space is already considered in T_xx term. Is that right Professor?
tanmayagrawal7 is offline   Reply With Quote

Old   September 9, 2015, 10:51
Default
  #14
Senior Member
 
Filippo Maria Denaro
Join Date: Jul 2010
Posts: 6,764
Rep Power: 71
FMDenaro has a spectacular aura aboutFMDenaro has a spectacular aura aboutFMDenaro has a spectacular aura about
Quote:
Originally Posted by tanmayagrawal7 View Post
I mean, just for checking the nature of PDE. To check the nature of unsteady PDE here as parabolic, we are not considering the T_yy term, because space is already considered in T_xx term. Is that right Professor?
pk, if you want to study a simple model, check for the 1D counterpart

dT/dt + u dT/dx = d/dx (lambda dT/dx)
FMDenaro is offline   Reply With Quote

Old   September 9, 2015, 11:10
Default
  #15
New Member
 
Tanmay Agrawal
Join Date: May 2015
Location: Taiwan
Posts: 29
Rep Power: 10
tanmayagrawal7 is on a distinguished road
Send a message via Skype™ to tanmayagrawal7
Quote:
Originally Posted by FMDenaro View Post
pk, if you want to study a simple model, check for the 1D counterpart

dT/dt + u dT/dx = d/dx (lambda dT/dx)
Professor, so if I have any second order PDE in three variables x, y and t and if I have to find the nature of PDE. I should always check it's 1D counterpart?
tanmayagrawal7 is offline   Reply With Quote

Old   September 9, 2015, 11:15
Default
  #16
Senior Member
 
Filippo Maria Denaro
Join Date: Jul 2010
Posts: 6,764
Rep Power: 71
FMDenaro has a spectacular aura aboutFMDenaro has a spectacular aura aboutFMDenaro has a spectacular aura about
Quote:
Originally Posted by tanmayagrawal7 View Post
Professor, so if I have any second order PDE in three variables x, y and t and if I have to find the nature of PDE. I should always check it's 1D counterpart?

Not exactly the same because the number of eigenvelues depends on the number of equations but you can see similar infos... for example the 1D Euler system is hyperbolic (3 real distinct eigenvalues) as same as it would be for the 3D case (5 eigenvalues).
FMDenaro is offline   Reply With Quote

Old   September 9, 2015, 11:19
Default
  #17
New Member
 
Tanmay Agrawal
Join Date: May 2015
Location: Taiwan
Posts: 29
Rep Power: 10
tanmayagrawal7 is on a distinguished road
Send a message via Skype™ to tanmayagrawal7
Quote:
Originally Posted by FMDenaro View Post
Not exactly the same because the number of eigenvelues depends on the number of equations but you can see similar infos... for example the 1D Euler system is hyperbolic (3 real distinct eigenvalues) as same as it would be for the 3D case (5 eigenvalues).
Thanks a lot for your guidance professor. I now, atleast have some idea about it. I actually want to use mesh refinement schemes on this PDE. I was using the method proposed by Berger and Collela (http://www.sciencedirect.com/science...21999189900351) but they have mentioned it to be for hyperbolic PDEs. Now I am not very sure if I can use the same method for this PDE or not?
tanmayagrawal7 is offline   Reply With Quote

Old   September 9, 2015, 11:27
Default
  #18
Senior Member
 
Filippo Maria Denaro
Join Date: Jul 2010
Posts: 6,764
Rep Power: 71
FMDenaro has a spectacular aura aboutFMDenaro has a spectacular aura aboutFMDenaro has a spectacular aura about
Quote:
Originally Posted by tanmayagrawal7 View Post
Thanks a lot for your guidance professor. I now, atleast have some idea about it. I actually want to use mesh refinement schemes on this PDE. I was using the method proposed by Berger and Collela (http://www.sciencedirect.com/science...21999189900351) but they have mentioned it to be for hyperbolic PDEs. Now I am not very sure if I can use the same method for this PDE or not?

No, of course the refinement for hyperbolic PDE is different...
have a look to the book I linked
FMDenaro is offline   Reply With Quote

Old   September 9, 2015, 11:32
Default
  #19
New Member
 
Tanmay Agrawal
Join Date: May 2015
Location: Taiwan
Posts: 29
Rep Power: 10
tanmayagrawal7 is on a distinguished road
Send a message via Skype™ to tanmayagrawal7
Quote:
Originally Posted by FMDenaro View Post
No, of course the refinement for hyperbolic PDE is different...
have a look to the book I linked
Sure Professor. I will get a hard copy of it tomorrow as some of the pages in the chapter containing multigrid methods are not accessible.
And may be simultaneously to check my mesh refinement code, I can put lambda = 0 and then PDE would be first order hyperbolic and I can use that refinement scheme. Is that right?
tanmayagrawal7 is offline   Reply With Quote

Old   September 9, 2015, 11:35
Default
  #20
Senior Member
 
Filippo Maria Denaro
Join Date: Jul 2010
Posts: 6,764
Rep Power: 71
FMDenaro has a spectacular aura aboutFMDenaro has a spectacular aura aboutFMDenaro has a spectacular aura about
Quote:
Originally Posted by tanmayagrawal7 View Post
Sure Professor. I will get a hard copy of it tomorrow as some of the pages in the chapter containing multigrid methods are not accessible.
And may be simultaneously to check my mesh refinement code, I can put lambda = 0 and then PDE would be first order hyperbolic and I can use that refinement scheme. Is that right?
you are working with u and v constant and known? In this case, the solution is a simple linear wave propagating along the path-line, the grid-refinement should move dynamically
FMDenaro is offline   Reply With Quote

Reply

Tags
finite difference, finite volume, math, mesh, pde

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

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
Model crashes while solving advection diffusion equation cooljd Main CFD Forum 3 August 23, 2012 10:40
Spectral Element DG and the Convection Diffusion Equation sspatelccny Main CFD Forum 0 June 30, 2012 17:35
error message cuteapathy CFX 14 March 20, 2012 06:45
Define an equation for the inlet velocity profile Alshroof CFX 3 January 9, 2007 19:34
Free surface boudary conditions with SOLA-VOF Fan Main CFD Forum 10 September 9, 2006 12:24


All times are GMT -4. The time now is 21:22.