CFD Online Logo CFD Online URL
Home > Forums > Software User Forums > OpenFOAM > OpenFOAM Running, Solving & CFD

SimpleFoam Laminar Pipe Flow Pressure Drop Error

Register Blogs Members List Search Today's Posts Mark Forums Read

LinkBack Thread Tools Search this Thread Display Modes
Old   September 13, 2019, 08:10
Default SimpleFoam Laminar Pipe Flow Pressure Drop Error
New Member
Xiaolong Liu
Join Date: Sep 2019
Posts: 3
Rep Power: 2
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:
Inlet: zeroGradient;
Outlet: fixedValue uniform 0;
Wall: zeroGradient;
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:

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:

xiaolong is offline   Reply With Quote


Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

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 On
Pingbacks are On
Refbacks are On

Similar Threads
Thread Thread Starter Forum Replies Last Post
DPM udf error haghshenasfard FLUENT 0 April 13, 2016 06:35
Compile problem ivanyao OpenFOAM Running, Solving & CFD 1 October 12, 2012 09:31
Ansys Fluent 13.0 UDF compilation problem in Window XP (32 bit) Yogini Fluent UDF and Scheme Programming 7 October 3, 2012 07:24
ParaView for OF-1.6-ext Chrisi1984 OpenFOAM Installation 0 December 31, 2010 06:42
CGNS lib and Fortran compiler manaliac Main CFD Forum 2 November 29, 2010 06:25

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