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/)
-   -   Angular velocity in fluent UDF (https://www.cfd-online.com/Forums/fluent-udf/221813-angular-velocity-fluent-udf.html)

gh_100 October 31, 2019 04:16

Angular velocity in fluent UDF
 
Hello everyone,I'm using fluent UDF to define angular velocity for dynamic grid simulation, and the angular velocity was set 5ras/s,but the result of fluent calculation is different from what I defined.
for example,the angular velocity was 5ras/s,the time to calculate one circle should be 2*pi/5=1.25s.But I calculated for a long time (such as 20s) and didn't reach a circle(2*pi).

the code is below:

DEFINE_CG_MOTION(side2,dt,vel,omega,time,dtime)
{
real flow_time = CURRENT_TIME;

if(flow_time >=0)
omega[2]=-5;

}


does anyone can help me?
Thank you in advance

AlexanderZ October 31, 2019 23:17

what about
Code:

DEFINE_CG_MOTION(side2,dt,vel,omega,time,dtime)
{
omega[2]=-5;
}

how it works?

gh_100 November 1, 2019 01:17

Quote:

Originally Posted by AlexanderZ (Post 748606)
what about
Code:

DEFINE_CG_MOTION(side2,dt,vel,omega,time,dtime)
{
omega[2]=-5;
}

how it works?

hello AlexanderZ
the omega[2] represents rotation around the Z axis, with a size of 5 radians / s.

thank you .

AlexanderZ November 1, 2019 02:53

check if it works or not


All times are GMT -4. The time now is 13:03.