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

Sinusoidal motion udf

Register Blogs Community New Posts Updated Threads Search

 
 
LinkBack Thread Tools Search this Thread Display Modes
Prev Previous Post   Next Post Next
Old   May 23, 2010, 06:07
Default Sinusoidal motion udf
  #1
New Member
 
urmazda's Avatar
 
iman ashtiani
Join Date: May 2010
Location: australia
Posts: 3
Rep Power: 16
urmazda is on a distinguished road
Send a message via MSN to urmazda Send a message via Yahoo to urmazda Send a message via Skype™ to urmazda
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
urmazda is offline   Reply With Quote

 


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
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


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