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

Issues with Modeling Laminar Pipe Flow Using Cyclic Boundary Conditions

Register Blogs Community New Posts Updated Threads Search

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   February 16, 2021, 17:34
Default Issues with Modeling Laminar Pipe Flow Using Cyclic Boundary Conditions
  #1
New Member
 
Join Date: Dec 2019
Posts: 11
Rep Power: 6
falsc233 is on a distinguished road
Hello,
I am trying to model laminar flow inside of a duct with square cross sections. I am using cyclic bundary conditions and I am starting with simplefoam to solve for a steady-state solution. I set the inlet and outlet boundary conditions to be "cyclic" and specified Ubar to be 0.04m/s. The axial velocity profile looks alright and is quite close to the analytical solution calculated using the pressure gradient printed out after each iteration.

However, my simulation has two major problems:
1. The residual from the pressure solver is very high and fluctuates at around 0.28, and the residuals from the velocity solvers are also much higher than the case where the boundary conditions are not cyclic;
2. The pressure distribution shown in paraview does not match the pressure gradient provided by the solver from the terminal. I was expecting the pressure to be droping linearly from the inlet to the outlet, but instead it is close to zero throughout the channel and oscillates at an amplitude of 1e-10.

I have included some of my codes in the attachment. I'd wish to know how to model a laminar pipe flow using cyclic boundary conditions and what are the causes of the problems I've encountered. Thank you very much!
blockMeshDict.txt

controlDict.txt

fvSchemes.txt

fvSolution.txt

fvOptions.txt
falsc233 is offline   Reply With Quote

Old   June 9, 2021, 04:21
Default
  #2
Senior Member
 
mohammad
Join Date: Sep 2015
Posts: 281
Rep Power: 12
mostanad is on a distinguished road
Hi,
Can you please just tell me whether you found any solution for this problem?
Thank you for your help in advance,
Mohammad
mostanad is offline   Reply With Quote

Old   June 10, 2021, 16:03
Default
  #3
New Member
 
Join Date: Dec 2019
Posts: 11
Rep Power: 6
falsc233 is on a distinguished road
Quote:
Originally Posted by mostanad View Post
Hi,
Can you please just tell me whether you found any solution for this problem?
Thank you for your help in advance,
Mohammad
Hi, unfortunately I did not find a solution to this problem, and eventually I gave up using cyclic BCs. I hope you have better luck!
falsc233 is offline   Reply With Quote

Old   June 10, 2021, 22:04
Default
  #4
Senior Member
 
mohammad
Join Date: Sep 2015
Posts: 281
Rep Power: 12
mostanad is on a distinguished road
Hi,
Thank you for your great reply. I am still struggling with that. What method did you use instead of that?
mostanad is offline   Reply With Quote

Old   June 11, 2021, 11:09
Default
  #5
New Member
 
Join Date: Dec 2019
Posts: 11
Rep Power: 6
falsc233 is on a distinguished road
Quote:
Originally Posted by mostanad View Post
Hi,
Thank you for your great reply. I am still struggling with that. What method did you use instead of that?
Hi, I just made my computational domain longer instead.
Good luck!
falsc233 is offline   Reply With Quote

Reply

Tags
cyclic boundary condition, laminar flow in pipe, pressure gradient, simplefoam not converged, steady state


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
An error has occurred in cfx5solve: volo87 CFX 5 June 14, 2013 18:44
Low Mixing time Problem Mavier CFX 5 April 29, 2013 01:00
Water subcooled boiling Attesz CFX 7 January 5, 2013 04:32
Cyclic boundary conditions concerning channel with constant flow rate pascool OpenFOAM Pre-Processing 1 November 16, 2012 14:04
Terrible Mistake In Fluid Dynamics History Abhi Main CFD Forum 12 July 8, 2002 10:11


All times are GMT -4. The time now is 03:59.