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

Clarification Needed on Symmetry Boundary Condition in CFD Simulation

Register Blogs Community New Posts Updated Threads Search

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   October 23, 2023, 15:16
Default Clarification Needed on Symmetry Boundary Condition in CFD Simulation
  #1
New Member
 
Bhargav
Join Date: Aug 2022
Posts: 29
Rep Power: 3
Varada is on a distinguished road
Hello Reef3d Team,

I'm seeking some clarification regarding the usage of symmetry boundary conditions in my CFD simulation. I have a wave tank with dimensions of 25m in length, 18m in width, and 1m in height. The main questions I have are related to placing a solid body which is symmetric along the x-axis or the length axis of the tank.

Firstly, if I set one side of the flume as a wall boundary and the other side as a symmetric boundary with the dimensions of the flume being 25m x 9m x 1m, should I place the entire solid object inside the domain, or only half of it?

Additionally, I encountered an issue where, when using a symmetric boundary on one side of the domain (making it half as the original), I couldn't obtain wave elevation measurements right at the symmetric boundary. If I wish to measure the elevation precisely at the center of the tank using the symmetric boundary, where should I position the probes?

Another concern I have is related to exporting visualization files in ParaView. Currently, I can only visualize half of the domain. Is there a method to view the entire domain in ParaView even after implementing a symmetric boundary?

Thank you in advance for your assistance.
Varada is offline   Reply With Quote

Old   October 26, 2023, 07:07
Default
  #2
Member
 
Felix S.
Join Date: Feb 2021
Location: Germany, Braunschweig
Posts: 85
Rep Power: 6
Felix_Sp is on a distinguished road
Hello

(I am not from the REEF3D-Team but anyway)

1. You can place the whole object or the halved. It should not matter too much as REEF3D does use the IBM. I am always using the whole object, because I am used to having problems with meshing in OpenFOAM.

2. I am not sure what you are doing wrong. I am getting measurements if I put a probe (P 51) directly on a symmetry boundary. Maybe share your input files?

3. You can use "Filters->Alphabetical->Reflect" to do this.

Cheers
Felix_Sp is offline   Reply With Quote

Old   November 2, 2023, 12:21
Default
  #3
New Member
 
Bhargav
Join Date: Aug 2022
Posts: 29
Rep Power: 3
Varada is on a distinguished road
Thank you for your reply. I followed your advice and ran the code with the attached files. Please take a look at the results. As we discussed earlier, there are some differences in the wave elevation measurements on the symmetry face, which you can see in the output files I've attached.
Attached Files
File Type: txt control.txt (230 Bytes, 5 views)
File Type: txt ctrl.txt (1,000 Bytes, 5 views)
File Type: txt WSF-HG.txt (7.6 KB, 2 views)

Last edited by Varada; November 3, 2023 at 00:18.
Varada is offline   Reply With Quote

Old   November 9, 2023, 04:09
Default
  #4
Member
 
Felix S.
Join Date: Feb 2021
Location: Germany, Braunschweig
Posts: 85
Rep Power: 6
Felix_Sp is on a distinguished road
Hello,

This is really weird, seems to be a bug in the print_wsf.cpp. The flag[n] in line 156 is always at zero for your case. If one forces the flag[n] to be 1 by:
for(n=0;n<gauge_num;++n)
flag[n]=1
then I get measurements at your boundary. I guess there is a rounding problem in the position_ijk_center.cpp leading to an index in the boundarycheck.cpp that sets the check to 0, but am unsure. I always investigated a symmetry boundary on the opposite face (C 13 3). That actually works. So I guess part of the problem is also the staggered grid?

An easy fix would be to set the y value of your probes to 8.9999999999 or sth. like this. Should be identical with your boundary. Otherwise, you have to fix the bug or wait for a patch. You could also force the flag to be always 1, but this might be problematic if you use your code in the future.

Cheers

Last edited by Felix_Sp; November 10, 2023 at 13:45.
Felix_Sp 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
Wind tunnel flow simulation boundary condition issue charan3007 SU2 0 October 21, 2021 08:27
Basic Nozzle-Expander Design karmavatar CFX 20 March 20, 2016 08:44
Problem in setting Boundary Condition Madhatter92 CFX 12 January 12, 2016 04:39
An error has occurred in cfx5solve: volo87 CFX 5 June 14, 2013 17:44
Low Mixing time Problem Mavier CFX 5 April 29, 2013 00:00


All times are GMT -4. The time now is 01:08.