# Moving wall with sin function

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

 January 16, 2008, 11:09 Moving wall with sin function #1 Malik Guest   Posts: n/a Hi, I summarize my problem. I would like to move the upper wall along Y axis with a sin function type by using UDf. V1 is the wall velocity in the x direction. scheme below ___________________________ V1=10m/s (upper wall) ___________________________ V2=0m/s (lower wall) ^Y | |___>X thank you!!!!

 January 17, 2008, 08:14 Re: Moving wall with sin function #2 Malik Guest   Posts: n/a Hi, /************************************************** ********** * * wall motion * ************************************************** **********/ #include "udf.h" DEFINE_GC_MOTION(rotor,dt,vel,time,dtime) { /* a est l'amplitude,Y la periode,u rotor velocity along x*/ double a; double W; double t; double dt; double u; a=0.2; Y=10; u=100; t=CURRENT_TIME; dt=CURRENT_TIMESTEP; /* set velocity along Y v = a*sin(2Pi*dt/T) */ vel[1] = a*sin((2*3,14159265*t/W)+dt); vel[0]= u; } Can you tell me if it's good....? My best regards,...malik.

 Thread Tools Display Modes Linear Mode

 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 OffTrackbacks are On Pingbacks are On Refbacks are On Forum Rules

 Similar Threads Thread Thread Starter Forum Replies Last Post simvun OpenFOAM Other Meshers: ICEM, Star, Ansys, Pointwise, GridPro, Ansa, ... 48 May 14, 2012 05:20 asaijo OpenFOAM Installation 9 April 6, 2011 12:21 Chrisi1984 OpenFOAM Installation 0 December 31, 2010 07:42 gravis ANSYS 0 May 4, 2010 11:03 feng_w OpenFOAM Installation 1 January 25, 2009 07:59

All times are GMT -4. The time now is 03:58.