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

NV_VEC(vector) vs vector(ND_ND)

Register Blogs Community New Posts Updated Threads Search

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   July 4, 2016, 15:31
Default NV_VEC(vector) vs vector(ND_ND)
  #1
New Member
 
Edoardo
Join Date: Nov 2015
Posts: 6
Rep Power: 12
edd313 is on a distinguished road
Hi guys.

Do you know if there is a difference between these two ways of defining a vector?

real NV_VEC(vector)

real vector(ND_ND)
edd313 is offline   Reply With Quote

Old   July 5, 2016, 06:25
Default
  #2
Senior Member
 
Bruno Machado
Join Date: May 2014
Posts: 271
Rep Power: 13
Bruno Machado is on a distinguished road
Quote:
Originally Posted by edd313 View Post
Hi guys.

Do you know if there is a difference between these two ways of defining a vector?

real NV_VEC(vector)

real vector(ND_ND)
NV_VEC(psi) is used to declare a vector as it follows:

real NV_VEC(psi);
NV_D(psi, =, F_U(f,t), F_V(f,t), F_W(f,t));

While the vector(ND_ND) is used to declare matrix (2x2 and 3x3) for 2D and 3D, for example

real A[ND_ND][ND_ND]

for (i=0; i<ND_ND; ++i)
for (j=0; j<ND_ND; ++j)
A[i][j] = f(i, j);

not sure I made myself clear.
Bruno Machado is offline   Reply With Quote

Reply


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 21:57.