十分感谢各位的解答,我也知道这么做,可是我在UG建好模后通过parasolid导入ICEM后已经分好part了,我不管对每个part划分快都是对整个计算域划分,还弹出一个对话框:part。。contains geometry objects,do you want to proceed?各位大侠谁遇到过这种情况
DEFINE_CG_MOTION(mvz250z,dt,cg_vel,cg_omega,time,dtime)
{
real f;//=RP_Get_Real(“motion-par/freq_s”);
real a;//=RP_Get_Real(“motion-par/amplitude”);
real omega; real vel;
/*real amplitude=.20/* in inches */
/* real conv =0.0254;*/
omega=2.0*M_PI*f;
/*vel=amplitude*conv*omega*sin(omega*time);*/
Vel=250.0/3.6;
cg_vel[0]=0.0;/*x-velocity*/
cg_vel[1]=0.0;
cg_vel[2]=vel;
NV_S(cg_omega,=,0.0);/* no angular motion*/
}
DEFINE_CG_MOTION(muf250z,dt,cg_vel,cg_omega,time,dtime)
{
real f;//=RP_Get_Real(“motion-par/freq_s”);
real a;//=RP_Get_Real(“motion-par/amplitude”);
real omega;
real vel;
/*real amplitude =.20;/* in inches*/
/*real conv = 0.0254;*/
omega=2.0*M_PI*f;
/*vel=amplitude*conv*omega*sin(omega*time);*/
Vel=-250.0/3.6;
cg_vel[0]=0.0;/*x_velocity*/
cg_vel[1]=0.0;
cg_vel[2]=vel;
NV_S(cg_omege,=,0.0);/* no angular motion*/
}