CFD Online Discussion Forums

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

bryankelly October 8, 2012 21: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!

bobinson May 12, 2017 07: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 06:52.