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

Pressure drop - simpleFoam

Register Blogs Community New Posts Updated Threads Search

Like Tree1Likes
  • 1 Post By FM_Stiral

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   September 6, 2019, 12:34
Default Pressure drop - simpleFoam
  #1
New Member
 
E. Lowry
Join Date: Sep 2019
Posts: 8
Rep Power: 7
elowfoam is on a distinguished road
I am currently working on matching the analytical solution for pressure drop in a pipe. I created a mesh of a pipe with 0.0254m diameter and 0.254m length with an inlet and outlet. The mesh was created using Ansys and refined in the near wall region to help with wall effects. The analytical solution indicates that the pressure drop with water flowing at 2 m/s should be about 1600 Pa/m. The simulation with simpleFoam using k-epsilon are giving an absurdly low value (usually less than 10 Pa/m). Things I have tried:

1. Ensured the viscosity value and units are correct
2. Calculated the correct k and epsilon values for the ICs
3. BCs are all okay, (no slip at boundaries, zero pressure outlet, etc.)
3. Corrected the kinematic pressure values to Pascal for final comparison
5. Ran checkMesh to ensure there are no irregularities in the mesh. Everything is OK according to checkMesh

Suggestions on what other things I could try would be greatly appreciated.

All run files except for the mesh (too big, ~2M cells) are attached for reference.

Here is the last time in the log file with the residuals:

Code:
Time = 362

smoothSolver:  Solving for Ux, Initial residual = 0.00449619, Final residual = 0.000437133, No Iterations 2
smoothSolver:  Solving for Uy, Initial residual = 0.00438297, Final residual = 0.000422318, No Iterations 2
smoothSolver:  Solving for Uz, Initial residual = 0.00501302, Final residual = 0.00046774, No Iterations 2
GAMG:  Solving for p, Initial residual = 0.00122809, Final residual = 7.17839e-05, No Iterations 2
time step continuity errors : sum local = 0.000218834, global = -8.03457e-07, cumulative = -1.74794
smoothSolver:  Solving for epsilon, Initial residual = 0.0133315, Final residual = 0.00125709, No Iterations 2
smoothSolver:  Solving for k, Initial residual = 0.00878087, Final residual = 0.000864259, No Iterations 2
ExecutionTime = 497.16 s  ClockTime = 498 s

fieldValueDelta deltaTotalPressure_inOutlet write:
    subtract(areaIntegrate(inlet,p),areaIntegrate(outlet,p)) = 0.00114703


Many thanks in advance,

E.Lowry
Attached Files
File Type: zip finemesh2.zip (39.1 KB, 47 views)
elowfoam is offline   Reply With Quote

Old   September 8, 2019, 23:22
Default Pressure drop - simpleFoam
  #2
Member
 
Kirk Jarvis
Join Date: Mar 2009
Posts: 31
Rep Power: 17
kcjarvis56 is on a distinguished road
I tried your case with a simple pipe similar to what you describe, 0.0254 D x 0.254 L. For that length of pipe the drop was 0.44 m^2/s^2 by plotting p along the center line. To get the pressure drop in Pa multiply by the density of fluid (water) 983 kg/m^3 (@60 C) -> 433 kg/m * s^2 or Pa. Since the length of the pipe is 0.254 m, divide by this to determine the pressure drop for 1 m of pipe -> 1705 Pa/m. Attach is a screen shot for paraFoam.

Attached Images
File Type: png 0254Dx254LPipe.png (73.2 KB, 108 views)
kcjarvis56 is offline   Reply With Quote

Old   September 13, 2019, 12:15
Default
  #3
New Member
 
E. Lowry
Join Date: Sep 2019
Posts: 8
Rep Power: 7
elowfoam is on a distinguished road
kcjarvis56,

Thank you for running my case. It seems that it is indeed working as expected. I guess the way OpenFOAM calculates and displays dP in the log file was confusing. I know see that in order to get the dP, I need to divide the value printed in the log file by the cross-sectional area prior to multiplying by the density of the fluid.

Thanks again for your help
elowfoam is offline   Reply With Quote

Old   November 6, 2019, 12:46
Default
  #4
New Member
 
Frédéric MR
Join Date: Jun 2019
Posts: 18
Rep Power: 7
FM_Stiral is on a distinguished road
Quote:
Originally Posted by elowfoam View Post
kcjarvis56,

Thank you for running my case. It seems that it is indeed working as expected. I guess the way OpenFOAM calculates and displays dP in the log file was confusing. I know see that in order to get the dP, I need to divide the value printed in the log file by the cross-sectional area prior to multiplying by the density of the fluid.

Thanks again for your help

Hi,


No, you have to divide the result by the length of your pipe (not the cross section area) in order to have a pressure drop / linear meter And of course, you have to multiply it by the density of the fluid.


Fred.
dasa likes this.
FM_Stiral 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
Computed Pressure Drop is lower than experimental data Ash Kot FLUENT 2 May 17, 2017 10:41
lower pressure drop compared to experimental value in Two phase flow calculations. Ash Kot Fluent Multiphase 0 May 16, 2017 17:29
Pressure drop over throttle disappears (simpleFoam --> pipe simulation) highpressuretube OpenFOAM Running, Solving & CFD 18 December 21, 2016 13:07
How to plot pressure drop with Periodic BC? bigfans FLUENT 7 November 8, 2016 12:28
Pressure drop using Fan type BC Alexis Sack OpenFOAM Running, Solving & CFD 2 September 22, 2014 10:18


All times are GMT -4. The time now is 21:23.