CFD Online Logo CFD Online URL
Home > Forums > FLUENT

what does mean NV_S and NVD in UDF.

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

LinkBack Thread Tools Display Modes
Old   September 8, 2010, 00:18
Default what does mean NV_S and NVD in UDF.
New Member
OH il seok
Join Date: Sep 2010
Posts: 17
Rep Power: 9
oilsok is on a distinguished road
#include "udf.h"
Thread *tf = DT_THREAD(dt);
face_t f;
Node *v;
real NV_VEC(omega), NV_VEC(axis), NV_VEC(dx);
real NV_VEC(origin), NV_VEC(rvec);
real sign;
int n;
/* set deforming flag on adjacent cell zone */
sign = -5.0 * sin (26.178 * time);
Message ("time = %f, omega = %f\n", time, sign);
NV_S(omega, =, 0.0);
NV_D(axis, =, 0.0, 1.0, 0.0);
NV_D(origin, =, 0.0, 0.0, 0.152);

v = F_NODE(f,tf,n);
/* update node if x position is greater than 0.02
and that the current node has not been previously
visited when looping through previous faces */
if (NODE_X(v) > 0.020 && NODE_POS_NEED_UPDATE (v))
/* indicate that node position has been update
so that itís not updated more than once */
omega[1] = sign * pow (NODE_X(v)/0.230, 0.5);
NV_VV(rvec, =, NODE_COORD(v), -, origin);
NV_CROSS(dx, omega, rvec);
NV_S(dx, *=, dtime);
NV_V(NODE_COORD(v), +=, dx);
I don't know that means. I didn't find a whole day in google and UDF manual.

please explain to me..
oilsok is offline   Reply With Quote

Old   September 6, 2015, 09:29
Default I want to find out that too
New Member
Join Date: Sep 2015
Posts: 2
Rep Power: 0
Mentorslayer is on a distinguished road
I want to find out that too
Mentorslayer is offline   Reply With Quote

Old   September 7, 2015, 10:16
Senior Member
Bruno Machado
Join Date: May 2014
Posts: 271
Rep Power: 6
Bruno Machado is on a distinguished road
NV_D you can use to define your vector and NV_S you can use for operations (multiplying, add, etc)
Bruno Machado is offline   Reply With Quote


nv_d, nv_s

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 01:17.