CFD Online Logo CFD Online URL
www.cfd-online.com
[Sponsors]
Home > Forums > General Forums > Main CFD Forum

Need help on boundary condition at corner point

Register Blogs Community New Posts Updated Threads Search

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   September 10, 2023, 21:05
Default Need help on boundary condition at corner point
  #1
New Member
 
Anh Dinh Le
Join Date: Apr 2020
Posts: 24
Rep Power: 6
AnhDL is on a distinguished road
Dear expert,

I am writing my own CFD code using finite difference method.
The problem is the flow pass two cylinders. I created an O-type mesh with a cut line.
The boundary condition is non-slip at wall. And at the cut-line (points 1, 2, 3,...), simply, using the average value from two points (1'-1'', 2'-2'', 3'-3'',...) near to the grid point at the cut-line.

The problem is that it is difficult to choose boundary condition for grid point 0. I tried different boundary conditions:
1. P0=(Pa+Pa')/2
2. P0=(Pa+Pa')/2 and Ua=Ub/4, Va=Vb/4 and Ua'=Ub'/4, Va'=Vb'/4 (apply second order approximation)
But the solution got strange result with pressure jump at the cut-line and some points near the cut-line and wall.
Could you please give me advices to this problems? Thank you
Attached Images
File Type: jpg 375769622_6578798412205510_2650352736761208515_n.jpg (46.3 KB, 17 views)
File Type: png 1.png (105.2 KB, 15 views)
File Type: png 2.png (31.0 KB, 17 views)
File Type: png 3.png (95.5 KB, 17 views)

Last edited by AnhDL; September 10, 2023 at 22:29.
AnhDL is offline   Reply With Quote

Old   September 11, 2023, 10:26
Default
  #2
New Member
 
Anh Dinh Le
Join Date: Apr 2020
Posts: 24
Rep Power: 6
AnhDL is on a distinguished road
Could anyone please help me?
AnhDL is offline   Reply With Quote

Old   September 11, 2023, 12:37
Default
  #3
agd
Senior Member
 
Join Date: Jul 2009
Posts: 357
Rep Power: 18
agd is on a distinguished road
The indexing that you are using for your mesh seems odd to me. Topologically your cut line is part of the same surface as the cylinder wall in (I,J) space, but you appear to be treating those pieces as partly I and partly J. Your results are more than likely the result of an indexing issue with your grid, and you are sticking values in the cells from parts of the grid that you don't mean to. Formally, the surface of the cylinder is no-slip, and then if you use an average properly, the point on the cylinder that corresponds to the cut location will get its values from the adjacent wall points - then the average of the no-slip velocities returns the correct no-slip velocity at the first cut point (zero if the wall is not moving).
agd is offline   Reply With Quote

Old   September 11, 2023, 13:14
Default
  #4
New Member
 
Anh Dinh Le
Join Date: Apr 2020
Posts: 24
Rep Power: 6
AnhDL is on a distinguished road
Quote:
Originally Posted by agd View Post
The indexing that you are using for your mesh seems odd to me. Topologically your cut line is part of the same surface as the cylinder wall in (I,J) space, but you appear to be treating those pieces as partly I and partly J. Your results are more than likely the result of an indexing issue with your grid, and you are sticking values in the cells from parts of the grid that you don't mean to. Formally, the surface of the cylinder is no-slip, and then if you use an average properly, the point on the cylinder that corresponds to the cut location will get its values from the adjacent wall points - then the average of the no-slip velocities returns the correct no-slip velocity at the first cut point (zero if the wall is not moving).
Thank you. My mistake. The simulation contains two cylinders. The grid point is indexed from the top cylinder to bottom cylinder with the cutline. Thus the point on the cutline is also indexed as (i,1). The velocity at the first cut point on the cylinder is zero. But, I wonder about the boundary condition at this point for pressure. There is a jump that I think somewhat strange.
Attached Images
File Type: jpg IMG_0694.jpg (213.5 KB, 7 views)
AnhDL is offline   Reply With Quote

Old   September 11, 2023, 20:56
Default
  #5
agd
Senior Member
 
Join Date: Jul 2009
Posts: 357
Rep Power: 18
agd is on a distinguished road
So the cylinder surfaces and cutline comprise the j=1 grid line, if I understand your figures. So the next question is - are you sure that you are assigning the computed boundary pressure to both sides of the cutline? It looks like you are only assigning it to one side.
agd is offline   Reply With Quote

Old   September 13, 2023, 04:14
Default
  #6
New Member
 
Anh Dinh Le
Join Date: Apr 2020
Posts: 24
Rep Power: 6
AnhDL is on a distinguished road
Quote:
Originally Posted by agd View Post
So the cylinder surfaces and cutline comprise the j=1 grid line, if I understand your figures. So the next question is - are you sure that you are assigning the computed boundary pressure to both sides of the cutline? It looks like you are only assigning it to one side.
Yes, I assigned the boundary condition to both sides of the cutline. I tested for the tandem cylinders and side-by-side cylinders.
There is no problem with the tandem cylinders (pressure tendency on the cylinder surfaces fit the reference data) although the same boundary conditions were used.
Attached Images
File Type: jpg Tandem_Cylinder.jpg (34.5 KB, 8 views)
File Type: jpg Untitled2.jpg (82.9 KB, 6 views)
AnhDL 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
Table bounds warnings at: END OF TIME STEP CFXer CFX 4 July 16, 2020 23:44
Basic Nozzle-Expander Design karmavatar CFX 20 March 20, 2016 08:44
problem about pressure boundary condition at sharp corner yhaomin2007 OpenFOAM Running, Solving & CFD 1 January 19, 2016 09:24
Problem in setting Boundary Condition Madhatter92 CFX 12 January 12, 2016 04:39
[snappyHexMesh] snappyHexMesh and cyclic boundaries Ruli OpenFOAM Meshing & Mesh Conversion 2 December 9, 2013 06:51


All times are GMT -4. The time now is 20:42.