# distance between every two faces

 User Name Remember Me Password
 Register Blogs Members List Search Today's Posts Mark Forums Read

 January 6, 2013, 03:34 distance between every two faces #1 New Member   morteza Join Date: Jan 2013 Posts: 8 Rep Power: 7 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.

 January 6, 2013, 09:08 #2 Senior Member   SSL Join Date: Oct 2012 Posts: 226 Rep Power: 8 It may not be possible. What is the meaning of previous face? You should modify the algorithm.

 January 6, 2013, 12:15 #3 New Member   morteza Join Date: Jan 2013 Posts: 8 Rep Power: 7 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]

 Thread Tools Display Modes Linear Mode

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

 Similar Threads Thread Thread Starter Forum Replies Last Post [Other] Mesh Importing Problem cuteapathy ANSYS Meshing & Geometry 2 June 24, 2017 05:29 bobburnquist OpenFOAM Native Meshers: snappyHexMesh and Others 6 August 26, 2015 09:38 Kryo OpenFOAM Native Meshers: snappyHexMesh and Others 8 September 13, 2012 09:28 sc298 OpenFOAM Native Meshers: snappyHexMesh and Others 2 March 27, 2011 21:11 chelvistero OpenFOAM 11 January 15, 2010 20:43

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

 Contact Us - CFD Online - Privacy Statement - Top