CFD Online Logo CFD Online URL
www.cfd-online.com
[Sponsors]
Home > Forums > Software User Forums > OpenFOAM

strange wave profile.

Register Blogs Community New Posts Updated Threads Search

Like Tree1Likes
  • 1 Post By ngj

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   October 30, 2012, 07:48
Default strange wave profile.
  #1
New Member
 
Join Date: Aug 2012
Posts: 14
Rep Power: 13
Cloudy1988 is on a distinguished road
Hello all,

I use waveFoam to generate 1st order regular wave and plot the wave profile at t=50sec
The wave properties is :
w=3.1415926, H=0.1, T=2s, wavelength=3.6949, c=1.8474 and k=1.7003

Freesurface function is set to be:
functions
(
freeSurface
{
type surfaces;
functionObjectLibs
(
"libsampling.so"
);
outputControl outputTime;
outputInterval 1;
surfaceFormat vtk;
fields
(
alpha1
);
surfaces
(
freeSurface
{
type isoSurfaceCell;
isoField alpha1;
isoValue 0.5;
interpolate false;
regularise false;
}
);
interpolationScheme cell;

the result is very strange

is there any suggestion to get a good wave profile?

Many thanks,
Cloudy
Cloudy1988 is offline   Reply With Quote

Old   October 30, 2012, 07:49
Default
  #2
New Member
 
Join Date: Aug 2012
Posts: 14
Rep Power: 13
Cloudy1988 is on a distinguished road
here is the wave profile (wave elevation against length)
wave tank length is 18m and relaxation zone is added at the inlet and outlet of the tank
Cloudy1988 is offline   Reply With Quote

Old   November 2, 2012, 05:19
Default
  #3
ngj
Senior Member
 
Niels Gjoel Jacobsen
Join Date: Mar 2009
Location: Copenhagen, Denmark
Posts: 1,900
Rep Power: 37
ngj will become famous soon enoughngj will become famous soon enough
Hi Cloudy,

What you experience is due to the use of first of stokes theory. You should use a higher order wave theory to obliterate this strange, but physically correct, surface elevation.

If you want to understand it better, please search the web for spurious waves.

/ Niels
ngj is offline   Reply With Quote

Old   November 5, 2012, 05:50
Default
  #4
New Member
 
Join Date: Aug 2012
Posts: 14
Rep Power: 13
Cloudy1988 is on a distinguished road
Hi Niels,

there is another question I would like to ask you. Since I would like to plot the wave profile in a 3D wave tank at different Y position, how do setup the freesurface Sampling function and is there any instruction about how to use this and all other utilities?

I have checked their c++ files but there is no information which tell you how to setup

Many thanks,
Cloudy
Cloudy1988 is offline   Reply With Quote

Old   November 5, 2012, 07:47
Default
  #5
ngj
Senior Member
 
Niels Gjoel Jacobsen
Join Date: Mar 2009
Location: Copenhagen, Denmark
Posts: 1,900
Rep Power: 37
ngj will become famous soon enoughngj will become famous soon enough
Hi Cloudy,

Please read the Wiki (http://openfoamwiki.net/index.php/Contrib/waves2Foam).

/ Niels
ngj is offline   Reply With Quote

Old   November 12, 2012, 13:13
Default
  #6
New Member
 
Join Date: Aug 2012
Posts: 14
Rep Power: 13
Cloudy1988 is on a distinguished road
HI Niels,

I would like now to try to use turbulence model for my case, how should I set the BCs of k and epsilon for inlet and outlet?

Many thanks,
Cloudy
Cloudy1988 is offline   Reply With Quote

Old   November 13, 2012, 05:19
Default
  #7
ngj
Senior Member
 
Niels Gjoel Jacobsen
Join Date: Mar 2009
Location: Copenhagen, Denmark
Posts: 1,900
Rep Power: 37
ngj will become famous soon enoughngj will become famous soon enough
Hi

It depends entirely on your problem. If you have pure waves, I typically disregard turbulence on the boundary (setting small values), but if you are modelling waves and current, then you need to think a lot about the correct boundary condition - I do not have the answer for that.

Please note what I write in my paper describing waves2Foam about the turbulence models in OF. These are not ready for modelling free surface flows! There is no density in the formulation of the turbulence models, which leads to a huge diffusion of turbulence across the interface. This excess diffusion of turbulence (typically from air to water) dampens the wave very, very fast. In my case of studying wave breaking on a sloping beach, it lead to a dissipation of the wave energy without wave breaking - the wave simply disappeared.

Till now, I have not included the turbulence models in the waves2Foam library, but there might be an extension at some point, but until now, I recommend that you make your own modifications to your favourite turbulence model. These modifications basically goes along the line of specifying the 2-equation framework in a way, which is NOT normalised by density.

With respect to outlet conditions, I always have a beach, so I do not have an outlet.

Good luck,

Niels
mo_na likes this.
ngj is offline   Reply With Quote

Reply


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are Off
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
Square Wave Profile manish mehta FLUENT 2 July 4, 2019 20:02
DFBI: Wave profile with pitching problem?! fuzel STAR-CCM+ 7 July 21, 2012 04:52
Strange velocity profile at the inlet for a flow inside a cylindrical pipe michmich OpenFOAM Running, Solving & CFD 0 July 2, 2012 03:37
Free surface water wave profile John N. FLUENT 0 February 2, 2009 16:17
udf_square wave profile Ramin FLUENT 0 March 8, 2006 09:38


All times are GMT -4. The time now is 10:53.