CFD Online Logo CFD Online URL
www.cfd-online.com
[Sponsors]
Home > Forums > Software User Forums > OpenFOAM

How to handel source term in near wall cells

Register Blogs Community New Posts Updated Threads Search

Like Tree1Likes
  • 1 Post By kaifu

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   May 11, 2011, 07:20
Default How to handel source term in near wall cells
  #1
Member
 
Kai
Join Date: May 2010
Location: Shanghai
Posts: 61
Blog Entries: 1
Rep Power: 15
kaifu is on a distinguished road
Hi Foamers

I have a source term Gamma on RHS of energy equation, which of course is a type of volScalarField. However this source term only appears in near wall cells and it is zero elsewhere. In physics, this source term should only come from the wall, which should be a surfaceScalarField. The flux of Gamma on the wall surface should be:
Quote:
Gamma*volume of cell
However in energy equation, every term should be written in form of volScalarField (may interpolate to surface later). In such situation, when using central differencing scheme, the surface flux on boundary (wall) may be smaller than it should be. And what is worse, the interpolated value Gamma on the other side of surface will not be zero. (The near wall cells are all cubics) This is definitely not acceptable in physics. I have considered using upwind differencing scheme for Gamma. It is easy to make the flux of Gamma to be zero on the other side of cells (not wall surface) but the problem is how could I interpolate Gamma to the wall boundary? Thx.

// Kai
mm.abdollahzadeh likes this.
kaifu is offline   Reply With Quote

Old   May 15, 2011, 16:59
Default
  #2
Member
 
Kai
Join Date: May 2010
Location: Shanghai
Posts: 61
Blog Entries: 1
Rep Power: 15
kaifu is on a distinguished road
Some updates: My mistake. All the explicit term in energy equation will be treated like
Code:
Gamma*volume of cell
which means there is no interpolation of Gamma onto cell faces. Only the implicit one will be interpolated.

// Kai
kaifu 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
Superlinear speedup in OpenFOAM 13 msrinath80 OpenFOAM Running, Solving & CFD 18 March 3, 2015 05:36
UDF for wall slipping HFLUENT Fluent UDF and Scheme Programming 0 April 27, 2011 12:03
DxFoam reader update hjasak OpenFOAM Post-Processing 69 April 24, 2008 01:24
Multicomponent fluid Andrea CFX 2 October 11, 2004 05:12
UDF Scalar Code: HT 1 Greg Perkins FLUENT 8 October 20, 2000 12:40


All times are GMT -4. The time now is 19:30.