|
[Sponsors] |
May 23, 2010, 06:07 |
Sinusoidal motion udf
|
#1 |
New Member
|
hey guys
i have a problem but i am not so sure if it is due to my fluent or udf or other things i want to find the pressure distribution around an airfoil (which has a sinusoidal motion) in a water tank. i have written the following code in C: #include "udf.h" #define om 0.62831853 #define pi 3.1415926 #define scale 0.1612 /* x(t)= 2c*cos(wt) alpha(t)= pi/2 + pi/2*sin(wt) */ DEFINE_CG_MOTION(vel, omega, time) { real b,u; u = -2*scale*om*sin(om*time); b = pi/2*om*cos(om*time); vel[0] = u; vel[1] = 0.0; vel[2] = 0.0; omega[0] = 0.0; omega[1] = 0.0; omega[2] = b; } but in fluent after building it in udf compiler, in loading time i am recived the following error; Opening library "code"... Error: open_udf_library: The system cannot find the file specified. Error Object: () someone please help me thank you in advance |
|
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
UDF problem: incorrect grid motion | Fil | FLUENT | 5 | December 19, 2020 09:16 |
Grid motion with UDF | fivos | Fluent UDF and Scheme Programming | 5 | June 30, 2018 08:50 |
Moving mesh | Niklas Wikstrom (Wikstrom) | OpenFOAM Running, Solving & CFD | 122 | June 15, 2014 06:20 |
UDF for non sinusoidal or varying amplitude motion with respect to time | lalit kumar | FLUENT | 1 | November 13, 2010 16:58 |
UDF error CG Motion | Alex | FLUENT | 0 | March 22, 2006 17:40 |