CFD Online Discussion Forums

CFD Online Discussion Forums (http://www.cfd-online.com/Forums/)
-   FLUENT (http://www.cfd-online.com/Forums/fluent/)
-   -   UDF hook problem in command line mode. (http://www.cfd-online.com/Forums/fluent/46598-udf-hook-problem-command-line-mode.html)

Benlong November 12, 2007 15:41

UDF hook problem in command line mode.
 
I need to run a large problem in a remote computer server, which has no GUI. So I have to run in command line mode. For a CG-motion UDF, which hooks and works fine in a local machine with GUI. However if I hook the UDF in a command line, it give the following warning, even in the local machine in command line:

/define/dynamic-zones> creat Zone name/id [] 17 motion type: (stationary rigid-body deforming user-defined) enter motion type: [rigid-body] rigid-body profile/udf [] MovingZone::libudf cg location x (m) [1.0499994] cg location y (m) [0] cg location z (m) [0] cg orientation theta-x (deg) [0] cg orientation theta-y (deg) [0] cg orientation theta-z (deg) [0]

Warning: incorrect cg motion UDF movingzone::libudf on zone 17 (assuming no motion)

The UDF source code is : DEFINE_CG_MOTION(MovingZone, dt, vel, omega, time, dtime) {

Thread *t;

Domain *d;

real dv, CG[ND_ND], force[3], moment[3];

/* Check to see if there is data */

if (!Data_Valid_P ())

{

Message0("\n\nNo data->No mesh motion!!!\n\n");

return;

}

/* Reset velocities */

NV_S (vel, =, 0.0);

NV_S (omega, =, 0.0);

vel[0] = 1.0; }

Can anybody give some help?

Benlong November 12, 2007 15:45

Re: UDF hook problem in command line mode.
 
sorry for there is no return in the above message, I paste it again:

/define/dynamic-zones> creat

Zone name/id [] 17

motion type: (stationary rigid-body deforming user-defined)

enter motion type: [rigid-body] rigid-body

profile/udf [] MovingZone::libudf

cg location x (m) [1.0499994]

cg location y (m) [0]

cg location z (m) [0]

cg orientation theta-x (deg) [0]

cg orientation theta-y (deg) [0]

cg orientation theta-z (deg) [0]

Warning: incorrect cg motion UDF movingshipzone::libudf on zone 17 (assuming no motion)



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