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

UDF for one dimensional motion parallel

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

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   January 9, 2014, 13:38
Default UDF for one dimensional motion parallel
  #1
New Member
 
asdasdasd
Join Date: Aug 2012
Posts: 15
Rep Power: 13
parradux is on a distinguished road
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
parradux is offline   Reply With Quote

Old   January 14, 2014, 06:04
Default
  #2
New Member
 
Andrew Hallow
Join Date: Jan 2014
Posts: 4
Rep Power: 12
AndyH is on a distinguished road
Quote:
Originally Posted by parradux View Post
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.
AndyH is offline   Reply With Quote

Reply

Thread Tools Search this Thread
Search this Thread:

Advanced Search
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 Off
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
incorrect cg motion UDF sdof_properties::libudf on zone 6 (assuming no motion) M.Magdy Fluent UDF and Scheme Programming 9 April 4, 2023 12:00
CG Motion UDF Problem leoarmas Fluent UDF and Scheme Programming 17 February 14, 2023 08:59
Grid motion with UDF fivos Fluent UDF and Scheme Programming 5 June 30, 2018 08:50
Fluent UDF Discontinuous Motion lequi7 Fluent UDF and Scheme Programming 2 November 3, 2011 23:18
UDF error CG Motion Alex FLUENT 0 March 22, 2006 17:40


All times are GMT -4. The time now is 00:46.