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

F_udsi

Register Blogs Members List Search Today's Posts Mark Forums Read

Reply
 
LinkBack Thread Tools Display Modes
Old   June 13, 2013, 09:12
Question F_udsi
  #1
New Member
 
neda rahimi
Join Date: May 2013
Posts: 13
Rep Power: 3
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
 
Ji Junjie
Join Date: Feb 2010
Location: Shanghai, China
Posts: 102
Rep Power: 6
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: 3
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
 
Mahesh
Join Date: Jun 2009
Posts: 114
Rep Power: 7
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

Thread Tools
Display Modes

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 On
Pingbacks are On
Refbacks are On



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