|
[Sponsors] |
REEF:SFLOW wave direction - Domain definition |
|
LinkBack | Thread Tools | Search this Thread | Display Modes |
September 15, 2021, 18:26 |
REEF:SFLOW wave direction - Domain definition
|
#1 | ||
New Member
Onur
Join Date: Sep 2021
Posts: 3
Rep Power: 5 |
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 Quote:
Quote:
Thanks for all suggestions - I can provide additional information to help resolve the problem. Cheers Onur Last edited by OnurKurum; September 15, 2021 at 21:43. |
|||
September 19, 2021, 06:11 |
|
#2 |
Super Moderator
Hans Bihs
Join Date: Jun 2009
Location: Trondheim, Norway
Posts: 403
Rep Power: 19 |
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. |
|
September 22, 2021, 22:03 |
|
#3 |
New Member
Onur
Join Date: Sep 2021
Posts: 3
Rep Power: 5 |
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 |
|
October 8, 2021, 18:52 |
|
#4 | |
New Member
Vahid
Join Date: Jan 2011
Posts: 23
Rep Power: 15 |
Quote:
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 |
||
October 11, 2021, 22:49 |
|
#5 |
New Member
Onur
Join Date: Sep 2021
Posts: 3
Rep Power: 5 |
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. |
|
Tags |
divemesh, sflow, wave direction |
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
[OLAFLOW] The OLAFLOW Thread | Phicau | OpenFOAM Community Contributions | 459 | September 12, 2024 12:47 |
[waves2Foam] Waves2Foam Related Topics | ngj | OpenFOAM Community Contributions | 660 | August 20, 2018 13:39 |
Error - Solar absorber - Solar Thermal Radiation | MichaelK | CFX | 12 | September 1, 2016 06: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 06:10 |
OpenFOAM static build on Cray XT5 | asaijo | OpenFOAM Installation | 9 | April 6, 2011 13:21 |