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

UDF file for oscillating 2D airfoil

Register Blogs Community New Posts Updated Threads Search

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   May 19, 2023, 04:24
Default UDF file for oscillating 2D airfoil
  #1
New Member
 
yuval
Join Date: May 2023
Posts: 5
Rep Power: 2
YFUO28 is on a distinguished road
hey,

For transient simulation of oscillating 2D airfoil I am using dynamic mesh. The airfoil need to oscillating between -5deg to 5deg.

The change of the angle of attack define by UDF file.

this is the UDF I wrote:
/************************************************** ********************
UDF for specifying a transient Oscillating 2D Airfoil
************************************************** *********************/

#include "udf.h"
#define Freq 0.0527
#define angular_freq 2.0*M_PI*Freq
#define tetmax (5.0-(-5.0))*M_PI/180

DEFINE_CG_MOTION(shm, dt, cg_vel, cg_omega, time, dtime)
{
real omega;

omega = tetmax*angular_freq*cos(angular_freq*time);

cg_vel[0] = 0.0;
cg_vel[1] = 0.0;
cg_vel[2] = 0.0;

cg_omega[0] = 0.0;
cg_omega[1] = 0.0;
cg_omega[2] = omega;
}



Now when I check the motion with DISPLAY ZONE MOTION in the fluent (inside the dynamic mesh task page) the airfoil moving only on the positive side of omega.

someone can say what wrong with me UDF file or something I need to change?

Thx for the help.
YFUO28 is offline   Reply With Quote

Old   May 19, 2023, 06:56
Default
  #2
New Member
 
yuval
Join Date: May 2023
Posts: 5
Rep Power: 2
YFUO28 is on a distinguished road
Ok, I find what wrong. the equation in time 0 start at 5 deg and then the range of the angle of attack between 0 deg to 10 deg.

Someone know who to fix this? who the airfoil start in time 0 at angle of 0 deg?
YFUO28 is offline   Reply With Quote

Reply


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
how to calculate mass flow rate on patches and summation of that during the run? immortality OpenFOAM Post-Processing 104 February 16, 2021 08:46
[swak4Foam] funkyDoCalc with OF2.3 massflow NiFl OpenFOAM Community Contributions 14 November 25, 2020 03:30
[swak4Foam] Problem installing swak_2.x for OpenFoam-2.4.0 towanda OpenFOAM Community Contributions 6 September 5, 2015 21:03
[OpenFOAM.org] Compile OF 2.3 on Mac OS X .... the patch gschaider OpenFOAM Installation 225 August 25, 2015 19:43
DecomposePar links against liblamso0 with OpenMPI jens_klostermann OpenFOAM Bugs 11 June 28, 2007 17:51


All times are GMT -4. The time now is 06:41.