CFD Online Discussion Forums

CFD Online Discussion Forums (http://www.cfd-online.com/Forums/)
-   FLUENT (http://www.cfd-online.com/Forums/fluent/)
-   -   UDF: Density Cell Gradient Vector Macros (http://www.cfd-online.com/Forums/fluent/46696-udf-density-cell-gradient-vector-macros.html)

matteo December 1, 2007 13:14

UDF: Density Cell Gradient Vector Macros
 
Hi,

I'm trying to use in a UDF the command to resume the density gradient C_R_G(c,t). I use a coupled solver and I have activated the command "keep temporary solver memory from being freed?" as indicated in the user guide. My geometry is "2D axisymmetric.

The argument C_R_G(c,t) is actually passed to UDF (I checked by Data_Valid_P(C_R_G(c,t)), but it seems to be a constant scalar field instead of a vector field. Indeed, when I try to resume a component of the gradient vector,for instance C_R_G(c,t)[0], I have a mistake. On the other hand, other derivative arguments seem to work correctly.

Does anyone have any suggestion about this?

Thank you. Matteo.


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