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

modification of UDF

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

Reply
 
LinkBack Thread Tools Display Modes
Old   January 18, 2007, 06:59
Default modification of UDF
  #1
ammi
Guest
 
Posts: n/a
Hi

i have a udf that cause motion along x-direction of a solid body(2d problem).

#include "udf.h"

DEFINE_CG_MOTION(vel_comp,dt,vel,omega,time,dtime)

{ real freq = 34.0; real w = 2.0 * M_PI * freq; real Xcomp = 0.004511;

NV_S(vel, = ,0.0); NV_S(omega, = ,0.0); vel[0] = w * Xcomp * cos (w * time);

}

howto change it cause the motion along y direction . please reply

ammi reddy
  Reply With Quote

Old   January 18, 2007, 11:47
Default Re: modification of UDF
  #2
Sujith
Guest
 
Posts: n/a
change vel[0] to vel [1]

sujith
  Reply With Quote

Old   January 18, 2007, 22:35
Default Re: modification of UDF
  #3
ammi
Guest
 
Posts: n/a
thanx it is working
  Reply With Quote

Reply

Thread Tools
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 On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
Help needed on UDF for modification of default syamlal o' brien drag law caai9 Fluent UDF and Scheme Programming 9 August 20, 2014 08:52
UDF parallel error: chip-exec: function not found????? shankara.2 Fluent UDF and Scheme Programming 1 January 16, 2012 23:14
Flowfield temperature modification through UDF Hypersonicflow Fluent UDF and Scheme Programming 2 April 18, 2011 13:27
Modification of turb. viscosity using UDF? moon FLUENT 4 October 2, 2003 11:19
UDF modification merac FLUENT 4 March 1, 2001 07:42


All times are GMT -4. The time now is 11:10.