CFD Online Discussion Forums

CFD Online Discussion Forums (https://www.cfd-online.com/Forums/)
-   FLUENT (https://www.cfd-online.com/Forums/fluent/)
-   -   Gradient of the Custom Field Function (https://www.cfd-online.com/Forums/fluent/89967-gradient-custom-field-function.html)

oghazian June 27, 2011 14:06

Gradient of the Custom Field Function
 
hi,

How can I calculate the gradient of the custom field function in FLUENT ??


Best regards,

oghazian June 27, 2011 14:15

I am wondering that I should define a separate UDF for calculating the gradient of the Custom Field Function ?

Micael June 29, 2011 14:00

You can define a UDS, but without solving for it. Instead, a DEFINE_ADJUST fonction compute the scalar value for each cell. Then FLUENT will compute the gradient (even if you do not solve the corresponding transport equation).

There is an example that do it there:
FLUENT 12.0 UDF manual --> 2.2.1 DEFINE ADJUST --> example 2


All times are GMT -4. The time now is 06:56.