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/)
-   -   Wankel - Rotary Engine UDF Usage (https://www.cfd-online.com/Forums/fluent-udf/162389-wankel-rotary-engine-udf-usage.html)

madboy19 November 9, 2015 07:15

Wankel - Rotary Engine UDF Usage
 
Hello . I am trying to apply this code to my project
Code:

#include "udf.h"
#define r -0.015 /*Eccentricity*/
#define k 57.2727 /*rad to degree*/
#define w 314.16 /*angular velocity in rad/sec*/

/* for grid motion */
DEFINE_CG_MOTION(rotor, dt, vel, omega,time, dtime)
{
real beta;

NV_S(vel, =, 0.0);
NV_S(omega, =, 0.0);

omega[2] = 314.16; /*angular velocity in rad/sec*/
beta = 942.48; /*angular velocity of rotor in rad/sec*/

vel[0] = -beta*r*sin(beta*time);
vel[1] = beta*r*cos(beta*time);
vel[2]= 0;

}

But I think I am missing something am I need to configure in fluent for that because rotor is rotating so weird. After 1sec I cant even see rotor in my screen it goes somewhere else.

Bdew8556 February 7, 2020 07:41

How did you go with this?

Possibly a bit cheeky but would you be able to share your workbench project?


All times are GMT -4. The time now is 10:01.