CFD Online Discussion Forums

CFD Online Discussion Forums (https://www.cfd-online.com/Forums/)
-   OpenFOAM Running, Solving & CFD (https://www.cfd-online.com/Forums/openfoam-solving/)
-   -   Pressure drop - simpleFoam (https://www.cfd-online.com/Forums/openfoam-solving/220424-pressure-drop-simplefoam.html)

elowfoam September 6, 2019 11:34

Pressure drop - simpleFoam
 
1 Attachment(s)
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

kcjarvis56 September 8, 2019 22:22

Pressure drop - simpleFoam
 
1 Attachment(s)
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.

https://www.dropbox.com/s/ggoo45qa8d...Dx254LPipe.png

elowfoam September 13, 2019 11:15

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

FM_Stiral November 6, 2019 11:46

Quote:

Originally Posted by elowfoam (Post 744650)
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.


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