CFD Online Discussion Forums

CFD Online Discussion Forums (https://www.cfd-online.com/Forums/)
-   REEF3D (https://www.cfd-online.com/Forums/reef3d/)
-   -   What is the propriate usage of patch boundary conditions? (https://www.cfd-online.com/Forums/reef3d/236522-what-propriate-usage-patch-boundary-conditions.html)

fturkmen June 3, 2021 04:48

What is the propriate usage of patch boundary conditions?
 
Hello,


When I use the inflow discharge options to set inlet boundary conditions, I realized that the inflow velocity changed (it can be read from the main log file, Ui). I have tried to set water level fixed at the inlet boundary conditions to remain velocity same during simulation but it did not remain same. I used ioflow and discharge options to make that.



I have also tried patch boundary conditions, I turned off the ioflow, then there was no velocity at the inlet. I think that I do not understand the usage of patchBC. There is different options for patch boundary condition in the last release 21.05. What is the correct combination of these settings to make constant the velocity at the inlet? Actually I want to give the velocity magnitude and direction directly for the inlet BC.



PS: I used CFD solvers, free surface analysis.


Thank you,

Best regards,
Furkan

valgrinda June 6, 2021 03:44

If you set the discharge as a boundary condition, the inlet velocity is defined as U =Q/A. So when the free surface level changes, the velocity is adjusted so that the discharge condition is fulfilled.

The main idea of patchBC is that it defines inflows/outflows in a very flexible way. Wall boundaries are converted by patchBC using the options B 440, B 441 and B 442 in REEF3D, so at any boundary in the domain. For this, you use wall boundaries for all sides in DIVEMesh.

fturkmen June 7, 2021 01:41

Hello Prof. Bihs,


Thank you for the answer, I will try.


Regards

Hao666 October 16, 2021 04:44

Quote:

Originally Posted by valgrinda (Post 805393)
If you set the discharge as a boundary condition, the inlet velocity is defined as U =Q/A. So when the free surface level changes, the velocity is adjusted so that the discharge condition is fulfilled.

The main idea of patchBC is that it defines inflows/outflows in a very flexible way. Wall boundaries are converted by patchBC using the options B 440, B 441 and B 442 in REEF3D, so at any boundary in the domain. For this, you use wall boundaries for all sides in DIVEMesh.

Hi Han bihs What functions can I use to simulate Wave + Current,

valgrinda October 17, 2021 14:39

Hi Hao Hao,

the wave libraries are currently not connected to the patchBC system. This is something we currently work on.

At the moment you can use the regular wave tank by using B 60. See the NWT tutorial examples. You can add current to waves by using W 10. Then waves and current are generated from the same inlet.

Hao666 October 18, 2021 21:43

Quote:

Originally Posted by valgrinda (Post 814437)
Hi Hao Hao,

the wave libraries are currently not connected to the patchBC system. This is something we currently work on.

At the moment you can use the regular wave tank by using B 60. See the NWT tutorial examples. You can add current to waves by using W 10. Then waves and current are generated from the same inlet.

Hi Han Bihs
Thank you so much for your useful advice,which will be of great help to me in learning REEF3D in the future.
Best regards


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