|
[Sponsors] |
May 15, 2022, 05:04 |
C++ program for UDF of 3d NACA Airfoil
|
#1 |
New Member
Sharun
Join Date: May 2022
Posts: 2
Rep Power: 0 |
Hello everybody,
I am here seeking help from anyone who can guide me in the programming of a 3D NACA airfoil 0010 for UDF(simple Harmonic Motion) in the y direction. I am not good at programming and am stuck. |
|
May 16, 2022, 04:32 |
|
#2 |
Senior Member
Alexander
Join Date: Apr 2013
Posts: 2,363
Rep Power: 34 |
show what you have now
__________________
best regards ****************************** press LIKE if this message was helpful |
|
May 16, 2022, 04:32 |
|
#3 | |
Senior Member
Svetlana Tkachenko
Join Date: Oct 2013
Location: Australia, Sydney
Posts: 416
Rep Power: 15 |
Quote:
Specifically what would you like to program? The geometry? Or something else? |
||
May 16, 2022, 04:47 |
|
#4 |
New Member
Sharun
Join Date: May 2022
Posts: 2
Rep Power: 0 |
I have the drawing and am waiting to do the analysis. So require the C++ program for simple harmonic motion.
I have this program with me. But it shows a lot of errors #include "udf.h"s DEFINE_CG_MOTION(validation,dt,cg_vel,cg_omega,tim e,dtime) { thread*t; real omega_t=69.115; NV_S(cg_vel, =, 0.0); NV_S(cg_omega, =, 0.0); t=DT_THREAD((DYNAMIC_THREAD *)dt); cg_vel[1] =31*0.04*sin(omega_t*time); Message("time:%f cg_vely:%f \n",time,cg_vel[1]); } |
|
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
Airfoil NACA 0006 with alpha -4° is not going as expected, why? | SideshowED | OpenFOAM Running, Solving & CFD | 7 | October 12, 2017 13:08 |
NACA Airfoil | FAKHREDDINE | CFX | 1 | February 8, 2017 01:27 |
High drag for airfoil compared to XFOIL and wind tunnel data | Ry10 | SU2 | 15 | October 30, 2016 18:27 |
NACA 63-520M airfoil | laltenburg | ANSYS | 1 | March 30, 2016 12:31 |
Drag prediction for Naca 23012 airfoil | Ravel Bogatec | CFX | 17 | February 15, 2008 01:21 |