This video shows how to simulate the waves on a 2D water tank, using a block that follows an harmonic oscillation on the vertical direction, using the dynamic mesh tool.
This is the UDF:
#include "udf.h"
DEFINE_CG_MOTION(moving_wall,dt,vel,omega,time,dtime)
{
real t = CURRENT_TIME;
NV_S (vel, = , 0.0);
vel[1] = 0.1*4*3.1415*cos(4*3.1415*t);
}
#Ansys #AnsysFluent #CFD #AutoDeskInventor