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

Dynamic meshing of a 2D oscillating airfoil

Register Blogs Members List Search Today's Posts Mark Forums Read

Like Tree1Likes
  • 1 Post By Dh9g12

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   March 5, 2015, 07:18
Default Dynamic meshing of a 2D oscillating airfoil
  #1
New Member
 
Join Date: Mar 2015
Posts: 1
Rep Power: 0
Dh9g12 is on a distinguished road
Hello,

I am trying to recreate the heaving and pitching motion of a 2D airfoil by the following UDF:

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

DEFINE_CG_MOTION(airfoilpitch, dt, cg_vel, cg_omega, time, dtime)
{
cg_vel[0] = 0.0;
cg_vel[1] = 2*3.141592654*0.5*cos((2*3.141592654*0.5*time)+(3. 141592654/2));
cg_vel[2] = 0.0;
cg_omega[0] = 0.0;
cg_omega[1] = 0.0;
cg_omega[2] = 0.1745329252*2*3.141592654*0.5*cos(2*3.141592654*0 .5*time);
}

However I am unsure how to go about it in terms of creating the mesh i.e. what mesh methods and settings should be used and also if my mesh is right (See attached). So far I've managed to make the inner circle move in the right motion but it leaves a gap where the mesh should deform (image 3)

Thankyou. Any help/suggestions would be much appreciated!
Attached Images
File Type: jpg mesh1.jpg (97.0 KB, 52 views)
File Type: jpg mesh2.jpg (68.6 KB, 43 views)
File Type: jpg mesh3.jpg (77.8 KB, 43 views)
FarooqRasheed likes this.
Dh9g12 is offline   Reply With Quote

Old   October 24, 2016, 09:07
Default
  #2
New Member
 
Tauseef Ahmed
Join Date: Apr 2010
Posts: 4
Rep Power: 16
Tauseef is on a distinguished road
Dear Dh
I think the folling line
cg_vel[1] = 2*3.141592654*0.5*cos((2*3.141592654*0.5*time)+(3. 141592654/2));
is creating this vertical motion of the rotating zone, what it doing is translating the Y componet of the CG location by the value calculated cg_Vel[1].
if you are trying to apply plunge motion better to use the Zone motion UDFs they perform better than CG_Motion UDFs
Tauseef is offline   Reply With Quote

Reply

Tags
dynamic mesh

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

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
UDF for dynamic meshing? prasaddeole FLUENT 2 October 6, 2014 11:55
Problem with restart solution in shape_optimization.py robyTKD SU2 Shape Design 21 May 29, 2013 09:26
[Other] Oscillating Airfoil and Independently Oscillating Flap dancfd OpenFOAM Meshing & Mesh Conversion 3 August 26, 2010 18:52
[GAMBIT] Dynamic Meshing of a combustion chamber donarundas ANSYS Meshing & Geometry 1 December 2, 2009 07:13
Oscillating airfoil problem ganesh Main CFD Forum 2 June 27, 2005 13:57


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