李怡雯 发表于 2013-8-20 10:27:00

naca动网格程序

#include "udf.h"#include "unsteady.h"#include "stdio.h" #include "stdlib.h"/************************************************************/real current_time = 0.0 ;Domain * domain ;Thread * thread ;real NV_VEC( origin ),NV_VEC( force ),NV_VEC( moment ) ;/************************************************************/DEFINE_CG_MOTION(AIRFOIL,dt,vel,omega,time,dtime){current_time = CURRENT_TIME ; vel = 0.0 ; vel = 0.0 ; vel = 0.0 ;omega = 0.0 ;omega = 0.0 ;omega = 5.4831*0.5* cos( 31.4159 * current_time ) ;Message("time=%fomega=%f\n",current_time,omega) ;}
页: [1]
查看完整版本: naca动网格程序