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

Pitch Ramp Motion for 2D Airfoil through UDF

Register Blogs Community New Posts Updated Threads Search

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   April 28, 2010, 15:14
Default Pitch Ramp Motion for 2D Airfoil through UDF
  #1
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 everyone,

I would like to define a ramp function for a 2D airfoil's pitch motion in FLUENT 12.1. I know how to do this with UDFs since I've already done it for a sinusoidal function. I just need to change the function, simplesss!

My questions are the following:

How do I stop the airfoil at a given angle of attack and leave it at that attitude? The catch is that I would like the calculation to keep running for some time at the final angle.

Can I use conditional instructions in the UDF? In that case, what would be the "flag" for the yes/no condition?

or, How could I do it by "Calculation Activities"? I'm assuming the activity I should define is the Steady or Transient mode at the time/iteration step the airfoil reaches the final angle.

Thanks in advance

cheers!
aerospain is offline   Reply With Quote

Old   April 28, 2010, 16:41
Default
  #2
Senior Member
 
Jouke de Baar
Join Date: Oct 2009
Posts: 127
Rep Power: 17
jack1980 is on a distinguished road
I think you can use MIN and MAX. You could youse this for your time? Something like:

angle = 0.5 * MIN(time,1)

would increase the angle from 0 at t=0 to 0.5 at t=1 and then stay at 0.5 for the remaining time.
jack1980 is offline   Reply With Quote

Old   April 28, 2010, 17:55
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
Thank you Jouke,

I'm glad there are implicit functions for logical operations. From the way of defining the angle, I'm assuming the numerical stability of the calculation will depend directly on the physical time step (which is defined inside FLUENT12.1). I could always use another variable instead of time and use the latter to calculate the value of this new variable. I'll work on it.

Thanks again
aerospain is offline   Reply With Quote

Old   July 30, 2010, 12:48
Default rotation about z axis
  #4
Member
 
ahmad
Join Date: Jul 2010
Posts: 57
Rep Power: 16
almostafa67 is on a distinguished road
hi everybody...
guys if you are familiar with udf could u help me with this problem,i am trying to simulate peristaltic pump and for this i need to write an udf file to rotate on of edges about z axis,i will be thanfull if u could help me with this problem.
thank you in advance..
almostafa67 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
Moving mesh Niklas Wikstrom (Wikstrom) OpenFOAM Running, Solving & CFD 122 June 15, 2014 07:20
Mesh Motion pitch on a hull Seb CFX 1 February 23, 2009 14:04
UDF error CG Motion Alex FLUENT 0 March 22, 2006 18:40
Trying to Write pitch and Plunge UDF Alex FLUENT 0 March 18, 2006 17:14
How to write UDF for pitching&plunging airfoil? Alex FLUENT 0 March 17, 2006 13:37


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