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

UDF for a flapping motion

Register Blogs Community New Posts Updated Threads Search

Like Tree2Likes
  • 1 Post By Ahmed Saeed Mansour
  • 1 Post By ronak

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   October 3, 2018, 01:21
Default UDF for a flapping motion
  #1
Member
 
Hanye Azimi
Join Date: Oct 2016
Posts: 42
Rep Power: 10
ronak is on a distinguished road
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
ronak is offline   Reply With Quote

Old   October 18, 2018, 21:46
Default
  #2
Senior Member
 
Have a nice time!
Join Date: Feb 2016
Location: mech.eng.ahmedmansour@gmail.com
Posts: 291
Rep Power: 11
Ahmed Saeed Mansour is on a distinguished road
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;
}
ronak likes this.
Ahmed Saeed Mansour is offline   Reply With Quote

Old   June 12, 2019, 04:40
Default UDF for harmonic motion
  #3
Member
 
Hanye Azimi
Join Date: Oct 2016
Posts: 42
Rep Power: 10
ronak is on a distinguished road
@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
ronak is offline   Reply With Quote

Old   June 13, 2019, 16:25
Default
  #4
Senior Member
 
Have a nice time!
Join Date: Feb 2016
Location: mech.eng.ahmedmansour@gmail.com
Posts: 291
Rep Power: 11
Ahmed Saeed Mansour is on a distinguished road
Quote:
Originally Posted by ronak View Post
@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
Thanks dear Philip, here is my tutorial about the flapping airfoil:
https://youtu.be/5pltEzl2-J8
Danke!
Ahmed Saeed Mansour is offline   Reply With Quote

Reply

Tags
flapping motion, fluent, udf


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
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


All times are GMT -4. The time now is 07:47.