CFD Online Logo CFD Online URL
www.cfd-online.com
[Sponsors]
Home > Forums > Software User Forums > ANSYS > FLUENT > Fluent UDF and Scheme Programming

F_udsi

Register Blogs Community New Posts Updated Threads Search

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   June 13, 2013, 09:12
Question F_udsi
  #1
New Member
 
neda rahimi
Join Date: May 2013
Posts: 13
Rep Power: 12
nikiii is on a distinguished road
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.
nikiii is offline   Reply With Quote

Old   June 13, 2013, 21:21
Default
  #2
Senior Member
 
Join Date: Feb 2010
Posts: 164
Rep Power: 17
gearboy is on a distinguished road
Quote:
Originally Posted by nikiii View Post
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));
gearboy is offline   Reply With Quote

Old   June 14, 2013, 13:27
Thumbs up Thanks
  #3
New Member
 
neda rahimi
Join Date: May 2013
Posts: 13
Rep Power: 12
nikiii is on a distinguished road
Quote:
Originally Posted by gearboy View Post
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.
nikiii is offline   Reply With Quote

Old   June 18, 2013, 02:32
Default
  #4
Senior Member
 
Vaze
Join Date: Jun 2009
Posts: 172
Rep Power: 16
mvee is on a distinguished road
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
mvee is offline   Reply With Quote

Reply

Tags
fluent, f_udsi


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are Off
Pingbacks are On
Refbacks are On



All times are GMT -4. The time now is 12:50.