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/)
-   -   Zone motion in rotatory container (https://www.cfd-online.com/Forums/fluent-udf/210935-zone-motion-rotatory-container.html)

Amin_65 November 7, 2018 20:02

Zone motion in rotatory container
 
Dear all,
I want to model a rotatory container using frame motion in Ansys fluent 19. The origin of rotation in my case is (X=0.025,Y=-0.0055,Z=-0.045).
When in the corresponding UDF I wrote the following sentence to identify the rotation origin, the system gives me some errors. where is the problem? FYI: When I wrote N3V_S(origin,=,0.0); for the rotation origin everything has worked.

#include "udf.h"
DEFINE_ZONE_MOTION(fmotion,omega,axis,origin,veloc ity,time,dtime)
{
real Period = 1;
real pi = 3.14159265359;
*omega = 20*2*pi*cos(2*pi*time);
N3V_S(origin,=,0.025,-0.0055,-0.045);
N3V_D(axis,=,0.0,1.0,0.0);
return;
}

obscureed November 8, 2018 19:13

Hi Amin_65,


Please see the answer from Pakk here: https://www.cfd-online.com/Forums/fl...s-meaning.html (but ignore the other answers completely!). I think this should point you towards "N3V_D(origin,=,0.025,-0.0055,-0.045);".


Good luck!
Ed


All times are GMT -4. The time now is 20:12.