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

distance between every two faces

Register Blogs Community New Posts Updated Threads Search

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   January 6, 2013, 02:34
Default distance between every two faces
  #1
New Member
 
morteza
Join Date: Jan 2013
Posts: 8
Rep Power: 13
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 07:59.
yoollooz is offline   Reply With Quote

Old   January 6, 2013, 08:08
Default
  #2
Senior Member
 
SSL
Join Date: Oct 2012
Posts: 226
Rep Power: 14
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, 11:15
Default
  #3
New Member
 
morteza
Join Date: Jan 2013
Posts: 8
Rep Power: 13
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


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
[snappyHexMesh] Add Mesh Layers doesnt work on the whole surface Kryo OpenFOAM Meshing & Mesh Conversion 13 February 17, 2022 07:34
[Other] Mesh Importing Problem cuteapathy ANSYS Meshing & Geometry 2 June 24, 2017 05:29
[snappyHexMesh] No layers in a small gap bobburnquist OpenFOAM Meshing & Mesh Conversion 6 August 26, 2015 09:38
[snappyHexMesh] snappyHexMesh won't work - zeros everywhere! sc298 OpenFOAM Meshing & Mesh Conversion 2 March 27, 2011 21:11
[snappyHexMesh] external flow with snappyHexMesh chelvistero OpenFOAM Meshing & Mesh Conversion 11 January 15, 2010 19:43


All times are GMT -4. The time now is 13:58.