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 Community New Posts Updated Threads Search

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   January 9, 2014, 14:38
Default UDF for one dimensional motion parallel
  #1
New Member
 
asdasdasd
Join Date: Aug 2012
Posts: 15
Rep Power: 14
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, 07: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


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 13:00
CG Motion UDF Problem leoarmas Fluent UDF and Scheme Programming 17 February 14, 2023 09:59
Grid motion with UDF fivos Fluent UDF and Scheme Programming 5 June 30, 2018 09:50
Fluent UDF Discontinuous Motion lequi7 Fluent UDF and Scheme Programming 2 November 4, 2011 00:18
UDF error CG Motion Alex FLUENT 0 March 22, 2006 18:40


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