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

How to use patchBC in SFLOW

Register Blogs Community New Posts Updated Threads Search

Like Tree1Likes
  • 1 Post By Francisca67

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   December 6, 2022, 10:32
Default How to use patchBC in SFLOW
  #1
New Member
 
Maria Francisca Sarmento
Join Date: Dec 2022
Posts: 3
Rep Power: 4
Francisca67 is on a distinguished road
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
Attached Files
File Type: txt ctrl.txt (1.3 KB, 8 views)
File Type: txt control.txt (100 Bytes, 6 views)
keshav_20 likes this.
Francisca67 is offline   Reply With Quote

Old   December 7, 2022, 09:04
Default
  #2
Senior Member
 
Arun Kamath
Join Date: Nov 2014
Location: Trondheim, Norway
Posts: 265
Rep Power: 14
kamath is on a distinguished road
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
kamath is offline   Reply With Quote

Old   April 26, 2023, 12:40
Default
  #3
New Member
 
Maria Francisca Sarmento
Join Date: Dec 2022
Posts: 3
Rep Power: 4
Francisca67 is on a distinguished road
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!
Attached Files
File Type: txt ctrl.txt (637 Bytes, 4 views)
File Type: txt control.txt (103 Bytes, 2 views)
Francisca67 is offline   Reply With Quote

Old   April 28, 2023, 03:35
Default
  #4
Member
 
Felix S.
Join Date: Feb 2021
Location: Germany, Braunschweig
Posts: 88
Rep Power: 6
Felix_Sp is on a distinguished road
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 13:53.
Felix_Sp is offline   Reply With Quote

Old   April 28, 2023, 13:46
Default
  #5
New Member
 
Maria Francisca Sarmento
Join Date: Dec 2022
Posts: 3
Rep Power: 4
Francisca67 is on a distinguished road
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,
Francisca67 is offline   Reply With Quote

Old   May 9, 2023, 03:53
Default
  #6
Member
 
Felix S.
Join Date: Feb 2021
Location: Germany, Braunschweig
Posts: 88
Rep Power: 6
Felix_Sp is on a distinguished road
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
Attached Files
File Type: txt ctrl.txt (688 Bytes, 6 views)
File Type: txt control.txt (99 Bytes, 5 views)
Felix_Sp is offline   Reply With Quote

Reply

Tags
patchbc, reef3d, sflow


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 SFLOW : (21.11) vs (22.04) break in flow domain around the solid Firoj Shaik REEF3D 2 September 9, 2022 13:46
How to use PatchBC NiMinic REEF3D 22 March 28, 2022 07:40
Breaking Waves in REEF3D SFLOW, A 246 vs A 248 pjoynt REEF3D 3 March 22, 2022 07:22
Unable to Run the SFLOW Tutorial in the Manual MGYBY REEF3D 7 June 26, 2021 12:56
Reef3d 21.05 valgrinda REEF3D News & Announcements 0 June 1, 2021 16:42


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