This video shows how to simulate a 2D multiphase fluid (air and water), driven by a moving wall with a sinusoidal movement.
This is de UDF i used:
#include "udf.h"
DEFINE_CG_MOTION(moving_wall,dt,vel,omega,time,dtime)
{
real t = CURRENT_TIME;
NV_S (vel, = , 0.0);
vel[0] = 0.35*3.1415*cos(3.1415*t);
}
#Ansys #AnsysFluent #CFD #AutoDeskInventor