|
[Sponsors] |
January 16, 2008, 11:09 |
Moving wall with sin function
|
#1 |
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 |
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. |
|
|
|
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 |