CFD Online Logo CFD Online URL
www.cfd-online.com
[Sponsors]
Home > Forums > Software User Forums > ANSYS > FLUENT

Help About Wankel Engine UDF

Register Blogs Community New Posts Updated Threads Search

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   September 4, 2024, 17:10
Post Help About Wankel Engine UDF
  #1
New Member
 
Emre
Join Date: Sep 2024
Posts: 1
Rep Power: 0
leaxey is on a distinguished road
I am designing a wankel engine within the scope of a project and I want to use ansys fluent to analyse this engine.

In order to rotate the rotor of the wankel engine in the body, I found a UDF on the forum and made changes according to my own engine. However, the UDF does not work correctly. Although the rotor rotates in the body at the speed I set, I have some problems with translation and therefore the rotor goes out of the body.

I would be very happy if there is someone who can help with this issue.

The UDF I use:

[CODE]#include "udf.h"
#define r 0.0011 /*Eccentricity*/
#define k 57.2727 /*rad to degree*/
#define w 0.001 /*rad/sec*/

DEFINE_CG_MOTION(rotor, dt, vel, omega, time, dtime)
{
real beta;

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

omega[2] = 0.001;
beta = 0.003;

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

}

Body Center: https://hizliresim.com/jthkp21

The rotor moves out of the body:

https://hizliresim.com/4a5a6gc
leaxey is offline   Reply With Quote

Reply

Tags
udf, user defined function, user defined functions, wankel, wankel rotary engine


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are Off
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
Heat flux estimation for a liquid rocket engine - UDF Vijay_01 FLUENT 5 June 21, 2024 07:49
ParaFoam not responding on mac Abhisek OpenFOAM 0 May 7, 2022 13:15
UDF compiling error Weiqiang Liu FLUENT 2 November 21, 2018 10:36
does Hyperthreading affect the application of UDF? SJSW Fluent UDF and Scheme Programming 11 October 10, 2018 23:28
I need UDF help. S.Whitney FLUENT 0 October 15, 2007 12:29


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