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

sinusoidal airfoil oscillations

Register Blogs Community New Posts Updated Threads Search

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   August 3, 2017, 07:00
Default sinusoidal airfoil oscillations
  #1
New Member
 
flanag
Join Date: Jun 2017
Posts: 12
Rep Power: 8
lfla is on a distinguished road
Hi everyone!

I am studying 2D transient dynamic stall on a s809 as part of my masters and I was hoping for your assistance. I am using this formula to control the oscillations:

alpha(t)=alpha(0)+alpha(1)sin(2*pi*f*t). where alpha(0)=mean angle 8deg;

alpha(1)=5.5deg oscillation amplitude; f=1.2Hz; Ufreestream=30m/s

I have used the following interpreted udf and added it to the inner rotating domain under mesh motion.

#include <stdio.h>
#include <math.h>
#include "udf.h"

DEFINE_CG_MOTION(airfoil_pitch, dt, vel, omega, time, dtime)
{
real pitchampl, pitchdispl, omg, pi, count;

pi = 3.14159265;


/* reset velocities */
NV_S(vel, =, 0.0);
NV_S(omega, =, 0.0);

/* motion */
pitchampl = 5.5 * pi / 180; /* angular pitch amplitude */
omg = 2 * pi * 1.2; /* angular frequency */
pitchdispl = pitchampl * sin(omg * time); /* resultant displacement */

omega[2] = pitchampl * omg * cos(omg * time);
}
However this wont take into account the mean angle, has anyone done something similar. if this udf is correct perhaps i am inputting it incorrectly in the fluent gui.

so should i define the freestream at the inlet with respect to that mean angle ; Components >> x_vel=30cos8 and y_vel=30 sin8.

Also, how could i find what the angle of attack is for each time step?

Thanks in advance for any help.

P.S. If you would prefer to contact me via email instead of this thread please contact me at flanagl1@tcd.ie.
Attached Images
File Type: png mesh1.PNG (61.8 KB, 39 views)
File Type: png mesh2.PNG (114.2 KB, 38 views)
File Type: png cell zone conditon.PNG (47.2 KB, 40 views)
lfla is offline   Reply With Quote

Old   August 4, 2017, 10:42
Smile
  #2
New Member
 
flanag
Join Date: Jun 2017
Posts: 12
Rep Power: 8
lfla is on a distinguished road
Has anyone done something similar with dynamic stall modelling on an airfoil using fluent, do i also need to set a sinusThank youoidal osillating freestream?
lfla is offline   Reply With Quote

Old   October 21, 2017, 08:46
Default
  #3
Member
 
Hanye Azimi
Join Date: Oct 2016
Posts: 42
Rep Power: 9
ronak is on a distinguished road
Have you overcome to the problem? Is the UDF correct?
ronak is offline   Reply With Quote

Old   October 21, 2017, 09:41
Default
  #4
New Member
 
flanag
Join Date: Jun 2017
Posts: 12
Rep Power: 8
lfla is on a distinguished road
The udf is correct for defining the motion of the airfoil. First step is to interpret it and then apply it to the airfoil or to the domain depending on what you keep fixed.
lfla is offline   Reply With Quote

Old   October 21, 2017, 10:17
Default
  #5
Member
 
Jaesan Yoon
Join Date: Sep 2017
Posts: 36
Rep Power: 8
litzj is on a distinguished road
how about using compiled instead of interpret
litzj is offline   Reply With Quote

Old   October 21, 2017, 14:04
Default
  #6
Member
 
Hanye Azimi
Join Date: Oct 2016
Posts: 42
Rep Power: 9
ronak is on a distinguished road
I want to have a motion for whole the domain, airfoil moves and rest the domain moves together. Actually I compiled this UDF but it seems that there is no motion,judging by the animation.
What do you think?
ronak is offline   Reply With Quote

Old   October 21, 2017, 14:12
Default
  #7
New Member
 
flanag
Join Date: Jun 2017
Posts: 12
Rep Power: 8
lfla is on a distinguished road
Quote:
Originally Posted by ronak View Post
I want to have a motion for whole the domain, airfoil moves and rest the domain moves together. Actually I compiled this UDF but it seems that there is no motion,judging by the animation.
What do you think?
I'm not really sure why you want to rotate everything because in that case you wont represent the flow over a pitching airfoil unless you define your inlet according to a sinusoidal function. You should be able to preview the motion and the mesh you have used.
lfla is offline   Reply With Quote

Old   October 22, 2017, 09:17
Default
  #8
Member
 
Hanye Azimi
Join Date: Oct 2016
Posts: 42
Rep Power: 9
ronak is on a distinguished road
I want whole the domain to move because of 2 reasons :
1- If the whole moves,the size of all cells would be the same and I wont have some cells with high A.R or bad skewness
2- I'm going to valid with the attached paper.( Dynamic Stall .... ) in this paper there is a pitching motion for whole the domain.
ronak is offline   Reply With Quote

Old   October 22, 2017, 09:31
Default
  #9
Member
 
Jaesan Yoon
Join Date: Sep 2017
Posts: 36
Rep Power: 8
litzj is on a distinguished road
how about write full component of speed and angular speed?

vel[0]=0
...

omega[0]=0
...
omega[2]=what you want
litzj is offline   Reply With Quote

Old   October 22, 2017, 09:34
Default
  #10
Member
 
Jaesan Yoon
Join Date: Sep 2017
Posts: 36
Rep Power: 8
litzj is on a distinguished road
or made motion at the dynamic mesh panel

without remesh or layering
litzj is offline   Reply With Quote

Old   December 4, 2017, 02:27
Default pitch motion for domain
  #11
Member
 
Hanye Azimi
Join Date: Oct 2016
Posts: 42
Rep Power: 9
ronak is on a distinguished road
Hi
I tried to simulate a pitch motion as I mentioned before in this thread. Although I tried several UDF, Ive been working on one of them at the momemt,a CG_MOTION one.
The UDF has been compiled correctly. The values are acceptable but the lift coefficient and drag coefficient plots are not harmonic. I wish to validate with this paper : 'Dynamic stall simulation of a pitching airfoil under unsteady freestream Velocity' . I attached some screenshots of simulating with Ansys.
It's best to know that :
freestream velocity=1.89
omega=0.37
rotation amplitite=15 deg
The point is that in this case it's going to move whole the domain

I'll appreciate if you take a look and tell me what is wrong of the process.
Attached Images
File Type: jpg FrameMotion.jpg (109.6 KB, 32 views)
File Type: jpg reference.jpg (97.0 KB, 29 views)
File Type: jpg UDFcompiling.jpg (102.7 KB, 26 views)
File Type: jpg B.Cdomain.jpg (107.7 KB, 27 views)
File Type: jpg B.Cwall.jpg (104.3 KB, 26 views)
ronak is offline   Reply With Quote

Old   July 18, 2018, 18:25
Default
  #12
New Member
 
Mahdi Hasan
Join Date: Oct 2017
Posts: 9
Rep Power: 8
mahdihasan is on a distinguished road
Did it work? Was the motion harmonic? I have a similar type of UDF but my the body is rotating 360 degrees
mahdihasan is offline   Reply With Quote

Old   July 22, 2018, 03:54
Default
  #13
Member
 
Hanye Azimi
Join Date: Oct 2016
Posts: 42
Rep Power: 9
ronak is on a distinguished road
what kind of harmonic motion are you going to simulate?
ronak is offline   Reply With Quote

Reply

Tags
airfoil pitching 2d


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
SU2 AOA optimization 454514566@qq.com SU2 9 March 7, 2022 16:17
Ffd_control_point_2d feiyi SU2 4 September 30, 2019 12:42
High drag for airfoil compared to XFOIL and wind tunnel data Ry10 SU2 15 October 30, 2016 17:27
2D FFD Optimization RLangtry SU2 2 August 5, 2014 09:48
Problem with restart solution in shape_optimization.py robyTKD SU2 Shape Design 21 May 29, 2013 09:26


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