CFD Online Discussion Forums

CFD Online Discussion Forums (https://www.cfd-online.com/Forums/)
-   FLUENT (https://www.cfd-online.com/Forums/fluent/)
-   -   how to get gradient value for UDS? (https://www.cfd-online.com/Forums/fluent/96943-how-get-gradient-value-uds.html)

ssamton February 5, 2012 21:18

how to get gradient value for UDS?
 
hi everyone

i wanna to get gradient value for UDS.

i solve the UDS variables and working fine.

i have to calculate(or get) only d(phi)/dy at boundary.

so, i used C_UDSI_G(c,t,0)[1]

however, show error.

error C2109: subscript requires array or pointer type

please help!!

Thank you all

chenxizh March 13, 2012 02:56

try to delete the [1] in C_UDSI_G(c,t,0)[1]

Quote:

Originally Posted by ssamton (Post 342857)
hi everyone

i wanna to get gradient value for UDS.

i solve the UDS variables and working fine.

i have to calculate(or get) only d(phi)/dy at boundary.

so, i used C_UDSI_G(c,t,0)[1]

however, show error.

error C2109: subscript requires array or pointer type

please help!!

Thank you all



All times are GMT -4. The time now is 11:30.