|
[Sponsors] |
Pressure drop over throttle disappears (simpleFoam --> pipe simulation) |
|
LinkBack | Thread Tools | Search this Thread | Display Modes |
November 11, 2016, 04:26 |
Pressure drop over throttle disappears (simpleFoam --> pipe simulation)
|
#1 |
New Member
Katrin
Join Date: Jul 2016
Posts: 18
Rep Power: 10 |
Dear all,
I am still having troubles simulating a throttle. I have gone from Salome tetraeder elements to blockmesh hex 2D, than blockmesh hex 3D. Meshcheck says ok, yplus goes up to 60 but I read for k-epsilon modellisation 30-60 should still be ok. But still: The expected pressure drop disappears! In order to reach reasonably fast convergence I started with low RE model and augmented the reynolds number by increasing the kinematic viscosity after reaching convergence until I got to the measured viscosity I have from experiments. (Thats where the bumps in the residual plot come from, each time viscosity is multiplicated by factor 10). As long as RE is indicating laminar flow, behaviour is as expected. When it comes to highly turbulent flow, I don't understand what happens. Especially since measurements indicate an expected specific pressure drop of 3000 m^2/s^2 and not zero. :-( I am out of ideas. Please help me understand. Best regards, highpressuretube |
|
November 14, 2016, 14:07 |
|
#2 |
Senior Member
Mahdi Hosseinali
Join Date: Apr 2009
Location: NB, Canada
Posts: 273
Rep Power: 18 |
What kind of turbulence model are you using? what is the wall model? Are you using turbulence model for the laminar cases too?
What do you mean by "Augmented the reynolds number by increasing the kinematic viscosity"? Increasing viscosity decreases the reynolds number! |
|
November 29, 2016, 10:28 |
|
#3 |
New Member
Katrin
Join Date: Jul 2016
Posts: 18
Rep Power: 10 |
Sorry for the late answer - was on vacation :-) But unfortunately the problem didn't disappear yet.
So turbulence model is k-epsilon. I use turbulence model for the laminar case too an the result are similar to laminar model only. The confusion about augmenting viscosity was because I augmented the power of the negative exponent from 2.255x10E-2 to 2.255x10E-6 so of course I was decreasing viscosity. All plausible there. What exactly do you mean by what is the wall model? |
|
December 6, 2016, 07:58 |
|
#4 |
New Member
Katrin
Join Date: Jul 2016
Posts: 18
Rep Power: 10 |
I have plotted k and epsilon trying to find indications as to where is the error. Any ideas?
|
|
December 6, 2016, 18:04 |
|
#5 |
Member
Arvind Jay
Join Date: Sep 2012
Posts: 97
Rep Power: 15 |
In simple foam, the pressure is divided by density. Use the same scales for all 4 cases. I do see pressure drop in the Re=30000 case as well.
|
|
December 7, 2016, 04:08 |
|
#6 |
New Member
Katrin
Join Date: Jul 2016
Posts: 18
Rep Power: 10 |
But how can I have zero pressure at the inlet?
I enter with 9,4314m/s at the inlet, which should correspond to about 4l/min because of inlet diameter 3mm, right? At 4l/min we measured a pressure drop of around 24bars between simulated inlet and outlet. With density of 823g/cm^3, I calculate an expected pressure drop of just about 2950, don't I? This is nothing close to what I see in the calculation, where inlet pressure, thus delta pressure is zero. Regards, highpressuretube |
|
December 7, 2016, 10:12 |
|
#7 | |
Member
Arvind Jay
Join Date: Sep 2012
Posts: 97
Rep Power: 15 |
Quote:
|
||
December 8, 2016, 04:28 |
|
#8 |
New Member
Katrin
Join Date: Jul 2016
Posts: 18
Rep Power: 10 |
Well, certainly inlet pressure is relative, but the last picture with RE = 30.000 shows: dP = P_outlet - P_inlet = 0 - 0 = 0. So no pressure drop over throttle there.
Anyway my bcs: p File: Code:
dimensions [0 2 -2 0 0 0 0]; internalField uniform 0; boundaryField { inlet { type zeroGradient; } outlet { type fixedValue; value uniform 0; } walls { type zeroGradient; } side1 { type cyclic; neighbourPatch side2; } side2 { type cyclic; neighbourPatch side1; } } Code:
dimensions [0 1 -1 0 0 0 0]; internalField uniform (0 0 0); boundaryField { inlet { type fixedValue; value uniform (9.4314 0.000000 0.000000); } outlet { type inletOutlet; inletValue uniform (0. 0. 0.); value uniform (0. 0. 0.); } walls { type fixedValue; value uniform (0. 0. 0.); } side1 { type cyclic; neighbourPatch side2; } side2 { type cyclic; neighbourPatch side1; } } |
|
December 8, 2016, 10:47 |
|
#9 |
Member
Arvind Jay
Join Date: Sep 2012
Posts: 97
Rep Power: 15 |
BCs look ok. You could try symmetry instead of cyclic, but this should not affect the results.
Final question, has the solution converged? |
|
December 9, 2016, 04:04 |
|
#10 |
New Member
Katrin
Join Date: Jul 2016
Posts: 18
Rep Power: 10 |
I already tried symmetry instead of cyclic. As you suggest no difference there.
When it comes to convergence, looking at the residuals graph you might be right that the last jump to Re 30000 could run a little longer. I set it up with the default values from the pipe cyclic example. What would I need to change to run longer? The final tol, the relative tol or both? Code:
solvers { p { solver PCG;//GAMG; smoother GaussSeidel; preconditioner DIC; tolerance 1e-06; relTol 0.05; } pFinal { $p; tolerance 1e-06; relTol 0; } "(U|k|epsilon)" { solver PBiCG;//smoothSolver; preconditioner DILU; smoother symGaussSeidel; tolerance 1e-05; relTol 0.1; } "(U|k|epsilon)Final" { $U; tolerance 1e-05; relTol 0; } Phi { solver GAMG; smoother DIC; tolerance 1e-06; relTol 0.01; } } Thanks for all your input, highpressuretube |
|
December 16, 2016, 04:23 |
|
#11 |
New Member
Katrin
Join Date: Jul 2016
Posts: 18
Rep Power: 10 |
I looked closer into convergence and ran the first Re=30 for significantly longer.
Can anyone give me his opinion to the residuals graph. It looks locally diverging but it not getting any better by letting it run longer. So i would stop at 1250 iterations. Besides that the calculation already run overnight so the calculation cost are already way to high to get there. |
|
December 16, 2016, 09:20 |
|
#12 |
Member
Geir Karlsen
Join Date: Nov 2013
Location: Norway
Posts: 59
Rep Power: 14 |
Let me see if I understood your work correctly: You are running a simulation with constant velocity, and with lower and lower viscosity. You are observing lower and lower differential pressure. Qualitatively that would appear to make perfect sense, no?
The actual pressure gradient between inlet and outlet is much smaller than you expect/measure. My first guess would be that the dimensions of your geometry are messed up (e.g. the classic mm to m). Could that be it? Kind regards, Geir |
|
December 16, 2016, 09:59 |
|
#13 |
New Member
Katrin
Join Date: Jul 2016
Posts: 18
Rep Power: 10 |
Qualitatively it makes perfect sense, apart from dP = 0 for RE = 30.000. It should become smaller but it looks like reversal in the picture and that together with the difference to the measurements got me confused.
I specified the blockmeshdict in mm with parameter convertToMeters 0.001 at the beginning and gave the flow in m/s. Should be ok there. |
|
December 16, 2016, 10:54 |
could you upload?
|
#14 |
Member
Arvind Jay
Join Date: Sep 2012
Posts: 97
Rep Power: 15 |
Could you share the blockMeshDict, let me try running this case and check.
|
|
December 19, 2016, 05:42 |
|
#15 |
New Member
Katrin
Join Date: Jul 2016
Posts: 18
Rep Power: 10 |
Of course, that would be too kind of you.
|
|
December 19, 2016, 16:53 |
|
#16 |
Member
Arvind Jay
Join Date: Sep 2012
Posts: 97
Rep Power: 15 |
The blockMeshDict looks OK; except few cells exceeding the non-orthogonality criterion of 75 degs. You can look those up by checking the mesh quality by running:
Code:
checkMesh -constant -allTopology Also, instead of decreasing the kinematic viscosity to increase the Reynold number, for better stability, I used a ramped inlet b.c for velocity as below: Code:
inlet { type uniformFixedValue; uniformValue table ( (0 (0 0 0)) (100 (1 0 0)) ); } If you are just studying the pressure drop, you could make use of coarser mesh with wall functions. This could save precious computational resources. I am also attaching the pressure predictions for wall functions approach as well. With proper grid refinement study, you could get a better estimate of pressure drop with far less computational cost. As a final thought, you could use cfMesh to generated good hex-dominant mesh in no time. Cheers! |
|
December 20, 2016, 04:55 |
|
#17 |
Senior Member
Philippose Rajan
Join Date: Mar 2009
Location: Germany
Posts: 552
Rep Power: 25 |
Hello Katrin,
A Good day to you. I just looked through the issue you have had, and also ran a quick simulation setup using your blockmesh file. Here are some comments and suggestions...: 1. For such wall bounded flows, I have had much better and consistent results (over the last 10 years) using the k-Omega SST turbulence model along with the nutUSpaldingWallFunction in the "nut" file for the walls. I strongly suggest you move from k-Epsilon to k-Omega SST + nutUSpaldingWallFunction 2. Use and "inletOutlet" condition for the k and Omega boundary conditions for the outlet and set the "inletValue" to be equal to the internalField value (as initialisation) 3. In this particular case (non-orthogonal cells) use "2" non-orthogonal correctors 4. You could do with a much more coarser mesh in all the other areas of your mesh except for the region of the narrow pipe. Using the settings given above along with "GAMG" for pressure and "smoothSolver" for all the other variables, I am getting very good results even by around 500 iterations (not converged yet though... may need to go up to around 800 - 1000 iterations) delta-Pressure is around 3100 (at around 500 iterations... not yet converged), and the velocity and pressure fields look good. Wish you a good day ahead. Regards, Philippose |
|
December 21, 2016, 03:51 |
|
#18 |
New Member
Katrin
Join Date: Jul 2016
Posts: 18
Rep Power: 10 |
Hallo Phillipose,
thanks for the hints. 3100 delta pressure is exactly what I would expect from the measurements. I will thus try to implement your input over xmas break and see where it takes me. The dissappeared delta pressure seems indeed to be lack of convergence. Why do I say that? Because I implemented Arvindpj's suggestions of using a table instead of ramping the viscosity and set the nonOrthogonalCorrectors to 2. The result: delta pressure came back, though not the measured 3100 but I got rather stuck with more than 10.000. I wonder how you reached 34Pa arvindpj? Could you share your solver choice and how you calculatet the 34Pa, too? Or did you set a totalPressure boundary? Well lots of thoughts to try, thanks sooooo much for the input and I will get back when I have new results. Have a very nice xmas and a happy new year. (I will be with my computer but offline for the break.) highpressuretube |
|
December 21, 2016, 13:07 |
|
#19 |
Member
Arvind Jay
Join Date: Sep 2012
Posts: 97
Rep Power: 15 |
Attached are the set-ups.
Cheers: |
|
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
Wind tunnel Boundary Conditions in Fluent | metmet | FLUENT | 6 | October 30, 2019 13:23 |
simpleFoam - pressure (coefficient) of head shape | GJM1991 | OpenFOAM Running, Solving & CFD | 4 | May 12, 2015 18:15 |
sonicFoam - pressure driven pipe: flow continuity violation and waveTransmissive BC | Endel | OpenFOAM Running, Solving & CFD | 3 | September 11, 2014 17:29 |
Pipe Flow - Pressure Drop | Daniel L | FLOW-3D | 2 | December 10, 2010 05:23 |
Hydrostatic pressure in 2-phase flow modeling (long) | DS & HB | Main CFD Forum | 0 | January 8, 2000 16:00 |