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

UDF hook problem in command line mode.

Register Blogs Community New Posts Updated Threads Search

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   November 12, 2007, 15:41
Default UDF hook problem in command line mode.
  #1
Benlong
Guest
 
Posts: n/a
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?
  Reply With Quote

Old   November 12, 2007, 15:45
Default Re: UDF hook problem in command line mode.
  #2
Benlong
Guest
 
Posts: n/a
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)

  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
problem loading UDF library in parallel cluster Veera Gutti FLUENT 8 July 26, 2016 08:24
Pressure profile UDF for unsteady-state problem? Mohsen Keshavarzian FLUENT 2 August 20, 2008 05:22
UDF PROBLEM anant FLUENT 2 January 17, 2007 01:15
parallel UDF problem kerem FLUENT 2 June 20, 2006 07:56
I have problem of UDF with turbulent premx source. Z FLUENT 0 February 16, 2005 04:34


All times are GMT -4. The time now is 09:58.