tutorial for solving oscillating cylinder problem
hello,
i've asked this qn a while ago in this forum and some ppl (thanks zxaar!) were very helpful providing me with some pdf. after playing around, i finally managed to get it to work. hence i decided to post the basic steps to get it working. i assume that the unsteady vortex shedding of the cylinder at for e.g. Re=100 has been done. 1. change the unsteady formulation to 1st order implicit if req 2. turn on dynamic mesh setting 3. go to define > user defined > functions > compiled 4. add the c file defining the oscillating motion 5. build it and load (make sure it's successful) 6 for the solutions control, u can use PISO with 2nd order upwind for momentum 7. in the dynamic grid zones, add the fluid and wall of cylinder to the dynamics zones. the type should be rigid body. motion udf should be the library which u just loaded. 8 iterative. note that the time step is very important. too big a time step can give the wrong ans! i hope i've not missed out any steps.... that's all. btw, here's an eg. of my plung.c udf #include "udf.h" /* this function defines velocity of center of gravity for pure plunging motion*/ /* Plunging motion equation is z(t)=h*sin(2*pi*f*t) */ DEFINE_CG_MOTION(plung, dt, vel, omega, time, dtime) { Thread *t; face_t *f; /*reset velocities */ NV_S(vel,=,0.0); NV_S(omega,=,0.0); if (!Data_Valid_P()) return; /* Get the thread pointer for which this motion is defined */ /* t=DT_THREAD(dt); */ /* vel[1] is the vertical plunging velocity */ vel[1] = 0.1910088333*cos(0.9550441667*time); } btw, i'm now considering deforming motion to be used with piching motion of an airfoil. if someone can enlighten me, that 'll be great. 
Re: tutorial for solving oscillating adapt problem
hi, i'm a MS student working on adaptive airfoil.i'm facing problem to write the program or coding(on c/c++)to give circular motion and change the shape of the straight airfoil to a curved one.
so can you help me to solve this problem. sincerely Masum 
Re: tutorial for solving heat transfer problem
send me tutorial for heat transfer and fluid flow problems

oscillating cylinder
Hello sir I have written my code with help of your tutorial
#include"udf.h" /* this function defines velocity of center of gravity for pure plunging motion*/ /* Plunging motion equation is z(t)=h*sin(2*pi*f*t) */ DEFINE_CG_MOTION(plung,dt,vel,omega,time,dtime) { Thread*t; face_t*f; /*reset velocities */ NV_S(vel,=,0.0); NV_S(omega,=,0.0); if(!Data_Valid_P()) return; /* Get the thread pointer for which this motion is defined */ t=DT_THREAD(dt); /* vel[1] is the vertical plunging velocity */ vel[1] = 3*cos(1000*time); } The fluent runs it good with good qualitative results. cylinder dimensions are 1 m dia But I am not able to see a any visible oscillation in cylinder.How will i see the visible oscillation please help 
UDF for parabolic oscillation
can anyone shed some light on oscillatory motion, like if you want to oscillate the cylinder in parabolic profile what should be the change in the udf ??

1 Attachment(s)
Dear Haroon and others,
I need your help please to give me hint of how to make cylinder oscillating in the attached case. I spent for that more than 3 weeks and I didn't get the result till today. So, I'm waiting your help my friends. In that case:  Mesh was generated by Gmsh.  U = 1m/s^2, D= 1m, Re = 100.  Other information in the attached folder. I'm looking forward to get your help please. 
I didn't find the mesh file in that, can you attach a separate mesh file.

The mesh file is .Gmsh. Anyway, I attached again

Sorry, there was problem in attachement. Anyway cylinder2D.geo shown here
D Code:
= 1.0; 
All times are GMT 4. The time now is 08:11. 