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

Airfoil pitching problem

Register Blogs Community New Posts Updated Threads Search

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   July 9, 2010, 12:50
Default Airfoil pitching problem
  #1
Member
 
Join Date: Jul 2010
Posts: 38
Rep Power: 16
montag dp is on a distinguished road
Hey,

I'm attempting to analyze a 2D airfoil in a pitch-plunge motion. I have done just plunging and now I want to incorporate pitching as well. I'm using a UDF as follows:

Quote:
#include "udf.h"

DEFINE_CG_MOTION(airfoil, dt, vel, omega, time, dtime)
{
real plungeampl, pitchampl, w, pi;

pi = 3.14159265;

/* define motion variables */
plungeampl = 0.0254; /* 1-inch plunge amplitude */
pitchampl = 45 * pi / 180; /* 45-degree pitch amplitude */
w = 2 * pi * 25; /* 25 Hz frequency */

/* define airfoil motion */
vel[1] = w * plungeampl * cos(w * time); /* y-component of velocity */
omega[2] = w * pitchampl * cos(w * time); /* z-component of angular velocity */
}
For some reason I can't see any rotation. Oddly enough, if I switch the angular speed to omega[0] or omega[1] for x or y rotation, it works fine, but that's not what I want to do.

Does anyone have any idea why the z-rotation isn't working?

Regards,
Dan

EDIT: I just realized there's a dedicated UDF programming sub-forum. If a moderator wants to move this there, that's ok.

Last edited by montag dp; July 9, 2010 at 13:06.
montag dp is offline   Reply With Quote

Old   July 9, 2010, 13:10
Default
  #2
Member
 
Join Date: Jul 2010
Posts: 38
Rep Power: 16
montag dp is on a distinguished road
Figured out my own problem. The pitching motion is actually working but for some reason it doesn't show up when I use "display zone motion." It works with "preview mesh motion."
montag dp is offline   Reply With Quote

Old   July 16, 2010, 07:17
Default
  #3
Senior Member
 
aerospain
Join Date: Sep 2009
Location: Madrid, Spain
Posts: 149
Rep Power: 17
aerospain is on a distinguished road
Send a message via Skype™ to aerospain
Hi montag,

I would appreciate it if you could answer me a couple of questions:

When defininf a CG motion for pitch through a UDF, where do you define the centre of rotation? inside FLUENT when defining the Zone which is Moving?

Is your UDF for deforming meshes, or did you have domains with sliding interfaces?

Thanks
aerospain is offline   Reply With Quote

Old   July 16, 2010, 09:29
Default
  #4
Member
 
Join Date: Jul 2010
Posts: 38
Rep Power: 16
montag dp is on a distinguished road
Hi aerospain,

I'm using a dynamic (deforming) mesh. Inside the dynamic mesh menu is an input for CG location. This is the center of rotation. I have been using the 1/4 chord of the airfoil as the center. Then within that menu I select the airfoil as the moving zone and make sure that my UDF shows up in the motion profile selection box.
montag dp is offline   Reply With Quote

Old   July 16, 2010, 09:54
Default
  #5
Senior Member
 
aerospain
Join Date: Sep 2009
Location: Madrid, Spain
Posts: 149
Rep Power: 17
aerospain is on a distinguished road
Send a message via Skype™ to aerospain
Thanks for the quick answer montag.

So, coming back to the picture I posted in my first message, can I define a motion for the intermediate subdomain as a moving mesh (which will move the small subdomain along with it) and a CG motion for the small subdomain for it to have a second motion (which is exclusive to it)?

regards
aerospain is offline   Reply With Quote

Old   July 16, 2010, 10:12
Default
  #6
Member
 
Join Date: Jul 2010
Posts: 38
Rep Power: 16
montag dp is on a distinguished road
Quote:
Originally Posted by aerospain View Post
Thanks for the quick answer montag.

So, coming back to the picture I posted in my first message, can I define a motion for the intermediate subdomain as a moving mesh (which will move the small subdomain along with it) and a CG motion for the small subdomain for it to have a second motion (which is exclusive to it)?

regards
I don't see the picture...Do you have domains inside each other, and you want the innermost one to move along with the intermediate one, but also have its own motion relative to the intermediate one?

Anyway, I don't know about moving meshes. Maybe someone else could chime in here?
montag dp is offline   Reply With Quote

Old   July 16, 2010, 10:16
Default now with picture
  #7
Senior Member
 
aerospain
Join Date: Sep 2009
Location: Madrid, Spain
Posts: 149
Rep Power: 17
aerospain is on a distinguished road
Send a message via Skype™ to aerospain
Sorry about that, I had another post in mind.

Does it explain my problem?

cheers!
Attached Images
File Type: jpg 2D_domain.jpg (78.5 KB, 143 views)
aerospain is offline   Reply With Quote

Old   July 16, 2010, 14:35
Default
  #8
Member
 
Join Date: Jul 2010
Posts: 38
Rep Power: 16
montag dp is on a distinguished road
It does, unfortunately I don't really know about the sliding mesh. It seems like it should be possible, though, but you will probably have to define your airfoil motion relative to the global coordinate system and not the coordinate system of the domain it is directly inside.
montag dp is offline   Reply With Quote

Old   August 3, 2010, 10:38
Default rotation about z axis
  #9
Member
 
ahmad
Join Date: Jul 2010
Posts: 57
Rep Power: 16
almostafa67 is on a distinguished road
HI EVERYBODY...
i'm trying to rotate a small circle about z axis but i faced a problem,in 2 images that i sent u,u can see it,circle has been locked in its end points,how can i tell fluent that i want rotate small cylinder about center of bigger circle

it's kind of u if u think about it and help me out
Attached Images
File Type: jpg problem.JPG (22.7 KB, 69 views)
File Type: jpg problem 2.JPG (8.9 KB, 46 views)
almostafa67 is offline   Reply With Quote

Old   August 4, 2010, 18:50
Default
  #10
Senior Member
 
aerospain
Join Date: Sep 2009
Location: Madrid, Spain
Posts: 149
Rep Power: 17
aerospain is on a distinguished road
Send a message via Skype™ to aerospain
Quote:
Originally Posted by almostafa67 View Post
HI EVERYBODY...
i'm trying to rotate a small circle about z axis but i faced a problem,in 2 images that i sent u,u can see it,circle has been locked in its end points,how can i tell fluent that i want rotate small cylinder about center of bigger circle

it's kind of u if u think about it and help me out
Hi almostafa,

1. Could you please explain a bit more your simulation? What "real world" situation are you trying to model?

2. How manu domains have you defined? Just the one shown in the pictures?

Regards
aerospain is offline   Reply With Quote

Old   August 5, 2010, 02:49
Default
  #11
Member
 
ahmad
Join Date: Jul 2010
Posts: 57
Rep Power: 16
almostafa67 is on a distinguished road
Quote:
Originally Posted by aerospain View Post
Hi almostafa,

1. Could you please explain a bit more your simulation? What "real world" situation are you trying to model?

2. How manu domains have you defined? Just the one shown in the pictures?

Regards
i want to simulate peristaltic pump(http://www.randolphaustin.com/) and for this i need to rotate small circle about center of bigger circle,almost i could do this but faced a problem that explained befor,could u help me out?
thank you in advance
almostafa67 is offline   Reply With Quote

Old   June 10, 2012, 13:53
Default
  #12
New Member
 
srikanth
Join Date: Jun 2012
Posts: 4
Rep Power: 14
srikanthgoli is on a distinguished road
Hi Montag,
Can you please post the UDF.
srikanthgoli is offline   Reply With Quote

Old   June 25, 2012, 07:25
Default
  #13
New Member
 
srikanth
Join Date: Jun 2012
Posts: 4
Rep Power: 14
srikanthgoli is on a distinguished road
Opening library "libudf"...
Error: open_udf_library: The system cannot find the file specified.

Error Object: ()
srikanthgoli 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
Problem Meshing Airfoil erodv OpenFOAM 12 January 11, 2012 18:46
Plunging Airfoil Problem jmo OpenFOAM Running, Solving & CFD 0 May 17, 2010 23:36
Velocity profiles problem behind the elbow (3D problem) kabat73 FLUENT 8 May 9, 2010 05:26
[FloWorks] Request advice for an airfoil calculation problem Bogey Jammer Main CFD Forum 0 September 29, 2009 18:06
Periodic flow boundary condition problem sudha FLUENT 3 April 28, 2004 09:40


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