Calculating Cell Sizes Using FLUENT Macros

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

 LinkBack Thread Tools Display Modes
 October 8, 2012, 23:08 Calculating Cell Sizes Using FLUENT Macros #1 New Member   anonymous Join Date: Oct 2012 Posts: 2 Rep Power: 0 Hello everyone, I am trying to write a UDF for a source term in FLUENT. This term is scaled by a constant that is dependent on the scalar product of the cell size vector L = (dx,dy,dz). All I can seem to find is C_VOLUME(c,t), I am assuming FLUENT uses L in some form to calculate cell volume but I may not have access to it. This needs to be able to work for both uniform and non-uniform grids. If anyone knows of a way to calculate this within FLUENT please respond. Thanks!

October 9, 2012, 00:11
#2
Senior Member

Ji Junjie
Join Date: Feb 2010
Location: Shanghai, China
Posts: 109
Rep Power: 8
Quote:
 Originally Posted by bryankelly Hello everyone, I am trying to write a UDF for a source term in FLUENT. This term is scaled by a constant that is dependent on the scalar product of the cell size vector L = (dx,dy,dz). All I can seem to find is C_VOLUME(c,t), I am assuming FLUENT uses L in some form to calculate cell volume but I may not have access to it. This needs to be able to work for both uniform and non-uniform grids. If anyone knows of a way to calculate this within FLUENT please respond. Thanks!
First, I think your cell should be a orthogonal hexahedron cell.
Then you can get the edge length with "cell volume/face area".

 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 Richard FLUENT 10 September 21, 2015 04:44 osamaghani FLUENT 15 November 23, 2013 11:27 bryankelly Fluent UDF and Scheme Programming 0 October 8, 2012 20:26 neetu kumari FLUENT 2 February 15, 2012 07:45 Purushothama CD-adapco 2 May 31, 2010 21:58

All times are GMT -4. The time now is 00:07.

 Contact Us - CFD Online - Top