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

what does this code mean? Help

Register Blogs Community New Posts Updated Threads Search

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   May 27, 2013, 06:15
Default what does this code mean? Help
  #1
New Member
 
wu chaoqi
Join Date: Jun 2012
Posts: 9
Rep Power: 14
5超7 is on a distinguished road
DEFINE_UDS_FLUX(MyFlux,f,t,i)
{
real NV_VEC(unit_vec), NV_VEC(A);
F_AREA(A, f, t);
NV_DS(unit_vec, =, 1, 1, 1, *, 1);
return NV_DOT(unit_vec, A);
}
NV_VEC and NV_DS are both new to me. I can't find them in udf help?
Can someone tell me and what does the code above mean?
5超7 is offline   Reply With Quote

Old   May 27, 2013, 06:53
Default
  #2
Senior Member
 
Join Date: Aug 2011
Posts: 421
Blog Entries: 1
Rep Power: 22
blackmask will become famous soon enough
NV_VEC(u)
==
u[ND_ND]

NV_DS(u, =, 1, 1, 1, *, 2)
=>
u = [1,1,1]*2 = [2,2,2] (interpretation, not code)
blackmask is offline   Reply With Quote

Old   May 27, 2013, 07:24
Default
  #3
New Member
 
wu chaoqi
Join Date: Jun 2012
Posts: 9
Rep Power: 14
5超7 is on a distinguished road
Quote:
Originally Posted by blackmask View Post
NV_VEC(u)
==
u[ND_ND]

NV_DS(u, =, 1, 1, 1, *, 2)
=>
u = [1,1,1]*2 = [2,2,2] (interpretation, not code)
Thanks you for your response.I get the two NV macro.And could you tell what does the code meaning? The UDS is new to me. Thanks a lot
5超7 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


Similar Threads
Thread Thread Starter Forum Replies Last Post
The FOAM Documentation Project - SHUT-DOWN holger_marschall OpenFOAM 242 March 7, 2013 13:30
How to make code run in parallel? cwang5 OpenFOAM Programming & Development 1 May 30, 2011 05:47
Open Source Vs Commercial Software MechE OpenFOAM 28 May 16, 2011 12:02
Small 3-D code Zdravko Stojanovic Main CFD Forum 2 July 19, 2010 11:11
public CFD Code development Heinz Wilkening Main CFD Forum 38 March 5, 1999 12:44


All times are GMT -4. The time now is 20:43.