|
[Sponsors] |
UDF for Wall Boundary moving Left and right to create wave Simulation in a Flume |
|
LinkBack | Thread Tools | Search this Thread | Display Modes |
April 16, 2019, 10:39 |
UDF for Wall Boundary moving Left and right to create wave Simulation in a Flume
|
#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 |
|
April 17, 2019, 01:42 |
|
#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 |
|
July 3, 2019, 22:23 |
|
#3 |
Member
...
Join Date: Jan 2019
Posts: 31
Rep Power: 7 |
||
September 30, 2024, 01:05 |
ANSYS FLuent, regular wave
|
#4 |
New Member
Join Date: Jul 2024
Posts: 1
Rep Power: 0 |
I am currently using ANSYS Fluent to simulate regular waves, such as Stokes first and second-order waves, as well as Airy wave theories. While I have input parameters like water depth, wavelength, and wave height, the resulting surface elevation versus time plot does not appear as a regular wave. Instead, it shows unusual peaks and troughs, which differ significantly from the expected wave behavior. I suspect this irregularity may be due to the absence of a specified wave period in my setup. Unfortunately, I could not find an option to directly input the wave period in ANSYS Fluent. Could you please advise if the wave period is crucial for generating regular wave patterns and how I can correctly input it in the simulation settings? Any guidance would be greatly appreciated.
|
|
Tags |
moving boundary, udf, wave boundary conditions, wave flume, wave generation |
|
|