|
[Sponsors] |
November 21, 2010, 09:33 |
problem with Compute_Force_And_Moment
|
#1 |
New Member
tianzhongwen
Join Date: Aug 2010
Posts: 4
Rep Power: 16 |
Hello,everyone,
I have a Problem with function Compute_Force_And_Moment My udf is : #include "udf.h" #define FORCE_OUTPUT_FILE "force.out" #define MOMENT_OUTPUT_FILE "moment.out" DEFINE_CG_MOTION(airfoil,dt,vel,omega,time,dtime) { FILE *fd1=fopen(FORCE_OUTPUT_FILE,"a"); FILE *fd2=fopen(MOMENT_OUTPUT_FILE,"a"); real x_cg[ND_ND]; real f_glob[ND_ND]; real m_glob[ND_ND]; Domain *domain= Get_Domain (1); Thread *tf1 = Lookup_Thread (domain, 7); x_cg[0]=0.05; x_cg[1]=0.0; x_cg[2]=0.2; Compute_Force_And_Moment (domain, tf1, x_cg, f_glob, m_glob, TRUE); fprintf(fd1,"%g,%g,%g,%g\n",RP_Get_Real("flow-time"),f_glob[0],f_glob[1],f_glob[2]); fprintf(fd2,"%g,%g,%g,%g\n",RP_Get_Real("flow-time"),m_glob[0],m_glob[1],m_glob[2]); omega[0]=-1.1*cos(1.57*time); omega[1]=-0.411*cos(1.57*time+1.57)*sin(0.7*sin(1.57*time)); omega[2]=-0.411*cos(1.57*time+1.57)*cos(0.7*sin(1.57*time)); } when i want to interpreted udf,the error appears as follows : cpp -I"E:\Fluent.Inc\fluent6.3.26/src" -I"E:\Fluent.Inc\fluent6.3.26/cortex/src" -I"E:\Fluent.Inc\fluent6.3.26/client/src" -I"E:\Fluent.Inc\fluent6.3.26/multiport/src" -I. -DUDFCONFIG_H="<udfconfig.h>" "F:\airfoil0012-20wan'\2.c" Error: F:\airfoil0012-20wan'\2.c: line 37: function "Compute_Force_And_Moment" not found (pc=88). Who can tell me the reason? thanks a million.</SPAN> |
|
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
UDF compiling problem | Wouter | Fluent UDF and Scheme Programming | 6 | June 6, 2012 05:43 |
Incoherent problem table in hollow-fiber spinning | Gianni | FLUENT | 0 | April 5, 2008 11:33 |
natural convection problem for a CHT problem | Se-Hee | CFX | 2 | June 10, 2007 07:29 |
Adiabatic and Rotating wall (Convection problem) | ParodDav | CFX | 5 | April 29, 2007 20:13 |
Is this problem well posed? | Thomas P. Abraham | Main CFD Forum | 5 | September 8, 1999 15:52 |