CFD Online Logo CFD Online URL
Home > Forums > FLUENT

Please check the following code

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

LinkBack Thread Tools Display Modes
Old   February 12, 2009, 10:18
Default Please check the following code
Posts: n/a
#include "udf.h" #define f 10.0 /*vibration frequency in Hz*****/ #define A 10.0 /*vibration amplitude in m/s^2*****/ #define pi 3.14 DEFINE_SOURCE (x_mom,c,thread,dS,eqn) { real source,t,xaccel; t=CURRENT_TIME; xaccel=A*sin(2*pi*f*t); source=xaccel*C_R(c,thread); dS[eqn]=xaccel; return source; } I need to know if the above code is correct, which desribes the inertial body force due to translational vibration applied in x-dirction. Thanks every body Nagi
  Reply With Quote


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
How to check Y value sivakumar OpenFOAM Pre-Processing 3 October 6, 2008 14:59
Check this UDF,please. Josh FLUENT 2 February 2, 2006 15:02
Cell check and Boundary check errors AB Siemens 4 October 28, 2004 13:04
Check UDF stephen e FLUENT 1 April 15, 2004 09:51

All times are GMT -4. The time now is 08:32.