|
[Sponsors] |
UDF for Wall Boundary moving Left and right to create wave Simulation in a Flume |
![]() |
|
LinkBack | Thread Tools | Search this Thread | Display Modes |
![]() |
![]() |
#1 |
New Member
Ruari Skinner
Join Date: Apr 2019
Posts: 2
Rep Power: 0 ![]() |
Hi,
I am currently trying to simulate a wave flume experiment in FLUENT. I need help with the following UDF function. I am new to the software but now have a basic understanding of what i need to do. I have identified the UDF file as the driver for the Moving wall. The Current UDF looks like this, #include "udf.h" #include "dynamesh_tools.h" DEFINE_CG_MOTION(wave,dt,vel,omega,time,dtime) { Thread *t; face_t f; /* define the variables */ t = DT_THREAD(dt); begin_f_loop(f,t) /* loop over each face in the zone to create an array of data */ { vel[0]=(0.037098)*((1 - exp(-2.303*time))*2.8274*cos(2.8274*time) + ((2.303*exp(-2.303*time))*sin(2.8274*time))); } end_f_loop(f,t) } I believe the operation that needs changing is the vel[0] function. I want the wall to move at a frequency of 0.45 per second. The wall is to move 300mm from its original position. Once the wall is 300mm to the left (X direction), it is to return back to its original position at the same frequency. The overall aim is to have a simulation for numerous waves in a wave flume over a 5 second period. Wave heights will be compared from a numerical model and laboratory approach. Regards Ruari Skinner |
|
![]() |
![]() |
![]() |
![]() |
#2 |
Senior Member
Alexander
Join Date: Apr 2013
Posts: 2,363
Rep Power: 34 ![]() ![]() |
so any problems here? why did you post it?
best regards |
|
![]() |
![]() |
![]() |
![]() |
#3 |
Member
...
Join Date: Jan 2019
Posts: 31
Rep Power: 7 ![]() |
||
![]() |
![]() |
![]() |
Tags |
moving boundary, udf, wave boundary conditions, wave flume, wave generation |
|
|