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

How to use PatchBC

Register Blogs Community New Posts Updated Threads Search

Like Tree1Likes

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   June 15, 2021, 04:41
Default How to use PatchBC
  #1
New Member
 
Nino Minicucci
Join Date: Jun 2021
Posts: 7
Rep Power: 4
NiMinic is on a distinguished road
Hello, my name is Nino and I'm working with REEF3D to simulate the scour produced by a spillway in the relative plunge pool. In this first stage, I would like to use the PatchBc to simulate an experimental setup in which the water enter the domain through an "hole" in the bottom so to raise the flow level and overtop a weir, but I didn't understood how to use the PatchBC to reach my goals.
With best regards
Nino
NiMinic is offline   Reply With Quote

Old   June 17, 2021, 08:32
Default
  #2
Super Moderator
 
Hans Bihs
Join Date: Jun 2009
Location: Trondheim, Norway
Posts: 377
Rep Power: 17
valgrinda is on a distinguished road
with patchBC, you convert the solid ghostcells in a defined area (box, circle or line) into inflow or outflow conditions. Then you can assign different boundary condition characteristics.
__________________
Hans Bihs
Team REEF3D
www.reef3d.com
valgrinda is offline   Reply With Quote

Old   June 17, 2021, 09:08
Default
  #3
New Member
 
Nino Minicucci
Join Date: Jun 2021
Posts: 7
Rep Power: 4
NiMinic is on a distinguished road
Hi, thanks for the reply. In the simulation I've set a wall condition for all the boundaries (as you suggested in a past threadh), turn off the ioFlow and set this condition:
B 411 1 0.2
B 440 1 1 0.0 1.0 0.0 1.0
During the simulation its possible to observe a value for the Uq equals to the condition setted but the Ui remains always equal to zero. So in post-processing nothing happens in the domain.
I don't know if I missed some additional conditions or something else.
Best regards
NiMinic is offline   Reply With Quote

Old   June 17, 2021, 09:53
Default
  #4
Super Moderator
 
Hans Bihs
Join Date: Jun 2009
Location: Trondheim, Norway
Posts: 377
Rep Power: 17
valgrinda is on a distinguished road
B 440 1 1 0 0 1 0 1 has a the following problem:

x_start =1
x_ end =0

that should be reversed.
__________________
Hans Bihs
Team REEF3D
www.reef3d.com
valgrinda is offline   Reply With Quote

Old   June 17, 2021, 09:58
Default
  #5
New Member
 
Nino Minicucci
Join Date: Jun 2021
Posts: 7
Rep Power: 4
NiMinic is on a distinguished road
Oh, my bad, I'm sorry. Can I ask you what stand for face?
Thanks
NiMinic is offline   Reply With Quote

Old   June 17, 2021, 10:32
Default
  #6
Super Moderator
 
Hans Bihs
Join Date: Jun 2009
Location: Trondheim, Norway
Posts: 377
Rep Power: 17
valgrinda is on a distinguished road
You can find the face definition in DIVEMesh User Guide in chapter 1.2.
__________________
Hans Bihs
Team REEF3D
www.reef3d.com
valgrinda is offline   Reply With Quote

Old   June 17, 2021, 10:43
Default
  #7
New Member
 
Nino Minicucci
Join Date: Jun 2021
Posts: 7
Rep Power: 4
NiMinic is on a distinguished road
I got it. Thanks again for the quickness in the reply and for the work you've done.
Best regards
NiMinic is offline   Reply With Quote

Old   October 16, 2021, 03:01
Default
  #8
New Member
 
Hao hao
Join Date: Aug 2021
Posts: 9
Rep Power: 4
Hao666 is on a distinguished road
Quote:
Originally Posted by valgrinda View Post
B 440 1 1 0 0 1 0 1 has a the following problem:

x_start =1
x_ end =0

that should be reversed.
Hi i have the same problem with B441,I'm confused about this setup,especially in the setting of ID and face.My idea is to set a certain velocity in the water region.
My code is B441 0 0 0.0 0.0 0.0 35 0.0 0.012 0.0 0.6.
ID and face is the same thing?
Hao666 is offline   Reply With Quote

Old   October 17, 2021, 14:36
Default
  #9
Super Moderator
 
Hans Bihs
Join Date: Jun 2009
Location: Trondheim, Norway
Posts: 377
Rep Power: 17
valgrinda is on a distinguished road
Hi Hao Hao,

the face and ID are not the same thing. The face refers to the geometry: on which side of the cell is the patchBC? See the DIVEMesh User Guide, section 1.2, Fig. 1.1 for the definition of the faces / cell sides.

Important: the patchBC will convert a solid boundary to an inflow or outflow, so it needs to be placed on the domain boundary or at other solid boundaries.

Each individual patchBC should get its own ID. With this ID, it is possible to assign different boundary conditions to the patchBCs, see B 411 to B 422.
__________________
Hans Bihs
Team REEF3D
www.reef3d.com
valgrinda is offline   Reply With Quote

Old   October 18, 2021, 21:22
Default
  #10
New Member
 
Hao hao
Join Date: Aug 2021
Posts: 9
Rep Power: 4
Hao666 is on a distinguished road
Quote:
Originally Posted by valgrinda View Post
Hi Hao Hao,

the face and ID are not the same thing. The face refers to the geometry: on which side of the cell is the patchBC? See the DIVEMesh User Guide, section 1.2, Fig. 1.1 for the definition of the faces / cell sides.

Important: the patchBC will convert a solid boundary to an inflow or outflow, so it needs to be placed on the domain boundary or at other solid boundaries.

Each individual patchBC should get its own ID. With this ID, it is possible to assign different boundary conditions to the patchBCs, see B 411 to B 422.
Hi Hans Bihs,
Thank you for your detailed explanation on how to define ID and patchBC functions. Now I have a preliminary understanding of it.
Best Regards
Hao666 is offline   Reply With Quote

Old   February 18, 2022, 18:58
Default
  #11
New Member
 
Djamel
Join Date: Feb 2017
Location: Paris
Posts: 1
Rep Power: 0
dkhachei is on a distinguished road
Hi REEF3D team,


I’m still confused about patchBC, is there any tutorial on how to use it?


I’ve made a simple case similar to a submerged drainage outfall (see attached picture). I was hoping to solve this using patchBC and CFD solver.


All faces are defined as walls in DiveMESH except top surface (symmetry plane). The patchBC is placed on the domain boundary (face 3 in reference to DiveMESH user guide).


I’m using the following command to represent the inflow:
B 210 1
B 411 1 10.0
B 441 1 3 4.0 6.0 0.0 0.0 0.0 2.0

During the simulation, Qi and Ui are equal to 0 and at the end, the water level in the domain is equal to the one initially imposed (no inflow).


What am I missing here? Is there any other parameters that need to be set?


Anyways, thanks for the work done.
Attached Images
File Type: png REEF3D_patchBC_help.png (27.0 KB, 34 views)
dkhachei is offline   Reply With Quote

Old   February 23, 2022, 22:26
Default
  #12
Member
 
Ismael Incoencio
Join Date: Sep 2021
Posts: 45
Rep Power: 6
IADInocencio is on a distinguished road
Hi, just wanted to add I am also having this problem wherein if I set a PatchBC with an inflow and no outflow condition anywhere else the overall volume of water doesn't seem to change. I also hope a tutorial/reference setup would be available for this.
__________________
Still learning
IADInocencio is offline   Reply With Quote

Old   March 25, 2022, 04:25
Default
  #13
Super Moderator
 
Hans Bihs
Join Date: Jun 2009
Location: Trondheim, Norway
Posts: 377
Rep Power: 17
valgrinda is on a distinguished road
Dear Djamel and Ismael,

could you share the control files where you experience problems?

I am attaching a very simple patchBC test case.
Attached Files
File Type: txt control.txt (99 Bytes, 25 views)
File Type: txt ctrl.txt (326 Bytes, 28 views)
__________________
Hans Bihs
Team REEF3D
www.reef3d.com
valgrinda is offline   Reply With Quote

Old   March 26, 2022, 04:54
Default
  #14
Super Moderator
 
Hans Bihs
Join Date: Jun 2009
Location: Trondheim, Norway
Posts: 377
Rep Power: 17
valgrinda is on a distinguished road
Ok, follow up on patchBC: it looks like there was a critical problem with setting the velocities on the patchBC. I have fixed this now and it will be part of the new release.
dkhachei likes this.
__________________
Hans Bihs
Team REEF3D
www.reef3d.com
valgrinda is offline   Reply With Quote

Old   March 26, 2022, 07:53
Default
  #15
Super Moderator
 
Hans Bihs
Join Date: Jun 2009
Location: Trondheim, Norway
Posts: 377
Rep Power: 17
valgrinda is on a distinguished road
PatchBC is now fixed in REEF3D 22.03.
__________________
Hans Bihs
Team REEF3D
www.reef3d.com
valgrinda is offline   Reply With Quote

Old   March 27, 2022, 03:19
Default
  #16
Member
 
Ismael Incoencio
Join Date: Sep 2021
Posts: 45
Rep Power: 6
IADInocencio is on a distinguished road
Quote:
Originally Posted by valgrinda View Post
Dear Djamel and Ismael,

could you share the control files where you experience problems?

I am attaching a very simple patchBC test case.

Good afternoon Prof Hans, I have attached the sample files as requested. I set the initial a solid at the same height as the initial water level and from my runs it never gets overtopped.
Attached Files
File Type: txt control.txt (147 Bytes, 13 views)
File Type: txt ctrl.txt (246 Bytes, 11 views)
__________________
Still learning
IADInocencio is offline   Reply With Quote

Old   March 27, 2022, 03:38
Default
  #17
Super Moderator
 
Hans Bihs
Join Date: Jun 2009
Location: Trondheim, Norway
Posts: 377
Rep Power: 17
valgrinda is on a distinguished road
Have you tried with 22.03?
__________________
Hans Bihs
Team REEF3D
www.reef3d.com
valgrinda is offline   Reply With Quote

Old   March 27, 2022, 04:11
Default
  #18
Member
 
Ismael Incoencio
Join Date: Sep 2021
Posts: 45
Rep Power: 6
IADInocencio is on a distinguished road
Quote:
Originally Posted by valgrinda View Post
PatchBC is now fixed in REEF3D 22.03.
Oops, sorry for the late reply; I had the page loaded up before your post. I will test it out on the latest release.
__________________
Still learning
IADInocencio is offline   Reply With Quote

Old   March 27, 2022, 11:27
Default
  #19
Member
 
Ismael Incoencio
Join Date: Sep 2021
Posts: 45
Rep Power: 6
IADInocencio is on a distinguished road
Quote:
Originally Posted by valgrinda View Post
Have you tried with 22.03?
Good evening Prof Hans, I believe the 411 and 442 works now thank you! The water is now overtopping the obstruction I placed properly. I will try the other PatchBC's later.

I have attached the difference in results as two images.
Attached Images
File Type: jpg RECENT VERSION.JPG (40.1 KB, 34 views)
File Type: jpg Older Version.jpg (29.2 KB, 27 views)
__________________
Still learning
IADInocencio is offline   Reply With Quote

Old   March 27, 2022, 15:06
Default
  #20
Super Moderator
 
Hans Bihs
Join Date: Jun 2009
Location: Trondheim, Norway
Posts: 377
Rep Power: 17
valgrinda is on a distinguished road
Great to hear! Thanks for the feedback!
__________________
Hans Bihs
Team REEF3D
www.reef3d.com
valgrinda 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
Reef3d 21.05 valgrinda REEF3D News & Announcements 0 June 1, 2021 15:42


All times are GMT -4. The time now is 06:55.