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

how to plot graph for output parameters using UDF?

Register Blogs Community New Posts Updated Threads Search

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   October 29, 2017, 08:23
Default how to plot graph for output parameters using UDF?
  #1
New Member
 
musab
Join Date: Oct 2017
Posts: 11
Rep Power: 9
ned.musab is on a distinguished road
Hello everyone,

I want to know how to plot CL(Lift Coefficient) Vs angle of attack(omega) graph for 'output parameters' using UDF.
I use below like to set my output parameter macro

https://www.sharcnet.ca/Software/Ans...parameter.html

Now, problem is my udf anyways got compiled but its not plotting cl vs aoa graph. Why is it so?

My udf look like as below. Is it correctly writen?

#include "udf.h"

DEFINE_CG_MOTION(oscillating_airfoil, dt, vel, omega, time, dtime)

{
real a, w, p, pi;

pi = 3.14159265;
/* define motion variables */

a = 5*(pi/36); /* Amplitude */
w = 2 * pi *1; /* Angular Frequency */
p = pi/2; /* phase */

/* define airfoil motion */

omega[2] = -a*sin(w*time+p); /* z-component of angular velocity */


}
DEFINE_OUTPUT_PARAMETER(output, omega, parlist)
{
return omega;
}
ned.musab 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
how to plot graph Cl and Cd vs (time/period) shah aleanza FLUENT 1 September 21, 2015 02:52
how to use tecplot to plot 3D graph? sam CFX 1 April 30, 2008 22:42
extract datas to plot on graph huiling FLUENT 2 December 8, 2007 03:27
Plot the properties of a surface on a graph mat w FLUENT 0 November 21, 2005 06:18
graph plot anindya Main CFD Forum 2 September 17, 2003 13:00


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