|
[Sponsors] |
![]() |
![]() |
#1 |
New Member
Maria Francisca Sarmento
Join Date: Dec 2022
Posts: 3
Rep Power: 4 ![]() |
Hello,
I'm trying to simulate a river flow for that I am first trying to understand how the patch bc tool works by trying to simulate a river with an inflow and outflow in a simple parallelepiped. I don't understand why the simulation result doesn't show any kind of flow, am I missing something? I have attached the files ctrl.txt and control.txt, if someone can help me I would appreciate it regards |
|
![]() |
![]() |
![]() |
![]() |
#2 |
Senior Member
Arun Kamath
Join Date: Nov 2014
Location: Trondheim, Norway
Posts: 265
Rep Power: 14 ![]() |
For each B 441 command you issue there should be a unique integer as ID, which define the desired property for that patch box.
Refer to commands B 411-417. You have issued one B 411 1 0.2 for discharge related to patch 1. For patch 2, there is no corresponding B411-417 command with ID 2 and the flow property desired. You have a B 414 20, which is incomplete (2 values needed for this command), so reef3d will stop at read ctrl and not execute. Be careful defining the patch boxes they need to align with a solid boundary ( it seems like it does in your case, but please do double check)
__________________
Arun X years with REEF3D |
|
![]() |
![]() |
![]() |
![]() |
#3 |
New Member
Maria Francisca Sarmento
Join Date: Dec 2022
Posts: 3
Rep Power: 4 ![]() |
Hi Arun!
Thank you for the quick response and sorry for the late asnwer! Even with your indications and by adding other patchBC conditions (B 411-B 417), the domain still does not demonstrate any kind of flow. Any idea what might be missing ? I attach the new documents control.txt and ctrl.txt Thank you very much for your help ![]() |
|
![]() |
![]() |
![]() |
![]() |
#4 |
Member
Felix S.
Join Date: Feb 2021
Location: Germany, Braunschweig
Posts: 90
Rep Power: 7 ![]() |
Hey,
I have not yet tried patchBC in Sflow. There is a good thread about patchBC with examples already in the forum. Have you looked at that already to find the error in your setup? Cheers Last edited by Felix_Sp; April 28, 2023 at 12:53. |
|
![]() |
![]() |
![]() |
![]() |
#5 |
New Member
Maria Francisca Sarmento
Join Date: Dec 2022
Posts: 3
Rep Power: 4 ![]() |
Hi Felix!
Thank you for your quick reply! There isn't any thread for patchBC in SFLOW, only on CFD.So I'll have to run my simulations in CFD. I've manage to run a thread example of patchBC in CFD (How to use PatchBC from IADInocencio) and it worked only for inflow not for outflow. What I need to simulate is an inflow with a given discharge on one surfside of a rectangular domain and an outflow with the same discharge on the opposite surfside. Would you be able to help me please? Regards, |
|
![]() |
![]() |
![]() |
![]() |
#6 |
Member
Felix S.
Join Date: Feb 2021
Location: Germany, Braunschweig
Posts: 90
Rep Power: 7 ![]() |
Hey
sorry I was on vacation. I have here an example on the basis of the thread I provided that gives inflow on surfside 1 and outflow on any other side. The circular option (B442) do only work for the minimum coordinates i.e. x,y,z = 0. I do not know why they do not work for the maximum domain coordinates (I guess some bug?). However, the rectangular ones work for all options besides the top surf side. I guess REEF3D does not like it, that the domain is completely filling up with water. This should give you a start. Maybe this does also work for SFLOW. I do really have not as much experience with SFLOW though. Cheers |
|
![]() |
![]() |
![]() |
![]() |
#7 |
New Member
Georg Göbel
Join Date: Sep 2016
Location: Karlsruhe
Posts: 9
Rep Power: 10 ![]() |
Hello everyone,
since I was desperately trying to use the patchBC in SFLOW with B441 as it is done in the ctrl.txt files in this thread, I realized that it is not applicable in SFLOW and went for B440. Could have been faster if I would have taken a closer look at the black and white dots in the UserGuide ![]() Here is how it worked for me: Domain definition in control.txt: B 10 0 10 0 10 0 10 patchBC in ctrl.txt: B 440 1 4 9 11 4 6 Make sure to encapsulate the face with a box. The patchBC is on face 4 which is at x=10. In B440 x_start<10 and x_end>10. If I set them both to 10 it does not work. Best regards Georg |
|
![]() |
![]() |
![]() |
Tags |
patchbc, reef3d, sflow |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Thread Starter | Forum | Replies | Last Post |
REEF3D SFLOW : (21.11) vs (22.04) break in flow domain around the solid | Firoj Shaik | REEF3D | 2 | September 9, 2022 12:46 |
How to use PatchBC | NiMinic | REEF3D | 22 | March 28, 2022 06:40 |
Breaking Waves in REEF3D SFLOW, A 246 vs A 248 | pjoynt | REEF3D | 3 | March 22, 2022 06:22 |
Unable to Run the SFLOW Tutorial in the Manual | MGYBY | REEF3D | 7 | June 26, 2021 11:56 |
Reef3d 21.05 | valgrinda | REEF3D News & Announcements | 0 | June 1, 2021 15:42 |