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

Pseudo-node computation for QUICK scheme

Register Blogs Community New Posts Updated Threads Search

Like Tree1Likes
  • 1 Post By selig5576

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   November 20, 2017, 15:17
Default Pseudo-node computation for QUICK scheme
  #1
Senior Member
 
Selig
Join Date: Jul 2016
Posts: 213
Rep Power: 11
selig5576 is on a distinguished road
For the nonlinear advection term, I am handling it with the QUICK scheme. Something I am curious about is for the ghost nodes, will using a 1st order method (say upwind) be sufficient? I am using first order upwinds at i=2, i=nx-1, j=2, j=ny-1 (the nodes that are not accounted for in my stencil), but having running into a problem where I get a slight oscillation after a few time steps at the inlet BC. For the sake of debugging, I disabled the advection term and the problem goes away, so I'm sure its a bug in how I am handling the inlet ghost node. As such, is using first order methods subject to injecting oscillations in my numerical solution?

The picture I provided illustrates the oscillation at the bottom of the jet formation. I am working with a moderate Reynolds number of 1000 and a grid of 100 x 100. Even if I increase my resolution to 300 x 300 I still get the oscillation.
Attached Images
File Type: png UVelocity.png (39.5 KB, 11 views)
selig5576 is offline   Reply With Quote

Old   November 20, 2017, 16:28
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
Using a first order approximation just lower the accuracy order, cannot produce oscillations...I think about some bugs..
However, think about the fact that you need to prescribe directly the flux on the boundary and this way no ghost points would be involved.

Try to chek the solution only after the first time step to see if you have problem at the inflow
FMDenaro is offline   Reply With Quote

Old   November 20, 2017, 17:01
Default Bug
  #3
Senior Member
 
Selig
Join Date: Jul 2016
Posts: 213
Rep Power: 11
selig5576 is on a distinguished road
You are right in that I can adjust the flux at the boundary and don't need to solve the equation at the boundaries.

wind direction > 0
Code:
CxM(2,j) = (1.0/dx)*(u(2,j)*max(u(2,j),0.0) - u(1,j)*max(u(1,j),0.0)) + (1.0/dy)*(max(u(2,j),0.0)*v(2,j) - max(u(2,j-1),0.0)*v(2,j-1))
CyM(2,j) = (1.0/dx)*(u(2,j)*max(v(2,j),0.0) - u(1,j)*max(v(1,j),0.0)) + (1.0/dy)*(v(2,j)*max(v(2,j),0.0) - v(2,j-1)*max(v(2,j-1),0.0))
wind direction < 0
Code:
CxP(2,j) = (1.0/dx)*(min(u(3,j),0.0)*u(3,j) - min(u(2,j),0.0)*u(2,j)) + (1.0/dy)*(min(u(2,j+1),0.0)*v(2,j+1) - min(u(2,j),0.0)*v(2,j))
CyP(2,j) = (1.0/dx)*(u(3,j)*min(v(3,j),0.0) - u(2,j)*min(v(2,j),0.0)) + (1.0/dy)*(min(v(2,j+1),0.0)*v(2,j+1) - min(v(2,j),0.0)*v(2,j))
Essentially for the u-momentum, specfically uv_y I min/max the v velocity and for the v-momentum, uv_x, I min/max the u velocity. I am just ensuring that I did not miss something. I am focussing on this as this computation is influenced by the inlet BC.

EDIT: after 1 time step, I do not see the instability.
selig5576 is offline   Reply With Quote

Old   November 20, 2017, 17:26
Default Problem fixed
  #4
Senior Member
 
Selig
Join Date: Jul 2016
Posts: 213
Rep Power: 11
selig5576 is on a distinguished road
To whom it may concern. My problem was due to the fact that I was checking the direction of the wrong velocity term. It is all fixed now
FMDenaro likes this.
selig5576 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
Implementation of QUICK scheme Romuald Skoda Main CFD Forum 11 November 6, 2017 22:20
AUSM scheme ? Central Scheme boling Main CFD Forum 7 January 7, 2016 03:41
Godunov scheme Peter Main CFD Forum 6 November 27, 2009 11:51
extrapolation in MUSCL scheme Chandra Main CFD Forum 6 February 14, 2007 12:21
3D Computation through a radial impeller Ursenbacher Main CFD Forum 3 December 15, 1999 20:56


All times are GMT -4. The time now is 16:18.