|
[Sponsors] |
how to plot graph for output parameters using UDF? |
|
LinkBack | Thread Tools | Search this Thread | Display Modes |
October 29, 2017, 08:23 |
how to plot graph for output parameters using UDF?
|
#1 |
New Member
musab
Join Date: Oct 2017
Posts: 11
Rep Power: 9 |
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; } |
|
|
|
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 |