CFD Online URL
[Sponsors]
Home > Forums > FLUENT

Moving wall with sin function

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

Reply
 
LinkBack Thread Tools Display Modes
Old   January 16, 2008, 11:09
Default 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!!!!
  Reply With Quote

Old   January 17, 2008, 08:14
Default 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.
  Reply With Quote

Reply

Thread Tools
Display Modes

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


Similar Threads
Thread Thread Starter Forum Replies Last Post
Fluent3DMeshToFoam simvun OpenFOAM Other Meshers: ICEM, Star, Ansys, Pointwise, GridPro, Ansa, ... 48 May 14, 2012 06:20
OpenFOAM static build on Cray XT5 asaijo OpenFOAM Installation 9 April 6, 2011 13:21
ParaView for OF-1.6-ext Chrisi1984 OpenFOAM Installation 0 December 31, 2010 07:42
Wall function formulation in CFX and Fluent gravis ANSYS 0 May 4, 2010 12:03
Compilation errors in ThirdPartymallochoard feng_w OpenFOAM Installation 1 January 25, 2009 07:59


All times are GMT -4. The time now is 16:04.