CFD Online Logo CFD Online URL
www.cfd-online.com
[Sponsors]
Home > Forums > Software User Forums > OpenFOAM > OpenFOAM Running, Solving & CFD

Wall slip or Patch slip Boundary Condition

Register Blogs Community New Posts Updated Threads Search

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   November 29, 2021, 22:12
Default
  #21
Senior Member
 
mohammad
Join Date: Sep 2015
Posts: 278
Rep Power: 12
mostanad is on a distinguished road
Quote:
Originally Posted by Marpole View Post
Great! For pressure boundary condition, zeroGradient and fixedFluxPressure are both popular. You can also use slip. I haven't tested it myself but believe it will give you the same results.
Dear Charles,
Sorry for bothering you again. Can you please tell me your opinion about the above images?
Thanks
mostanad is offline   Reply With Quote

Old   November 30, 2021, 01:59
Default
  #22
Senior Member
 
Charles
Join Date: Aug 2016
Location: Vancouver, Canada
Posts: 150
Rep Power: 10
Marpole is on a distinguished road
I took a look at the motorBike case. Its front and back faces are patch type with slip velocity boundary and slip pressure boundary condition.

The results you showed has the max velocity (tangential) 20m/s and normal velocity 0.03m/s.

For the non-zero normal velocity, I can only guess that the output in the code occurs not immediately after the boundary condition treatment.

Immediately after the boundary condition treatment, mathematically, the normal velocity is set to zero. The code then will go on the next time step, where equations are solved iteratively. The output may occur after the iterations. This is my hypothesis and hope this is the case.
__________________
Charles L.
Marpole is offline   Reply With Quote

Old   November 30, 2021, 02:03
Default
  #23
Senior Member
 
mohammad
Join Date: Sep 2015
Posts: 278
Rep Power: 12
mostanad is on a distinguished road
Quote:
Originally Posted by Marpole View Post
I took a look at the motorBike case. Its front and back faces are patch type with slip velocity boundary and slip pressure boundary condition.

The results you showed has the max velocity (tangential) 20m/s and normal velocity 0.03m/s.

For the non-zero normal velocity, I can only guess that the output in the code occurs not immediately after the boundary condition treatment.

Immediately after the boundary condition treatment, mathematically, the normal velocity is set to zero. The code then will go on the next time step, where equations are solved iteratively. The output may occur after the iterations. This is my hypothesis and hope this is the case.

Thanks Charles for your nice reply. BTW, I have seen this behavior in so many slip cases, which seems to be normal. As you see the normal velocity is very low, and almost negligible. So You still think that it has a suitable approximation.
mostanad is offline   Reply With Quote

Old   November 30, 2021, 02:18
Default
  #24
Senior Member
 
Michael Alletto
Join Date: Jun 2018
Location: Bremen
Posts: 616
Rep Power: 16
mAlletto will become famous soon enough
You have to consider that the system of equations is solved only up to a given tolerance
mAlletto is offline   Reply With Quote

Old   November 30, 2021, 02:27
Default
  #25
Senior Member
 
mohammad
Join Date: Sep 2015
Posts: 278
Rep Power: 12
mostanad is on a distinguished road
Quote:
Originally Posted by mAlletto View Post
You have to consider that the system of equations is solved only up to a given tolerance
But it is not Neumann BC. It is a fixed zero normal velocity.
mostanad is offline   Reply With Quote

Old   December 5, 2021, 06:46
Default
  #26
Senior Member
 
Michael Alletto
Join Date: Jun 2018
Location: Bremen
Posts: 616
Rep Power: 16
mAlletto will become famous soon enough
Quote:
Originally Posted by mostanad View Post
Sorry Charles for asking question again. In the tutorials,I can see a few cases using wall-slip BC. But there are multiple cases with patch-slip, like motorbike for front and back sides. When I look at these sides, the normal velocity is not completely zero:





while the U magnitude shows:




How this can be justified?


Mohammad
Maybe this is just a visualization issue. Did you check in the results file for the exact valuees
mAlletto is offline   Reply With Quote

Old   December 5, 2021, 07:11
Default
  #27
Senior Member
 
mohammad
Join Date: Sep 2015
Posts: 278
Rep Power: 12
mostanad is on a distinguished road
Quote:
Originally Posted by mAlletto View Post
Maybe this is just a visualization issue. Did you check in the results file for the exact valuees
I've seen some comments on cfd-online about non-zero values coming from paraview because of the rendering problems and non-defined slip BC.
mostanad is offline   Reply With Quote

Old   December 5, 2021, 07:35
Default
  #28
Senior Member
 
Michael Alletto
Join Date: Jun 2018
Location: Bremen
Posts: 616
Rep Power: 16
mAlletto will become famous soon enough
Can you confirm that the result file of the figure you posted have zero wall normal velocities?
mAlletto is offline   Reply With Quote

Old   December 5, 2021, 07:53
Default
  #29
Senior Member
 
Michael Alletto
Join Date: Jun 2018
Location: Bremen
Posts: 616
Rep Power: 16
mAlletto will become famous soon enough
Quote:
Originally Posted by mostanad View Post
I've seen some comments on cfd-online about non-zero values coming from paraview because of the rendering problems and non-defined slip BC.
Maybe it would be useful for other people reading this thread if you could add the links to this comments you found
mAlletto is offline   Reply With Quote

Old   December 5, 2021, 08:31
Default
  #30
Senior Member
 
Mark Olesen
Join Date: Mar 2009
Location: https://olesenm.github.io/
Posts: 1,714
Rep Power: 40
olesen has a spectacular aura aboutolesen has a spectacular aura about
Quote:
Originally Posted by mostanad View Post
I've seen some comments on cfd-online about non-zero values coming from paraview because of the rendering problems and non-defined slip BC.
I can't remember if this was addressed in paraview-5.10 (or it is really easily addressable) - would be interesting if you could check.
olesen is offline   Reply With Quote

Old   December 6, 2021, 01:36
Default
  #31
Senior Member
 
mohammad
Join Date: Sep 2015
Posts: 278
Rep Power: 12
mostanad is on a distinguished road
Quote:
Originally Posted by mAlletto View Post
Maybe it would be useful for other people reading this thread if you could add the links to this comments you found

Can you tell me what is the easiest way to check this in the output files?
mostanad is offline   Reply With Quote

Old   December 6, 2021, 02:12
Default
  #32
Senior Member
 
Michael Alletto
Join Date: Jun 2018
Location: Bremen
Posts: 616
Rep Power: 16
mAlletto will become famous soon enough
If the are not store as binary just open it with vim. It can read ascii files and also .gz files
mAlletto is offline   Reply With Quote

Old   December 6, 2021, 19:54
Default
  #33
Senior Member
 
mohammad
Join Date: Sep 2015
Posts: 278
Rep Power: 12
mostanad is on a distinguished road
Quote:
Originally Posted by mAlletto View Post
If the are not store as binary just open it with vim. It can read ascii files and also .gz files
OK. But the crucial is that I need to have the cell IDs over that free-slip Boundary.
mostanad is offline   Reply With Quote

Old   June 7, 2022, 05:20
Default
  #34
Senior Member
 
Hassan Kassem
Join Date: May 2010
Location: Germany
Posts: 242
Rep Power: 18
hk318i is on a distinguished road
Back to the original question, patch-slip vs wall-slip?

They could be exactly the same or completely different depending on the used models and domain. For example, in case of incompressible flow, with no heat transfer, which typically you would use simpleFoam or pimpleFoam. Your turbulence model would dictate if you would see a difference or not. This is simply due to the fact that the wall distance is needed in some turbulence model formulation such as SA and kOmega. In many cases, using a wall would not influence the results that much, since we typically try to set the boundary patches far away from the object of interest.
__________________
@HIKassem | HassanKassem.me
hk318i is offline   Reply With Quote

Old   August 24, 2023, 13:48
Default
  #35
Member
 
Ching Liu
Join Date: Sep 2017
Posts: 52
Rep Power: 9
qingqingliu is on a distinguished road
Hi Mostanad,

I met a similar issue: Slip gives non-zero velocity in the normal direction. Did you find the reason for that?

Quote:
Originally Posted by mostanad View Post
Sorry Charles for asking question again. In the tutorials,I can see a few cases using wall-slip BC. But there are multiple cases with patch-slip, like motorbike for front and back sides. When I look at these sides, the normal velocity is not completely zero:





while the U magnitude shows:




How this can be justified?


Mohammad
qingqingliu is offline   Reply With Quote

Old   August 28, 2023, 06:55
Default
  #36
Senior Member
 
Joachim Herb
Join Date: Sep 2010
Posts: 650
Rep Power: 22
jherb is on a distinguished road
The slip boundary conditions is internally a basicSymmetryFvPatchField and its values are set in https://github.com/OpenFOAM/OpenFOAM...#L97C12-L97C37

There the components normal to the faces are removed: https://github.com/OpenFOAM/OpenFOAM...chField.C#L110

But if I understand it correctly, this method is called *before* the U and the p equations are solved. After the pressure equation is solved, the flux phi and the velocities are calculated again. If the solution does not obey the boundary conditions perfectly, the velocitiy can have a non-zero component normal to the boundary.

So has you solution converged? Do the normal values of the velocity change, if you reduce the residuals?
jherb 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
y+ and u+ values with low-Re RANS turbulence models: utility + testcase florian_krause OpenFOAM 114 August 23, 2023 05:37
CFD analaysis of Pelton turbine amodpanthee CFX 31 April 19, 2018 18:02
Question about adaptive timestepping Guille1811 CFX 25 November 12, 2017 17:38
Centrifugal fan-reverse flow in outlet lesds to a mass in flow field xiexing CFX 3 March 29, 2017 10:00
Cyclic Boundary Condition Luiz Eduardo Bittencourt Sampaio (Sampaio) OpenFOAM Running, Solving & CFD 36 July 2, 2012 12:23


All times are GMT -4. The time now is 15:19.