|
[Sponsors] |
February 12, 2009, 10:18 |
Please check the following code
|
#1 |
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
|
|
|
|
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 |