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/)
-   -   F_udsi (http://www.cfd-online.com/Forums/fluent-udf/119281-f_udsi.html)

nikiii June 13, 2013 09:12

F_udsi
 
Hi,
When I write " NV_V(v1,=,F_UDSI(f,t,0));" in my UDF and compile it, I get this error in Fluent
"error C2109: subscript requires array or pointer type"
please help me how can I solve this problem. Thank you.

gearboy June 13, 2013 21:21

Quote:

Originally Posted by nikiii (Post 433812)
Hi,
When I write " NV_V(v1,=,F_UDSI(f,t,0));" in my UDF and compile it, I get this error in Fluent
"error C2109: subscript requires array or pointer type"
please help me how can I solve this problem. Thank you.

need vector after "=",here is an example.
NV_V(v1,=,C_UDSI_G(c,t,0));

nikiii June 14, 2013 13:27

Thanks
 
Quote:

Originally Posted by gearboy (Post 433931)
need vector after "=",here is an example.
NV_V(v1,=,C_UDSI_G(c,t,0));

Dear gearboy, thanks for your post, it was useful.:)

mvee June 18, 2013 02:32

Hi Nikki

NV_V is the vector component assignment. In this, both terms before and after '=' sign, should be vector or array.

eg.
real a[ND_ND], b[ND_ND];
...
NV_V(a,=,b);

This will result in;
a[1] = b[1] and so on.

Best wishes
Mvee


All times are GMT -4. The time now is 18:53.