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

Moving wall with sin function

Register Blogs Community New Posts Updated Threads Search

Reply
 
LinkBack Thread Tools Search this Thread 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


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
[Commercial meshers] Fluent3DMeshToFoam simvun OpenFOAM Meshing & Mesh Conversion 50 January 19, 2020 16:33
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 22:50.