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/)
-   -   UDF for one dimensional motion parallel (https://www.cfd-online.com/Forums/fluent-udf/128346-udf-one-dimensional-motion-parallel.html)

parradux January 9, 2014 13:38

UDF for one dimensional motion parallel
 
Hi,

How do I make this for a parallel process:


#include<udf.h>
DEFINE_CG_MOTION(velo_needle, dt, cg_vel, cg_omega, time, dtime)
{

cg_vel[0] = -0.6; /* x-velocity*/
cg_vel[1] = 0.0;
cg_vel[2] = 0.0;
NV_S (cg_omega, =, 0.0); /* no angular motion */
/* Messages in Fluent TUI */
Message(" \n");
Message("velocity \n");
Message("%5.6f\t\n",cg_vel[0]);
Message(" \n");
}

Thanks

AndyH January 14, 2014 06:04

Quote:

Originally Posted by parradux (Post 469315)
Hi,

How do I make this for a parallel process:


#include<udf.h>
DEFINE_CG_MOTION(velo_needle, dt, cg_vel, cg_omega, time, dtime)
{

cg_vel[0] = -0.6; /* x-velocity*/
cg_vel[1] = 0.0;
cg_vel[2] = 0.0;
NV_S (cg_omega, =, 0.0); /* no angular motion */
/* Messages in Fluent TUI */
Message(" \n");
Message("velocity \n");
Message("%5.6f\t\n",cg_vel[0]);
Message(" \n");
}

Thanks


Change "Message" to "Message0" and retry.


All times are GMT -4. The time now is 21:31.