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

Problem with QUICK discretization scheme

Register Blogs Community New Posts Updated Threads Search

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   July 26, 2019, 09:01
Default Problem with QUICK discretization scheme
  #1
New Member
 
Ali Baratian
Join Date: Oct 2013
Location: Kuhsangi, Mashhad, Iran
Posts: 22
Rep Power: 13
baratian is on a distinguished road
Hi every body
I have a problem with QUICK scheme
In a 2d pure convection for 2 cells when i apply the scheme ij cell property phi eliminates and only neighbors remain! So how can i calculate the ij cell ?
i.e. sigma"a(nb)×phi(nb)"=0 and there is no a(ij)×phi(ij) in the discretized equation for that two special cells which are near the boundary ! Versteeg dotted cells in pic attached
Thanks in advance
A11-ConvertImage.png

Last edited by baratian; July 26, 2019 at 10:56.
baratian is offline   Reply With Quote

Old   July 26, 2019, 12:45
Default
  #2
Senior Member
 
Filippo Maria Denaro
Join Date: Jul 2010
Posts: 6,897
Rep Power: 73
FMDenaro has a spectacular aura aboutFMDenaro has a spectacular aura aboutFMDenaro has a spectacular aura about
Quote:
Originally Posted by baratian View Post
Hi every body
I have a problem with QUICK scheme
In a 2d pure convection for 2 cells when i apply the scheme ij cell property phi eliminates and only neighbors remain! So how can i calculate the ij cell ?
i.e. sigma"a(nb)×phi(nb)"=0 and there is no a(ij)×phi(ij) in the discretized equation for that two special cells which are near the boundary ! Versteeg dotted cells in pic attached
Thanks in advance
Attachment 71348



Sorry but I don't think to understand clearly your problem...
FMDenaro is offline   Reply With Quote

Old   July 26, 2019, 13:58
Default
  #3
New Member
 
Ali Baratian
Join Date: Oct 2013
Location: Kuhsangi, Mashhad, Iran
Posts: 22
Rep Power: 13
baratian is on a distinguished road
Quote:
Originally Posted by FMDenaro View Post
Sorry but I don't think to understand clearly your problem...
sorry u r right. i try to make it clear. the QUICK scheme as stated in versteeg book is as follow (for a cell downstream face):
2.png
1.png

there is a 2D pure convection problem in the book shown below:
3.png

when i do the discretization for different cells there is no problem except for the mentioned ones stated in the first post i.e. the cell of (2,N) shown below:
4.png

as u c the coefficient of the main cell (2,N) sum to zero!!! and only neighbors remain. so there is no explicit representation for the mentioned cell!!! what should i do to close the system of equations now?!
baratian is offline   Reply With Quote

Old   July 26, 2019, 14:12
Default
  #4
Senior Member
 
Filippo Maria Denaro
Join Date: Jul 2010
Posts: 6,897
Rep Power: 73
FMDenaro has a spectacular aura aboutFMDenaro has a spectacular aura aboutFMDenaro has a spectacular aura about
Quote:
Originally Posted by baratian View Post
sorry u r right. i try to make it clear. the QUICK scheme as stated in versteeg book is as follow (for a cell downstream face):
Attachment 71354
Attachment 71353

there is a 2D pure convection problem in the book shown below:
Attachment 71356

when i do the discretization for different cells there is no problem except for the mentioned ones stated in the first post i.e. the cell of (2,N) shown below:
Attachment 71357

as u c the coefficient of the main cell (2,N) sum to zero!!! and only neighbors remain. so there is no explicit representation for the mentioned cell!!! what should i do to close the system of equations now?!





First of all, I would be sure about your test problem. You have the velocity components u and v constant and prescribed and you want to solve the transport equation


df/dt + d(u*f)/dx+d(v*f)/dy=0


right or not?

In such a case, owing to the hyperbolic character of the equation, you cannot prescribe a Dirichlet condition at the top and right edges of the domain.
How do you define the Finite Volume and its faces? Be also aware that the QUICK schemed in 2D is presented by Leonard in a multidimensional extension but it is formulated for steady flow.
FMDenaro is offline   Reply With Quote

Old   July 26, 2019, 14:36
Default
  #5
New Member
 
Ali Baratian
Join Date: Oct 2013
Location: Kuhsangi, Mashhad, Iran
Posts: 22
Rep Power: 13
baratian is on a distinguished road
Quote:
Originally Posted by FMDenaro View Post
First of all, I would be sure about your test problem. You have the velocity components u and v constant and prescribed and you want to solve the transport equation


df/dt + d(u*f)/dx+d(v*f)/dy=0


right or not?

In such a case, owing to the hyperbolic character of the equation, you cannot prescribe a Dirichlet condition at the top and right edges of the domain.
How do you define the Finite Volume and its faces? Be also aware that the QUICK schemed in 2D is presented by Leonard in a multidimensional extension but it is formulated for steady flow.
yes, u c all the equations are same as in the book they are true for this steady state pure convection problem in which u=v and dx=dy. but for the two cells stated the problem is lack of the phi(i,j) itself !!!
you mean i have done the discretizatin in the wrong way?
baratian is offline   Reply With Quote

Old   July 26, 2019, 14:42
Default
  #6
Senior Member
 
Filippo Maria Denaro
Join Date: Jul 2010
Posts: 6,897
Rep Power: 73
FMDenaro has a spectacular aura aboutFMDenaro has a spectacular aura aboutFMDenaro has a spectacular aura about
Quote:
Originally Posted by baratian View Post
yes, u c all the equations are same as in the book they are true for this steady state pure convection problem in which u=v and dx=dy. but for the two cells stated the problem is lack of the phi(i,j) itself !!!
you mean i have done the discretizatin in the wrong way?



Immagine that the FV you are considering has the left face (w) at the inlet boundary and the top face (n) at the outlet boundary of the domain. Now you have that flux_w is prescribed as inlet value (u*f)_w but the flux (v*f)_n must be deduced from a convection condition from the interior, you cannot set to a value using a Dirichlet condition.


Could you show the picture of your cell arrangement?
FMDenaro is offline   Reply With Quote

Old   July 26, 2019, 14:54
Default
  #7
New Member
 
Ali Baratian
Join Date: Oct 2013
Location: Kuhsangi, Mashhad, Iran
Posts: 22
Rep Power: 13
baratian is on a distinguished road
Quote:
Originally Posted by FMDenaro View Post
Immagine that the FV you are considering has the left face (w) at the inlet boundary and the top face (n) at the outlet boundary of the domain. Now you have that flux_w is prescribed as inlet value (u*f)_w but the flux (v*f)_n must be deduced from a convection condition from the interior, you cannot set to a value using a Dirichlet condition.


Could you show the picture of your cell arrangement?
yeah, as for the QUICK scheme in this problem there are 16 kinds of cells to be treated differently as below,
5.png

the problem exists only for cells '6' and '8'

i have done this problem by upwind and central the results are alike the book, my problem is QUICK for '6' and '8'
baratian is offline   Reply With Quote

Old   July 26, 2019, 15:01
Default
  #8
Senior Member
 
Filippo Maria Denaro
Join Date: Jul 2010
Posts: 6,897
Rep Power: 73
FMDenaro has a spectacular aura aboutFMDenaro has a spectacular aura aboutFMDenaro has a spectacular aura about
Ok, now could you write the expression of each one of the four fluxes for the cell 8? How do you insert the BCs?
FMDenaro is offline   Reply With Quote

Old   July 26, 2019, 15:08
Default
  #9
New Member
 
Ali Baratian
Join Date: Oct 2013
Location: Kuhsangi, Mashhad, Iran
Posts: 22
Rep Power: 13
baratian is on a distinguished road
Quote:
Originally Posted by fmdenaro View Post
ok, now could you write the expression of each one of the four fluxes for the cell 8? How do you insert the bcs?
5.png
4.png
baratian is offline   Reply With Quote

Old   July 26, 2019, 15:11
Default
  #10
New Member
 
Ali Baratian
Join Date: Oct 2013
Location: Kuhsangi, Mashhad, Iran
Posts: 22
Rep Power: 13
baratian is on a distinguished road
for extrapolation as stated in book linearly:
7.png
baratian is offline   Reply With Quote

Old   July 26, 2019, 15:15
Default
  #11
Senior Member
 
Filippo Maria Denaro
Join Date: Jul 2010
Posts: 6,897
Rep Power: 73
FMDenaro has a spectacular aura aboutFMDenaro has a spectacular aura aboutFMDenaro has a spectacular aura about
Quote:
Originally Posted by baratian View Post



- phi_top what is? You do not know it



- The left flux requires the inflow condition for a ghost node, why are you writing that relation?
FMDenaro is offline   Reply With Quote

Old   July 26, 2019, 15:27
Default
  #12
New Member
 
Ali Baratian
Join Date: Oct 2013
Location: Kuhsangi, Mashhad, Iran
Posts: 22
Rep Power: 13
baratian is on a distinguished road
Quote:
Originally Posted by FMDenaro View Post
- phi_top what is? You do not know it



- The left flux requires the inflow condition for a ghost node, why are you writing that relation?
phi_top=100 as stated in pic in last posts

ghost node (left of L boundary which phi_L=100) is extrapolates as suggested by the book, (the pic in last post)
baratian is offline   Reply With Quote

Old   July 26, 2019, 15:29
Default
  #13
Senior Member
 
Filippo Maria Denaro
Join Date: Jul 2010
Posts: 6,897
Rep Power: 73
FMDenaro has a spectacular aura aboutFMDenaro has a spectacular aura aboutFMDenaro has a spectacular aura about
Quote:
Originally Posted by baratian View Post
phi_top=100 as stated in pic in last posts

ghost node (left of L boundary which phi_L=100) is extrapolates as suggested by the book, (the pic in last post)



As I wrote above, you are wrong in setting the BCs
FMDenaro is offline   Reply With Quote

Old   July 26, 2019, 15:33
Default
  #14
New Member
 
Ali Baratian
Join Date: Oct 2013
Location: Kuhsangi, Mashhad, Iran
Posts: 22
Rep Power: 13
baratian is on a distinguished road
Quote:
Originally Posted by FMDenaro View Post
As I wrote above, you are wrong in setting the BCs
where is the fault? are u sure, because i used this BCs for upwind and central and the results were exactly the same as in the book.
baratian is offline   Reply With Quote

Old   August 5, 2019, 09:24
Default
  #15
Member
 
Raphael
Join Date: Nov 2012
Posts: 68
Rep Power: 14
arkie87 is on a distinguished road
Quote:
Originally Posted by baratian View Post
sorry u r right. i try to make it clear. the QUICK scheme as stated in versteeg book is as follow (for a cell downstream face):
Attachment 71354
Attachment 71353

there is a 2D pure convection problem in the book shown below:
Attachment 71356

when i do the discretization for different cells there is no problem except for the mentioned ones stated in the first post i.e. the cell of (2,N) shown below:
Attachment 71357

as u c the coefficient of the main cell (2,N) sum to zero!!! and only neighbors remain. so there is no explicit representation for the mentioned cell!!! what should i do to close the system of equations now?!
look up deferred correction scheme. basically, you use upwind to solve, and then add a source which is equal to (upwind - quick)
arkie87 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
Temporal discretization Scheme CoEuler vsammartano OpenFOAM Running, Solving & CFD 0 April 12, 2016 08:06
Problem using Central differencing scheme with LES in CFX selvam2487 CFX 8 April 11, 2016 14:15
Problem in coding QUICK scheme for convection term mahdi_kh8 Main CFD Forum 1 February 17, 2014 04:25
problem about numerical scheme in LES. libin Main CFD Forum 4 July 1, 2004 05:32
2nd order boundary condition for QUICK scheme Jafarnia Main CFD Forum 0 February 25, 2004 10:03


All times are GMT -4. The time now is 06:47.