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

REEF:SFLOW wave direction - Domain definition

Register Blogs Community New Posts Updated Threads Search

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   September 15, 2021, 17:26
Default REEF:SFLOW wave direction - Domain definition
  #1
New Member
 
Onur
Join Date: Sep 2021
Posts: 3
Rep Power: 4
OnurKurum is on a distinguished road
Hi all,

I am trying to set-up a simple 2D wave case using SFLOW however I am having trouble setting it up correctly. Attached is the description of the simple domain I am trying to set. Beach is on the left side and Offshore on the right side.

Essentially the trouble I am having is to be able to point the waves towards the beach.

In DiveMesh, I have tried flipping C11 and C14 between "wave generation" and "numerical beach" but no matter what I do, the generated waves always propagate in the increasing X-direction. I need them to travel in the -X direction.

Is this possible or all domains need to have the beach on the right side (max X) and wave generation on the left side (min X)?

Based on the attached figure, I have generated the mesh with:
control.txt:
Code:
B 1 5  
B 10 434148 434698 4702302 4704174 -8 6 (or in simpler terms: 0 550 0 1872 -10 6)
B 130 1
C 11 7
C 12 3 (assuming this will work with periodic boundaries I set at C22 1)
C 13 3 (assuming this will work with periodic boundaries I set at C22 1)
C 14 6
C 15 21   
C 16 3
C 22 1 (will need to have periodic boundaries applied to lateral boundaries so I used C22 1)
G 10 1   
G 15 2     
M 10 8
M 20 1
ctrl.txt is also attached - I have tried giving some angle to the waves with B 97 and B131 and they both generated perpendicular waves (still going in the +X direction). Then I removed
Quote:
B97/B131
and used
Quote:
B 105 61 434648 4704174
which gave me wave angles but still propagating in +X direction.


Thanks for all suggestions - I can provide additional information to help resolve the problem.
Cheers
Onur
Attached Images
File Type: png simple_domain.png (48.4 KB, 13 views)
Attached Files
File Type: txt ctrl.txt (388 Bytes, 4 views)

Last edited by OnurKurum; September 15, 2021 at 20:43.
OnurKurum is offline   Reply With Quote

Old   September 19, 2021, 05:11
Default
  #2
Super Moderator
 
Hans Bihs
Join Date: Jun 2009
Location: Trondheim, Norway
Posts: 377
Rep Power: 17
valgrinda is on a distinguished road
Hi Onur,

unfortunately, SFLOW does not support periodic boundary conditions. Only CFD does that. Here, the periodicBC focus is on high-resolution LES modeling.

I have tried to run your setup and saw a couple of things:

- It looks like B 97 was still in the manual, it shouldn't have been. B 105 is the option that works for the wave direction

- I don't have the geo.dat file, so I probably ran with deeper water than intended. In any case, it looks like the water is too deep for the NH-SWE approach and the waves damp out. If you experience this including the geo.dat file, maybe FNPF becomes an option for you. Also, the mesh is probably a bit too coarse. A finer grid improves the result, but not enough.

I would say that in the end, I probably don't fully understand the case you want to run. Maybe we should go for a meeting and see whether we can incorporate your use case scenario.
__________________
Hans Bihs
Team REEF3D
www.reef3d.com
valgrinda is offline   Reply With Quote

Old   September 22, 2021, 21:03
Default
  #3
New Member
 
Onur
Join Date: Sep 2021
Posts: 3
Rep Power: 4
OnurKurum is on a distinguished road
Hi Hans,

We have resolved most of the problems with some remaining issues/requests. I think Dave K has sent you an email about it. I will talk with him tomorrow re arranging a meeting to discuss more SFLOW development, particularly re breaking, bed friction, maybe neumann boundaries.

We figured (after my first post) from the source code that B97 was not implemented in the code and with B 105, the only problem was not being able to turn the waves around (i.e., beach is on left side, and waves were being generated left to right direction, I've tried many things, believe me). We got around the issue for now, no worries.

And thanks for confirming that periodic boundaries are not possible with SFLOW, the code that deals with it is now in divemesh apparently and didn't have to time to look into that.

thanks for your reply,
cheers
Onur
OnurKurum is offline   Reply With Quote

Old   October 8, 2021, 17:52
Default
  #4
New Member
 
Vahid
Join Date: Jan 2011
Posts: 23
Rep Power: 15
va-ta-cfd is on a distinguished road
Quote:
Originally Posted by OnurKurum View Post

We figured (after my first post) from the source code that B97 was not implemented in the code and with B 105, the only problem was not being able to turn the waves around (i.e., beach is on left side, and waves were being generated left to right direction, I've tried many things, believe me). We got around the issue for now, no worries.
Hello Onur,

Could you please explain how you have solved the problem with inclined wave direction?
I have the same problem. Actually by using B105, the waves still propagate in x direction.
I really appreciate your advice.

With Regards,
Vahid
va-ta-cfd is offline   Reply With Quote

Old   October 11, 2021, 21:49
Default
  #5
New Member
 
Onur
Join Date: Sep 2021
Posts: 3
Rep Power: 4
OnurKurum is on a distinguished road
Hi Vahid,

I wish I could help but the way we worked around it was to use another mass source wavemaker (not currently open source). Then I stopped digging after the wave direction issue with B105.

I am sure it's an easy fix in the source code though.
OnurKurum is offline   Reply With Quote

Reply

Tags
divemesh, sflow, wave direction


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
[OLAFLOW] The OLAFLOW Thread Phicau OpenFOAM Community Contributions 457 March 27, 2024 00:59
[waves2Foam] Waves2Foam Related Topics ngj OpenFOAM Community Contributions 660 August 20, 2018 12:39
Error - Solar absorber - Solar Thermal Radiation MichaelK CFX 12 September 1, 2016 05:15
UDF to apply a Spanwise velocity wave on a whole 3D rectangular channel domain QBeast Fluent UDF and Scheme Programming 8 October 15, 2013 05:10
OpenFOAM static build on Cray XT5 asaijo OpenFOAM Installation 9 April 6, 2011 12:21


All times are GMT -4. The time now is 07:50.