|
[Sponsors] |
October 3, 2018, 01:21 |
UDF for a flapping motion
|
#1 |
Member
Hanye Azimi
Join Date: Oct 2016
Posts: 42
Rep Power: 10 |
Hi
I'm simulating a flapping airfoil. I mean pitching and heaving by flapping. I've been using this UDF: #include "udf.h" DEFINE_CG_MOTION(airfoil,dt,vel,omega,time,dtime) { Thread *t; face_t f; real w,a,h, pi,fi; pi = 3.14159265; h= 0.5; /*Heave amplitude*/ a = (pi*15)/180; /*pitch amplitude*/ w = 1.168; /*angulat velocity*/ fi =(pi*90)/180 ; /*phase difference*/ /*get the thread pointer for which the motion is defined*/ vel[1] = h*w*cos(w*time); omega[2]=a*w*cos(w*time+fi); } this UDF is defined for airfoil in dynamic mesh zone. Is it the proper user defined function for a flapping motion? Thanks in advance |
|
October 18, 2018, 21:46 |
|
#2 |
Senior Member
Have a nice time!
Join Date: Feb 2016
Location: mech.eng.ahmedmansour@gmail.com
Posts: 291
Rep Power: 11 |
Hello dear Hanye, use this :
/**********************************************/ /* flap.c */ /* UDF for specifying a time-varying omega */ /* */ /* Simulates +/- 8 deg flapping with cycle of */ /* of 1 sec. */ /* */ /* Version 13.0 */ /* */ /**********************************************/ #include "udf.h" #define PI 3.141592654 DEFINE_TRANSIENT_PROFILE(speed, time) { real ampl = 2.0*PI/15.0; real freq = 2.*PI; real omega; omega = 2.0*PI*ampl*cos(freq*time); return omega; } |
|
June 12, 2019, 04:40 |
UDF for harmonic motion
|
#3 |
Member
Hanye Azimi
Join Date: Oct 2016
Posts: 42
Rep Power: 10 |
@Philip_Morris
I've used this UDF and it is propper for a flapping motion. Airfoil pitches and plunges at the same time. Hope it helps |
|
June 13, 2019, 16:25 |
|
#4 | |
Senior Member
Have a nice time!
Join Date: Feb 2016
Location: mech.eng.ahmedmansour@gmail.com
Posts: 291
Rep Power: 11 |
Quote:
https://youtu.be/5pltEzl2-J8 Danke! |
||
Tags |
flapping motion, fluent, udf |
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
DEFINE_CG_MOTION for flapping wing UDF | xyzch001 | Fluent UDF and Scheme Programming | 21 | February 7, 2022 08:47 |
UDF for pitching motion | ronak | Fluent UDF and Scheme Programming | 0 | October 18, 2017 07:13 |
UDF to define the motion of vanes in an air motor | lalith3930 | Fluent UDF and Scheme Programming | 0 | September 30, 2017 08:07 |
UDF: DEFINE_CG_MOTION for vertical jump motion of an electrode! | alban | Fluent UDF and Scheme Programming | 2 | June 8, 2010 19:54 |
UDF error CG Motion | Alex | FLUENT | 0 | March 22, 2006 18:40 |