|
[Sponsors] |
Need help in writing UDF for an oscillating airfoil to get Output parameters |
|
LinkBack | Thread Tools | Search this Thread | Display Modes |
October 27, 2017, 12:21 |
Need help in writing UDF for an oscillating airfoil to get Output parameters
|
#1 |
New Member
musab
Join Date: Oct 2017
Posts: 11
Rep Power: 9 |
Hello everyone,
I need help in writing UDF for pitching airfoil for the particular case using DEFINE_OUTPUT_PARAMETER For reference please have a look at below link related to how to write UDF in the presence of Output Parameters. https://www.sharcnet.ca/Software/Ansys/16.2.3/en-us/help/flu_ug/flu_ug_sec_report_param_out_udf.html Actually I want to get CL(lift coefficient) values at different ''different'' AoA. Here is my UDF: #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 */ } |
|
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
How to build current blower fan model in Flotherm | eric0722 | FloEFD, FloWorks & FloTHERM | 3 | January 2, 2021 03:36 |
decomposePar problem: Cell 0contains face labels out of range | vaina74 | OpenFOAM Pre-Processing | 37 | July 20, 2020 06:38 |
UDF for Pitching and Oscillating 2D Airfoil | vigii | Fluent UDF and Scheme Programming | 11 | July 11, 2019 16:58 |
Oscillating Airfoil - Dynamic meshing or user-defined velocity profile. | DarrenC | Main CFD Forum | 5 | July 19, 2010 23:33 |
UDF for Heat Exchanger model | francois louw | FLUENT | 2 | July 16, 2010 03:21 |