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

C++ program for UDF of 3d NACA Airfoil

Register Blogs Community New Posts Updated Threads Search

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   May 15, 2022, 05:04
Default C++ program for UDF of 3d NACA Airfoil
  #1
New Member
 
Sharun
Join Date: May 2022
Posts: 2
Rep Power: 0
beginer is on a distinguished road
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.
beginer is offline   Reply With Quote

Old   May 16, 2022, 04:32
Default
  #2
Senior Member
 
Alexander
Join Date: Apr 2013
Posts: 2,363
Rep Power: 34
AlexanderZ will become famous soon enoughAlexanderZ will become famous soon enough
show what you have now
__________________
best regards


******************************
press LIKE if this message was helpful
AlexanderZ is offline   Reply With Quote

Old   May 16, 2022, 04:32
Default
  #3
Senior Member
 
Svetlana Tkachenko
Join Date: Oct 2013
Location: Australia, Sydney
Posts: 416
Rep Power: 15
Svetlana is on a distinguished road
Quote:
Originally Posted by beginer View Post
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.

Specifically what would you like to program? The geometry? Or something else?
Svetlana is offline   Reply With Quote

Old   May 16, 2022, 04:47
Default
  #4
New Member
 
Sharun
Join Date: May 2022
Posts: 2
Rep Power: 0
beginer is on a distinguished road
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]);
}
beginer 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
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


All times are GMT -4. The time now is 19:39.