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

Please check the following code

Register Blogs Community New Posts Updated Threads Search

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   February 12, 2009, 10:18
Default Please check the following code
  #1
Nagi
Guest
 
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

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
How to check Y value sivakumar OpenFOAM Pre-Processing 3 October 6, 2008 15: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 14:04
Check UDF stephen e FLUENT 1 April 15, 2004 10:51


All times are GMT -4. The time now is 22:43.