CFD Online Discussion Forums

CFD Online Discussion Forums (https://www.cfd-online.com/Forums/)
-   Fluent UDF and Scheme Programming (https://www.cfd-online.com/Forums/fluent-udf/)
-   -   what does this code mean? Help (https://www.cfd-online.com/Forums/fluent-udf/118397-what-does-code-mean-help.html)

5超7 May 27, 2013 05:15

what does this code mean? Help
 
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?

blackmask May 27, 2013 05:53

NV_VEC(u)
==
u[ND_ND]

NV_DS(u, =, 1, 1, 1, *, 2)
=>
u = [1,1,1]*2 = [2,2,2] (interpretation, not code)

5超7 May 27, 2013 06:24

Quote:

Originally Posted by blackmask (Post 430218)
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


All times are GMT -4. The time now is 19:52.