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

Diffusion routine in prop.h

Register Blogs Community New Posts Updated Threads Search

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   October 7, 2009, 12:35
Default Diffusion routine in prop.h
  #1
New Member
 
Peter
Join Date: Mar 2009
Posts: 15
Rep Power: 17
pifou74 is on a distinguished road
Hello everybody,

I'm looking for an interpolation of the diffusion coefficient at the faces in Fluent.
I have found in the routines prop.h two routines enabling mean harmonic calculation. The first one is :

#define DIFFUSION_COEF_AVE(d0,d1)((ABS((d0)+(d1))<SMALL_S) ? 0.0 : (2*(d0)*(d1)/((d0)+(d1))))

and the second one :

#define DIFFUSION_COEF_AVE_LONG0(g0,g1,d0,d1,r)\
((((d1)*(g0)+(d0)*(g1)+(r)*(g0)*(g1))==0.0) ? 0.0 : \
((d0)+(d1))*(g0)*(g1)/((d1)*(g0)+(d0)*(g1)+(r)*(g0)*(g1)))

The first one is easy to understand (harmonic mean on a regular grid).

The second one is more mysterious for me. I presume that it is used in case of non uniform and non structured grid.
I presume that g0 and g1 are the diffusion coefficients at respectively cells 0 and 1. I can imagine that d0 and d1 are the distance between the cells and the face center. Nevertheless, I don't understand what can be the variable r?? I don't understand anymore the formulation.

If someone has already used this function or has an explanation it would help me a lot.

Thank you
pifou74 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
Moving mesh Niklas Wikstrom (Wikstrom) OpenFOAM Running, Solving & CFD 122 June 15, 2014 06:20
user subroutine error CFDUSER CFX 2 December 9, 2006 06:31
user defined function cfduser CFX 0 April 29, 2006 10:58
Diffusion component at inlet Balaji FLUENT 2 August 8, 2005 07:37
Species diffusion coefficient iceabc FLUENT 1 June 10, 2004 10:04


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