|
[Sponsors] |
May 19, 2023, 05:24 |
UDF file for oscillating 2D airfoil
|
#1 |
New Member
yuval
Join Date: May 2023
Posts: 5
Rep Power: 3 |
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. |
|
May 19, 2023, 07:56 |
|
#2 |
New Member
yuval
Join Date: May 2023
Posts: 5
Rep Power: 3 |
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? |
|
|
|
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 09:46 |
[swak4Foam] funkyDoCalc with OF2.3 massflow | NiFl | OpenFOAM Community Contributions | 14 | November 25, 2020 04:30 |
[swak4Foam] Problem installing swak_2.x for OpenFoam-2.4.0 | towanda | OpenFOAM Community Contributions | 6 | September 5, 2015 22:03 |
[OpenFOAM.org] Compile OF 2.3 on Mac OS X .... the patch | gschaider | OpenFOAM Installation | 225 | August 25, 2015 20:43 |
DecomposePar links against liblamso0 with OpenMPI | jens_klostermann | OpenFOAM Bugs | 11 | June 28, 2007 18:51 |