动边界问题,udf
#include "udf.h"DEFINE_GRID_MOTION(Piston,domain,dt,time,dtime)
{
Thread *tf=DT_THREAD(dt) ;
face_t f;
real NV_VEC(dx), NV_VEC(n_vec), NV_VEC(Area);
Node *v;
int n;
double n_mag;
double x;
SET_DEFORMING_THREAD_FLAG(THREAD_T0(tf));
begin_f_loop(f,tf)
{
f_node_loop(f,tf,n)
{
v=F_NODE(f,tf,n);
if (NODE_POS_NEED_UPDATE(v))
{
NODE_POS_UPDATED(v);
dx=0.046*sin(6.28*time)*dtime*tanh(2.0*time);
dx=0;
dx=0;
NV_V(NODE_COORD(v), +=, dx);
}
}
}
end_f_loop(f,tf);
}
Error: D:\Documents and Settings\Administrator.DELLPC\\327\300\303\346\udf\300\317\312\246\270\370\265\304\263\314\320\362\\273\356\310\373---\266\257\261\337\275\347\piston.c: line 7: structure reference not implemented
fluent6.3 ,compiled可以通过,但是interpreted过不了
[ 本帖最后由 F0501003 于 2009-2-26 18:23 编辑 ]
页:
[1]