CFD Online Discussion Forums

CFD Online Discussion Forums (https://www.cfd-online.com/Forums/)
-   Fluent UDF and Scheme Programming (https://www.cfd-online.com/Forums/fluent-udf/)
-   -   udf or Parameters in fluent..plz help.. (https://www.cfd-online.com/Forums/fluent-udf/118897-udf-parameters-fluent-plz-help.html)

nitman118 June 6, 2013 06:51

udf or Parameters in fluent..plz help..
 
1 Attachment(s)
i am trying the foll udf to simulate vibration in the cylinder in middle, as shown in figure,in z direction,

#include "udf.h"

DEFINE_CG_MOTION(wave, dt, vel, omega, time, dtime)
{
vel[0]=0;
vel[1]=0;
vel[2]=((0.037098)*sin(7.7528*time));
}

but its not working.... iam just a beginner in udf, how do u reckon should i go ahead.... is there any other method in fluent through which we can simulate this movement, like defining time and displacement as a parameter and then giving values of displacement or velocity at corresponding time..... any help will be much appreciated..


All times are GMT -4. The time now is 14:45.