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/)
-   -   can i get pressure derivative in UDF? (http://www.cfd-online.com/Forums/fluent-udf/86989-can-i-get-pressure-derivative-udf.html)

ruirui389 April 8, 2011 03:10

can i get pressure derivative in UDF?
 
hi. now i need to get the pressure derivative \partial p/\partial x in UDF. is there any macros i could use like the velocity derivative macros(C_DUDX(c,t))? if not, how can i get the pressure derivative?
Thank you for replying.

coglione April 8, 2011 03:46

C_P_G(c,t) will give you the pressure gradient vector. dp/dx = C_P_G(c,t)[0]

cheers

ruirui389 April 8, 2011 03:54

thank you so much for replying. so you mean the pressure gradient equals pressure derivative here?

coglione April 8, 2011 04:10

yes it is
cheers

ruirui389 April 8, 2011 04:12

ok, thank u and cheers!!! lol


All times are GMT -4. The time now is 03:37.