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/)
-   -   UDF for rotation (https://www.cfd-online.com/Forums/fluent-udf/47461-udf-rotation.html)

Hari February 27, 2008 14:57

UDF for rotation
 
Hi, I am a beginner in fluent and am trying to use the dynamic mesh option in fluent to simulate a lobe pump,(with two lobes rotating in opposite direction). To use dynamic mesh I need to define the motion profile of these lobes. Is there any available UDF which allows me to define that motion. if not can anyone help me in writing an UDF as I have very little knowledge of C language. Thank you.

asdR March 22, 2015 00:52

Udf
 
#include<stdio.h>
#include<math.h>
#include"udf.h"
DEFINE_CG_MOTION(right,dt,vel,omega,time,dtime)
{
omega[2]=-107;
}
DEFINE_CG_MOTION(left,dt,vel,omega,time,dtime)
{
omega[2]=107;
}

khashayarmshk January 13, 2016 02:51

Quote:

Originally Posted by asdR (Post 537662)
#include<stdio.h>
#include<math.h>
#include"udf.h"
DEFINE_CG_MOTION(right,dt,vel,omega,time,dtime)
{
omega[2]=-107;
}
DEFINE_CG_MOTION(left,dt,vel,omega,time,dtime)
{
omega[2]=107;
}

hello dear asdr
would you please help me creating a UDF to give the motion of a rigid bar rotating around an axis to fluent. i just need a udf to give an oscilatory rotating motion of that rigid bar.
thank you a lot
khashayarmoshksayan@yahoo.com


All times are GMT -4. The time now is 04:35.