CFD Online Discussion Forums

CFD Online Discussion Forums (http://www.cfd-online.com/Forums/)
-   Fluent UDF and Scheme Programming (http://www.cfd-online.com/Forums/fluent-udf/)
-   -   UDF/FLUENT Macros to determine cell size vector (http://www.cfd-online.com/Forums/fluent-udf/107889-udf-fluent-macros-determine-cell-size-vector.html)

bryankelly October 8, 2012 20:26

UDF/FLUENT Macros to determine cell size vector
 
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!


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