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

distance between every two faces

Register Blogs Members List Search Today's Posts Mark Forums Read

Reply
 
LinkBack Thread Tools Display Modes
Old   January 6, 2013, 03:34
Default distance between every two faces
  #1
New Member
 
morteza
Join Date: Jan 2013
Posts: 8
Rep Power: 4
yoollooz is on a distinguished road
i want to calculate below formula too.how can i write udf?
please help me.
s[i][j]=(exp(k*s)*(A[i].r)*(A[j].r))/(4*s)
k=constant
s=NV_MAG(r)
A[i] , A[j] = Area
r= distance between face A[i] and A[j]
how can i calculate this formula for all faces in domain?

Last edited by yoollooz; January 6, 2013 at 08:59.
yoollooz is offline   Reply With Quote

Old   January 6, 2013, 09:08
Default
  #2
Senior Member
 
SSL
Join Date: Oct 2012
Posts: 227
Rep Power: 5
msaeedsadeghi is on a distinguished road
It may not be possible. What is the meaning of previous face? You should modify the algorithm.
msaeedsadeghi is offline   Reply With Quote

Old   January 6, 2013, 12:15
Default
  #3
New Member
 
morteza
Join Date: Jan 2013
Posts: 8
Rep Power: 4
yoollooz is on a distinguished road
i want to write exchange factor for radiation by zone method and i have to compute the surface to surface exchange factor between every two surfaces, surface to gas exchange factor between every face and gas cell , and gas to gas exchange factor between every two gas cell.
formula for surface to surface exchange factor between surfaces i and surface j is:
ss[i][j]=(exp(-k*s)*(A[i].r)*(A[j].r))/(4*s)
k=constant
A[i] =surface i area
A[j] = surface j area
r=distance vector between face A[i] and face A[j]
s= magnitude of distance between face A[i] and A[j]
yoollooz is offline   Reply With Quote

Reply

Thread Tools
Display Modes

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 On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
No layers in a small gap bobburnquist OpenFOAM Native Meshers: snappyHexMesh and Others 6 August 26, 2015 09:38
Add Mesh Layers doesnt work on the whole surface Kryo OpenFOAM Native Meshers: snappyHexMesh and Others 8 September 13, 2012 09:28
[Other] Mesh Importing Problem cuteapathy ANSYS Meshing & Geometry 1 June 7, 2012 13:39
snappyHexMesh won't work - zeros everywhere! sc298 OpenFOAM Native Meshers: snappyHexMesh and Others 2 March 27, 2011 21:11
external flow with snappyHexMesh chelvistero OpenFOAM 11 January 15, 2010 20:43


All times are GMT -4. The time now is 11:23.