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

Pressure drop error of laminar pipe flow with simpleFoam

Register Blogs Community New Posts Updated Threads Search

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   September 11, 2019, 13:39
Default Pressure drop error of laminar pipe flow with simpleFoam
  #1
New Member
 
Xiaolong Liu
Join Date: Sep 2019
Posts: 6
Rep Power: 7
xiaolong is on a distinguished road
Hello Foamers,

I am new to openfoam. I am trying to simulate a laminar pipe flow by using simpleFoam and compare the pressure drop with the analytical solution. However, I found a quite consistent about 11% pressure drop error by adjusting the inlet velocity (Re=500, 1000, 1500, 2000)

Below are the parameters I used for this simulation

Pipe length (L): 0.5m
Pipe diameter (D): 0.015m
Dynamic viscosity (mu): 8.9e-4 N/m-s
Density (rho): 997 kg/m^3
Max value of parabolic velocities:
(1) 5.96e-2 m/s(Re=500); (2) 1.19e-1 m/s (Re=1000); (3) 1.78e-1 m/s (Re=1500); (4) 2.38e-1 m/s (Re=2000).
Boundary conditions:
p:
Inlet: zeroGradient;
Outlet: fixedValue uniform 0;
Wall: zeroGradient;
U:
Inlet: parabolic velocity (I tried fixedvalue uniform inlet velocity as well without measuring in the entry length region, the same problem);
Outlet: zeroGradient;
Wall: fixedValue uniform (0 0 0);


I also compared simulation results with Fluent, as shown in the figure below:

https://www.dropbox.com/s/22xv8hlwuv...luent.png?dl=0

I have tried (1) refining the mesh in different levels; (2) adjusting the gradient scheme to leastsquares method; (3) importing the mesh developed in ANSYS for Fluent simulation. None of these can change the results.

Since this is a very simple case, I believe simpleFoam should be able to provide accurate prediction on the pressure drop. However, I just can not get it.

I really appreciate if anyone can help to point out what the problem is.

Please find my code in the following link:

https://www.dropbox.com/sh/3ow6w0cvx...LbEbgwH_a?dl=0

Thanks,
Xiaolong

Last edited by xiaolong; September 12, 2019 at 09:34. Reason: To make a statement more clear
xiaolong is offline   Reply With Quote

Old   September 12, 2019, 03:45
Default
  #2
Senior Member
 
anonymous
Join Date: Jan 2016
Posts: 416
Rep Power: 14
simrego is on a distinguished road
Hi!
Sorry, I was wrong, but I can't delete the post.
simrego is offline   Reply With Quote

Old   September 12, 2019, 09:27
Default
  #3
New Member
 
Xiaolong Liu
Join Date: Sep 2019
Posts: 6
Rep Power: 7
xiaolong is on a distinguished road
Hi simrego,

Thanks for your quick reply though.

Xiaolong
xiaolong is offline   Reply With Quote

Old   September 16, 2019, 11:51
Default
  #4
New Member
 
Xiaolong Liu
Join Date: Sep 2019
Posts: 6
Rep Power: 7
xiaolong is on a distinguished road
Just got pointed out by another foamer. I set wrong value of nu in transportproperties. Now they match.
xiaolong is offline   Reply With Quote

Old   September 22, 2019, 06:07
Default
  #5
HPE
Senior Member
 
HPE's Avatar
 
Herpes Free Engineer
Join Date: Sep 2019
Location: The Home Under The Ground with the Lost Boys
Posts: 931
Rep Power: 13
HPE is on a distinguished road
Dear Xiaolong Liu,

Is there any chance for you to share your setup and results, so that OpenFOAM maintainers can use these as a showcase?

Kind regards,
HPE
HPE is offline   Reply With Quote

Reply

Tags
laminar pipe flow, pressure drop error, simplefoam


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
Using Darcy Pressure equation to verify ABAQUS CFD laminar flow analysis Chris1234 Main CFD Forum 0 April 30, 2019 11:04
lower pressure drop compared to experimental value in Two phase flow calculations. Ash Kot Fluent Multiphase 0 May 16, 2017 17:29
Orifice-Pipe Problem CFXMUFFIN CFX 3 July 16, 2015 19:57
pressure drop - pipe flow C.C Main CFD Forum 6 November 19, 2012 11:02
Pressure drop in laminar flow carno FLUENT 11 September 9, 2007 11:46


All times are GMT -4. The time now is 18:11.