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

Pressure drop over throttle disappears (simpleFoam --> pipe simulation)

Register Blogs Community New Posts Updated Threads Search

Like Tree4Likes
  • 2 Post By arvindpj
  • 2 Post By philippose

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   November 11, 2016, 04:26
Default Pressure drop over throttle disappears (simpleFoam --> pipe simulation)
  #1
New Member
 
Katrin
Join Date: Jul 2016
Posts: 18
Rep Power: 10
highpressuretube is on a distinguished road
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
Attached Images
File Type: png RE30to30000.png (45.1 KB, 45 views)
File Type: png RE30.png (12.7 KB, 57 views)
File Type: png RE300.png (13.1 KB, 41 views)
File Type: png RE3000.png (12.8 KB, 42 views)
File Type: png RE30000.png (13.0 KB, 54 views)
highpressuretube is offline   Reply With Quote

Old   November 14, 2016, 14:07
Default
  #2
Senior Member
 
Mahdi Hosseinali
Join Date: Apr 2009
Location: NB, Canada
Posts: 273
Rep Power: 18
anishtain4 is on a distinguished road
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!
anishtain4 is offline   Reply With Quote

Old   November 29, 2016, 10:28
Default
  #3
New Member
 
Katrin
Join Date: Jul 2016
Posts: 18
Rep Power: 10
highpressuretube is on a distinguished road
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?
highpressuretube is offline   Reply With Quote

Old   December 6, 2016, 07:58
Default
  #4
New Member
 
Katrin
Join Date: Jul 2016
Posts: 18
Rep Power: 10
highpressuretube is on a distinguished road
I have plotted k and epsilon trying to find indications as to where is the error. Any ideas?
Attached Images
File Type: png k_rare.png (18.6 KB, 21 views)
File Type: png epsrare.png (19.0 KB, 22 views)
highpressuretube is offline   Reply With Quote

Old   December 6, 2016, 18:04
Default
  #5
Member
 
Arvind Jay
Join Date: Sep 2012
Posts: 97
Rep Power: 15
arvindpj is on a distinguished road
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.
arvindpj is offline   Reply With Quote

Old   December 7, 2016, 04:08
Default
  #6
New Member
 
Katrin
Join Date: Jul 2016
Posts: 18
Rep Power: 10
highpressuretube is on a distinguished road
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
highpressuretube is offline   Reply With Quote

Old   December 7, 2016, 10:12
Default
  #7
Member
 
Arvind Jay
Join Date: Sep 2012
Posts: 97
Rep Power: 15
arvindpj is on a distinguished road
Quote:
Originally Posted by highpressuretube View Post
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
Also, in SimpleFoam pressure at the inlet is relative to the outlet. You can set the outlet pressure to fixedValue = 0 and see the DelP at the intlet. What are your inlet and outlet BCs?
arvindpj is offline   Reply With Quote

Old   December 8, 2016, 04:28
Default
  #8
New Member
 
Katrin
Join Date: Jul 2016
Posts: 18
Rep Power: 10
highpressuretube is on a distinguished road
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;
}
}
U File:
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;
}
}
Any rare assumptions there?
highpressuretube is offline   Reply With Quote

Old   December 8, 2016, 10:47
Default
  #9
Member
 
Arvind Jay
Join Date: Sep 2012
Posts: 97
Rep Power: 15
arvindpj is on a distinguished road
BCs look ok. You could try symmetry instead of cyclic, but this should not affect the results.

Final question, has the solution converged?
arvindpj is offline   Reply With Quote

Old   December 9, 2016, 04:04
Default
  #10
New Member
 
Katrin
Join Date: Jul 2016
Posts: 18
Rep Power: 10
highpressuretube is on a distinguished road
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;
    }
}
I am not sure that I understood correctly how tolerance and reltol are connected to the residuals graph because the latter never drops below 0.0001.

Thanks for all your input,
highpressuretube
Attached Images
File Type: png RE30to30000.png (45.1 KB, 8 views)
highpressuretube is offline   Reply With Quote

Old   December 16, 2016, 04:23
Default
  #11
New Member
 
Katrin
Join Date: Jul 2016
Posts: 18
Rep Power: 10
highpressuretube is on a distinguished road
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.
Attached Images
File Type: png Residual_p1250.png (48.5 KB, 17 views)
highpressuretube is offline   Reply With Quote

Old   December 16, 2016, 09:20
Default
  #12
Member
 
Geir Karlsen
Join Date: Nov 2013
Location: Norway
Posts: 59
Rep Power: 14
gkarlsen is on a distinguished road
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
gkarlsen is offline   Reply With Quote

Old   December 16, 2016, 09:59
Default
  #13
New Member
 
Katrin
Join Date: Jul 2016
Posts: 18
Rep Power: 10
highpressuretube is on a distinguished road
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.
highpressuretube is offline   Reply With Quote

Old   December 16, 2016, 10:54
Default could you upload?
  #14
Member
 
Arvind Jay
Join Date: Sep 2012
Posts: 97
Rep Power: 15
arvindpj is on a distinguished road
Could you share the blockMeshDict, let me try running this case and check.
arvindpj is offline   Reply With Quote

Old   December 19, 2016, 05:42
Default
  #15
New Member
 
Katrin
Join Date: Jul 2016
Posts: 18
Rep Power: 10
highpressuretube is on a distinguished road
Of course, that would be too kind of you.
Attached Files
File Type: txt blockMeshDict.txt (7.2 KB, 4 views)
highpressuretube is offline   Reply With Quote

Old   December 19, 2016, 16:53
Default
  #16
Member
 
Arvind Jay
Join Date: Sep 2012
Posts: 97
Rep Power: 15
arvindpj is on a distinguished road
Quote:
Originally Posted by highpressuretube View Post
Of course, that would be too kind of you.
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
And you can still take account of mesh non-orthogonality by increasing the nNonOrthogonalCorrectors to 2 in the fvSolution.

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))
                            );
    }
As expected, I do see a pressure drop for Re=30000. Attached is the pressure variation along the axis.

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!
Attached Images
File Type: jpg HiRe_P.jpg (34.3 KB, 15 views)
File Type: jpg HighRe_Paxis.jpg (56.1 KB, 9 views)
File Type: jpg LowRe_P.jpg (33.8 KB, 12 views)
File Type: jpg LowRe_Paxis.jpg (56.6 KB, 10 views)
franjo_j and highpressuretube like this.
arvindpj is offline   Reply With Quote

Old   December 20, 2016, 04:55
Default
  #17
Senior Member
 
Philippose Rajan
Join Date: Mar 2009
Location: Germany
Posts: 552
Rep Power: 25
philippose will become famous soon enough
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
arvindpj and highpressuretube like this.
philippose is offline   Reply With Quote

Old   December 21, 2016, 03:51
Default
  #18
New Member
 
Katrin
Join Date: Jul 2016
Posts: 18
Rep Power: 10
highpressuretube is on a distinguished road
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
Attached Images
File Type: png Re30000_res.png (30.1 KB, 5 views)
File Type: png Re30000_p.png (10.3 KB, 8 views)
highpressuretube is offline   Reply With Quote

Old   December 21, 2016, 13:07
Default
  #19
Member
 
Arvind Jay
Join Date: Sep 2012
Posts: 97
Rep Power: 15
arvindpj is on a distinguished road
Attached are the set-ups.
Cheers:
Attached Files
File Type: gz re_30000_noWF.tar.gz (4.9 KB, 5 views)
File Type: gz re_30000_WF.tar.gz (2.7 KB, 5 views)
arvindpj 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
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


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