|
[Sponsors] |
January 6, 2013, 02:34 |
distance between every two faces
|
#1 |
New Member
morteza
Join Date: Jan 2013
Posts: 8
Rep Power: 13 |
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. |
|
January 6, 2013, 08:08 |
|
#2 |
Senior Member
SSL
Join Date: Oct 2012
Posts: 226
Rep Power: 14 |
It may not be possible. What is the meaning of previous face? You should modify the algorithm.
|
|
January 6, 2013, 11:15 |
|
#3 |
New Member
morteza
Join Date: Jan 2013
Posts: 8
Rep Power: 13 |
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] |
|
|
|
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 |