|
[Sponsors] |
November 9, 2015, 08:15 |
Wankel - Rotary Engine UDF Usage
|
#1 |
New Member
Vermont
Join Date: Nov 2015
Posts: 2
Rep Power: 0 |
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; } |
|
February 7, 2020, 08:41 |
|
#2 |
Senior Member
Brett
Join Date: May 2013
Posts: 212
Rep Power: 13 |
How did you go with this?
Possibly a bit cheeky but would you be able to share your workbench project? |
|
Thread Tools | Search this Thread |
Display Modes | |
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
For Joe : CFD in a Wankel engine | amcfd | FLUENT | 15 | March 27, 2013 05:40 |
Need help to mesh Wankel engine | Sam | Main CFD Forum | 3 | October 4, 2007 21:33 |
rotary engine | gaohongliang | FLUENT | 0 | November 8, 2005 22:34 |
cfd analysis of flow in wankel engine | raghuraman | FLUENT | 0 | August 4, 2004 16:04 |
Couples usage in engine moving mesh | Alfred Herman | Siemens | 0 | May 15, 2003 05:12 |