CFD Online Discussion Forums

CFD Online Discussion Forums (
-   FLUENT (
-   -   Pitch Ramp Motion for 2D Airfoil through UDF (

aerospain April 28, 2010 14:14

Pitch Ramp Motion for 2D Airfoil through UDF
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


jack1980 April 28, 2010 15:41

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.

aerospain April 28, 2010 16:55

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 :)

almostafa67 July 30, 2010 11:48

rotation about z axis
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.. :)

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