Ask Question

Name:
Title:
Your Question:

Answer Question

Name:
Your Answer:
User Submitted Source Code!


Description:
  sss
Language: C/C++
Code:
#include "udf.h"

static real velx=0.0;

DEFINE_CG_MOTION(box,dt,vel,omega,time,dtime)
{

     NV_S(vel, =, 0.0);
     NV_S(omega, =, 0.0);

     velx=0.05*sin(3.1415927*time/10.);
     vel[0]=velx;
     Message ("time = %f, vel[0]=%f\n", time, vel[0]);

          
Comments: