CFD Online Discussion Forums

CFD Online Discussion Forums (
-   Fluent UDF and Scheme Programming (
-   -   UDF/FLUENT Macros to determine cell size vector (

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.


bobinson May 12, 2017 06:18

Hi did you find how to retrieve the dx,dy,dz? If yes could you please share?

All times are GMT -4. The time now is 18:31.