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

Upwind scheme (in a cell with zero velocity)

Register Blogs Community New Posts Updated Threads Search

Like Tree2Likes
  • 1 Post By FMDenaro
  • 1 Post By MollyTom

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   May 2, 2013, 13:13
Default Upwind scheme (in a cell with zero velocity)
  #1
New Member
 
Molly Tom
Join Date: May 2013
Posts: 3
Rep Power: 13
MollyTom is on a distinguished road
I am somewhat new to CFD and am wondering how the first order upwind scheme would be applied to a cell with a zero velocity. It is my understanding that, in the upwind scheme, the sign of the cell velocity is used to determine which cell velocities are applied at the cell faces. But what happens when the cell velocity is zero (how is the upwind direction determined)? This is probably not important in a large region of zero velocity cells, but I'm thinking about a zero velocity cell that is adjacent to a non-zero velocity cell.
MollyTom is offline   Reply With Quote

Old   May 2, 2013, 13:19
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 MollyTom View Post
I am somewhat new to CFD and am wondering how the first order upwind scheme would be applied to a cell with a zero velocity. It is my understanding that, in the upwind scheme, the sign of the cell velocity is used to determine which cell velocities are applied at the cell faces. But what happens when the cell velocity is zero (how is the upwind direction determined)? This is probably not important in a large region of zero velocity cells, but I'm thinking about a zero velocity cell that is adjacent to a non-zero velocity cell.

where you have zero velocity there is no convective flux contributing to the balance....
FMDenaro is offline   Reply With Quote

Old   May 2, 2013, 14:17
Default
  #3
New Member
 
Molly Tom
Join Date: May 2013
Posts: 3
Rep Power: 13
MollyTom is on a distinguished road
But wouldn't it matter in a case like this?

|------------------|-------------------|-----------------|
|-------i-1---------|---------i---------|------- i+1-------|
|-----u(i-1)=1----- |-------u(i)=0------|----- u(i+1)=0---|
|------------------ |------------------|------------------|

---------------u(i-1/2)=???---------u(i+1/2)=0

So, for cell (i), shouldn't the first order upwind scheme assign a value of
u(i-1/2)=1? But how would the upwind scheme determine this, because the velocity at cell (i) is zero?
MollyTom is offline   Reply With Quote

Old   May 2, 2013, 14:47
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
- In FD scheme, you evaluate u*du/dx which is zero at node i as u(i)=0.

- In FV scheme you need to evaluate the flux difference f(i+1/2) - f(i-1/2). Now you can evaluate the velocity at the interface by means of linear interpolation:

u(i-1/2) = 0.5*(u(i)+u(i-1)); u(i+1/2) = 0.5*(u(i)+u(i+1))

Then the sign will be the direction for evaluating the upwinded flux.

Note that your example is a discontinuity travelling
immortality likes this.
FMDenaro is offline   Reply With Quote

Old   May 6, 2013, 15:04
Default
  #5
New Member
 
Molly Tom
Join Date: May 2013
Posts: 3
Rep Power: 13
MollyTom is on a distinguished road
Yes. Thank you very much, I think I understand now. For computing the upwind flux direction, the velocity at the cell interface is computed by averaging the velocities at the cell centers that bound the interface. But, for the first-order upwind scheme (once the upwind direction has been determined), the interface fluxes are evaluated using the appropriate cell center velocity.
Anne Lincke likes this.
MollyTom 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
Difficulty in calculating angular velocity of Savonius turbine simulation alfaruk CFX 14 March 17, 2017 07:08
Are backward scheme and the upwind scheme the same thing in FDM? lnk Main CFD Forum 1 August 30, 2012 03:38
Velocity from an upwind cell vitke OpenFOAM Running, Solving & CFD 0 September 3, 2007 07:15
[Commercial meshers] Trimmed cell and embedded refinement mesh conversion issues michele OpenFOAM Meshing & Mesh Conversion 2 July 15, 2005 05:15
DPM velocity at cell face Szabolcs Varga FLUENT 1 September 16, 2004 08:30


All times are GMT -4. The time now is 02:46.