evaluation of openfoam for cfd of turbulent flow in water ...hani/pdf_files/iahr2006.pdf ·...

9
Evaluation of OpenFOAM for CFD of turbulent flow in water turbines akan NILSSON Chalmers Univ. of Technology, oteborg, Sweden [email protected] Key words: CFD,Validation, Kaplan, Runner, Draft tube, Vortex rope, OpenFOAM Abstract The purpose of this study is to evaluate the newly distributed OpenFOAM (www.openfoam.org) OpenSource CFD tool for turbulent flow in water turbines. The aim is to validate the Open- FOAM results for cases that have also been computed with other CFD codes, as well as have been experimentally investigated. Comparisons are made both with numerical and experimental results. The first case studied is the steady flow in the H¨ olleforsen (Turbine-99) draft tube. The OpenFOAM result proved to be comparable with results from all the major CFD tools on the market according to the proceedings from the Turbine-99 III workshop in December 2005 (www.turbine-99.org). An unsteady computation of the flow in the same draft tube has also been made, yielding an unsteady vortex rope with a period of . All OpenFOAM draft tube results are similar to results obtained with CFX-5, and the results are close to the experimental results. The second case studied is the steady flow in the H¨ olleforsen runner. The computations have been performed both for a single runner blade passage using periodic boundaries, and for the full runner, yielding the same results. In all cases the tip clearance has been included and computations both with and without the runner blade clearance at the hub has been made. The computational results compare well with the experimental results. All the computations use wall-function grids and turbulence is modelled using the standard model. Introduction OpenFOAM (Open Field Operation and Manipulation, www.openfoam.org) was released as an OpenSource code in January 2005, and its available features are comparable to the major commercial CFD codes. Due to the distribution as an OpenSource code it is possible to gain control over the exact implementations of different features, which is essential in research work. It also makes development and tailoring of the code for the specific application possible. Many researchers throughout the world are using OpenFOAM, which allows international exchange of development. All codes must be validated for the specific field of research they will be used in. The present work validates the OpenFOAM CFD tool for turbulent flow in a Kaplan water turbine runner and draft tube. The results are compared both with numerical results and

Upload: others

Post on 13-May-2020

32 views

Category:

Documents


0 download

TRANSCRIPT

Page 1: Evaluation of OpenFOAM for CFD of turbulent flow in water ...hani/pdf_files/IAHR2006.pdf · experiments. The flow in the Holleforsen¨ Kaplan turbine model has been extensively

����� ��� ��� ������������� ���������������! ��" #�$&% ��'�(*)+��,�,�- .�/10�2

Evaluation of OpenFOAM for CFD of turbulent flow in

water turbines

Hakan NILSSON Chalmers Univ. of Technology,Goteborg, Sweden

[email protected]

Key words: CFD, Validation, Kaplan, Runner, Draft tube, Vortex rope, OpenFOAM

Abstract

The purpose of this study is to evaluate the newly distributed OpenFOAM (www.openfoam.org)OpenSource CFD tool for turbulent flow in water turbines. The aim is to validate the Open-FOAM results for cases that have also been computed with other CFD codes, as well as havebeen experimentally investigated. Comparisons are made both with numerical and experimentalresults.

The first case studied is the steady flow in the Holleforsen (Turbine-99) draft tube. TheOpenFOAM result proved to be comparable with results from all the major CFD tools onthe market according to the proceedings from the Turbine-99 III workshop in December 2005(www.turbine-99.org). An unsteady computation of the flow in the same draft tube has alsobeen made, yielding an unsteady vortex rope with a period of 35476�8�9 . All OpenFOAM draft tuberesults are similar to results obtained with CFX-5, and the results are close to the experimentalresults.

The second case studied is the steady flow in the Holleforsen runner. The computationshave been performed both for a single runner blade passage using periodic boundaries, and forthe full runner, yielding the same results. In all cases the tip clearance has been included andcomputations both with and without the runner blade clearance at the hub has been made. Thecomputational results compare well with the experimental results.

All the computations use wall-function grids and turbulence is modelled using the standard:<;>=model.

Introduction

OpenFOAM (Open Field Operation and Manipulation, www.openfoam.org) was released asan OpenSource code in January 2005, and its available features are comparable to the majorcommercial CFD codes. Due to the distribution as an OpenSource code it is possible to gaincontrol over the exact implementations of different features, which is essential in research work.It also makes development and tailoring of the code for the specific application possible. Manyresearchers throughout the world are using OpenFOAM, which allows international exchangeof development. All codes must be validated for the specific field of research they will beused in. The present work validates the OpenFOAM CFD tool for turbulent flow in a Kaplanwater turbine runner and draft tube. The results are compared both with numerical results and

Page 2: Evaluation of OpenFOAM for CFD of turbulent flow in water ...hani/pdf_files/IAHR2006.pdf · experiments. The flow in the Holleforsen¨ Kaplan turbine model has been extensively

����� ��� ��� ������������� ���������������! ��" #�$&% ��'�(*)+��,�,�- � /10�2

experiments.The flow in the Holleforsen Kaplan turbine model has been extensively investigated, both

experimentally and numerically, at the Turbine-99 workshops (www.turbine-99.org). The modelis located at Vattenfall Utveckling AB in Alvkarleby, Sweden. Detailed velocity and pressuremeasurements have been made by Andersson (Ref 1) at a number of measurement sections.These measurements are used both to set the boundary conditions for the draft tube computa-tions and to validate the computational results for both the runner and draft tube computations.The geometry and the measurement sections are shown in figure 1.

Z

R

Above the blade

Section Ia

Section Ib

Figure 1 Geometry and measurement sections. (pictures from the Turbine-99 workshopguidelines and from previous work)

In the present work the simpleFoam OpenFOAM application is used as a base. SimpleFoamis a steady-state solver for incompressible, turbulent flow of non-Newtonian fluids. It is a finitevolume solver using the SIMPLE algorithm for pressure-velocity coupling. New versions ofthe simpleFoam application has been developed in the present work, including Coriolis andcentrifugal terms and unsteady RANS. The computations have been run in parallel on 10-32CPU’s on a Linux cluster, using the automatic decomposition methods in OpenFOAM. Theversion number used for the present computations is OpenFOAM 1.2.

Page 3: Evaluation of OpenFOAM for CFD of turbulent flow in water ...hani/pdf_files/IAHR2006.pdf · experiments. The flow in the Holleforsen¨ Kaplan turbine model has been extensively

����� ��� ��� ������������� ���������������! ��" #�$&% ��'�(*)+��,�,�- � /10�2

The cases

The present work presents four different computations. Two of them are draft tube computa-tions and the other two are runner computations. The difference between the two draft tubecomputations is that one of them is a quasi-steady computation, while the other is an unsteadycomputation. The quasi-steady computation is a steady computation which has some unsteadyphysical effects, which will be described later. The difference between the runner computationsis the inclusion of the runner blade hub clearance.

All the computations are made for the Holleforsen Kaplan turbine model (Ref 3). Theoperating condition used for the present investigations corresponds to a 60% load, a head of6 4 ��� , and is close to the best efficiency for the system.

Boundary conditionsThe inlet boundary conditions for the draft tube computations were obtained from a linear in-terpolation of the measurements along a radial line at cross-section Ia (Ref 2). Those for therunner computations were obtained from separate guide vane computations (Ref 3). All theinlet boundary conditions in the present work are steady and axi-symmetric.

Wall-functions and rotating wall velocities were used at the walls, and at the outlet thehomogeneous Neumann boundary condition was used for all quantities. Recirculating flow wasthus allowed at the outlet. The turbulence quantities of the recirculating flow at the outlet areunknown, but to set a relevant turbulence level for the present case the back-flow values for

:and

=were assumed to be similar to the average of those quantities at the inlet. The background

of this assumption is that the turbulence level is high already at the inlet due to the wakes ofthe stay vanes, the guide vanes and the runner blades. It is thus assumed that the increase inturbulence level is small compared with that at the inlet. It is further believed that the chosenvalues are of minor importance to the overall flow.

The pressure is treated different than the velocity and turbulence quantities. At the inletand at the walls, the homogeneous Neumann boundary condition is used. At the outlet of thedraft tube a constant pressure is used and at the outlet of the runner the homogeneous Neumannboundary condition is used.

In the results section of the present paper the draft tube results are compared with CFX-5results (Ref 4) that were presented at the Turbine-99 workshop. Both computations followed theworkshop instructions regarding the boundary conditions. However, some boundary conditionswere left free for the contributors to decide upon. The major difference between the OpenFOAMand CFX-5 setup is the inlet boundary condition for

=.

GridsThe grid used for both the steady and unsteady draft tube computations is a pre-defined (Turbine-99) block-structured hexahedral wall-function grid with approximate first-node wall distancesof ����� � 3 and � 3 3 ������ 3 grid points. The final OpenFOAM results yielded first-node walldistances of ���������� � 3 with an approximate average of ������� 3 . The CFX-5 computationthat is used for the validation has used the same grid as that in the present work.

For the full runner computations in the present work block-structured hexahedral wall-function grids were used, consisting of approximately ����+3 3� 3 3 3 grid points.

Page 4: Evaluation of OpenFOAM for CFD of turbulent flow in water ...hani/pdf_files/IAHR2006.pdf · experiments. The flow in the Holleforsen¨ Kaplan turbine model has been extensively

����� ��� ��� ������������� ���������������! ��" #�$&% ��'�(*)+��,�,�- ��/10�2

Discretization schemesFor the convection divergence terms in the turbulence equations the Gamma discretizationscheme (Ref 5) was used. For the convection divergence terms in the velocity equations theGammaV scheme was used, which is an improved version of the Gamma scheme formulated totake into account the direction of the flow field. The Gamma scheme is a smooth and boundedblend between the second-order central differencing (CD) scheme and the first order upwinddifferencing (UD) scheme. CD is used wherever it satisfies the boundedness requirements, andwherever CD is unbounded UD is used. For numerical stability reasons, however, a smoothand continous blending between CD and UD is used as CD approaches unboundedness. Thesmooth transition between the CD and UD schemes is controlled by a blending coefficient

���,

which is chosen by the user. This coefficient should have a value in the range 3�4 � � ��� �� , thesmaller value the sharper switch and the larger value the smoother switch between the schemes.For good resolution, this value should be kept as low as possible, while higher values are morenumerically stable. In the present work a value of

��� � +4 3 has been used.

Computational results

In the next sections the present computational results are validated against measurements andcomputational results from CFX-5. The dimensionless coefficients used for the validation arefirst presented. The detailed validation is followed by a qualitative visualization of the computedflow.

It should be noted that it was not possible to get a steady solution for the draft tube (Ref2). OpenFOAM was unable to dampen the physical unsteadiness in the flow, i.e. neither thestandard

: ; =turbulence model nor the numerical schemes were diffusive enough to yield

a fully steady solution. It was found that the vortex rope was the reason for this behaviour.This means that the turbulence model and the discretization schemes are not overpredictingdiffusion, which is a strength of OpenFOAM. The quasi-steady results in the present paper arederived from the average of the results from the quasi-steady computations at all iterations forone period of the vortex rope revolution.

Further comparisons with the experimental results and computational results using othercodes are available in the Turbine-99 workshop proceedings (www.turbine-99.org).

Dimensionless coefficientsThe velocity coefficients, ��� , are the velocities normalized by � ��� , where � 354 � ��� ��� +9 isthe volume flow and ��� is the area of each cross-section ( ����� � 354 ����� ������ � 354 � � ��� ). Thetangential velocity component is positive when the flow is co-rotating with the runner, and theaxial velocity component is positive in the main flow direction.

The pressure coefficient, ��� , is the local static pressure divided by the dynamic pressure atsection Ia, �����! #" ��� �%$& � (' �#� ���� ) .

The mean pressure recovery is defined as

�*�,+ � �-.(/1032425.(/10 ��67� ; -.98;:�2<25.=8>: �?6&�

���@�A 1" ��� (1)

where ���@�A 1" �!� �B$& � =' �#� ��!� ) is the dynamic pressure at cross-section Ia.

Page 5: Evaluation of OpenFOAM for CFD of turbulent flow in water ...hani/pdf_files/IAHR2006.pdf · experiments. The flow in the Holleforsen¨ Kaplan turbine model has been extensively

����� ��� ��� ������������� ���������������! ��" #�$&% ��'�(*)+��,�,�- ��/10�2The energy loss coefficient is defined as

� �2 2 .98>:�� ��� $��� � �� ��������� 67���� 2 2 .98;: $ � � � ���������� 6&� ���

; 2 2 .=/#0�� ��� $�� � � ���� ������� 67���� 2<2 .=8>: $ � � � ���������� 67� ��� (2)

Integral quantitiesThe integral quantities described in eqs. 1 and 2 are here used to validate the quasi-steady drafttube computation. Figure 2 shows through-flow developments of the mean pressure recov-ery factor and energy loss coefficient. The cross-section integrals are computed for a numberof cross-sections perpendicular to the flow, while keeping the reference integral at section Iaconstant (Ref 2) (see figure 1). The figure shows that the integrated result from the presentcomputation is almost identical to the result from the CFX-5 computation (Ref 4).

The pressure coefficient at the upper and lower center lines (see figure 1) are compared withboth the experimental data and the CFX-5 computations in figure 2. The two computations arealmost identical, and they are close to the experimental results.

Velocity distributions at Ia and IbFigure 3 compares the velocity coefficient distributions at cross-sections Ia and Ib (see figure 1)with the experimental results. Figure 3(a) shows two different results from the measurementsat cross-section Ia. This gives an indication of the accuracy of the measurements. For the drafttube computations it was recommended (Turbine-99) to use the results corresponding to thered curves as inlet boundary condition. However, those curves don’t seem to give the correctbehaviour close to the hub. The blue curves show that the axial velocity has a local maximumclose to the hub, which is important for the development of the flow down to section Ib andthroughout the draft tube.

Figures 3(b) and (c) compare the computational results with the experimental results. Theblue curve corresponds to the quasi-steady draft tube computation while the red and blackcurves correspond to the runner computations with and without the runner blade hub clear-ance respectively. The draft tube results at section Ia are the actual boundary conditions for thatcomputation. It is shown that the runner blade hub clearance produces an increase in the axialvelocity close to the hub. This effect is very important for how well the separation at the hubis modelled. In figure 3(c) the runner computation with the runner blade hub clearance resem-bles the experimental results much better than the other results, which is an effect of the smallincrease in axial velocity at section Ia. The velocity distribution at section Ib is very importantfor flow development in the draft tube, and it is thus likely that the boundary condition for thedraft tube computation is inadequate.

For both runner computations the effect of the tip clearance flow can be seen as a localmaximum in the axial and tangential velocity profiles close to the shroud.

Flow visualizationFigure 4 shows some qualitative visualization for the runner computation with runner blade huband tip clearances, and the quasi-steady draft tube computation. The runner figure shows tipvortex streamlines, runner blade hub clearance streamlines, surface static pressure distributions

Page 6: Evaluation of OpenFOAM for CFD of turbulent flow in water ...hani/pdf_files/IAHR2006.pdf · experiments. The flow in the Holleforsen¨ Kaplan turbine model has been extensively

����� ��� ��� ������������� ���������������! ��" #�$&% ��'�(*)+��,�,�- - /10�2

0 0.1 0.2 0.3 0.4 0.5 0.6 0.7 0.8 0.9

1 1.1

Ib II III IVa

OpenFOAM

PSfrag replacements

��������

cfx-5

(a) Mean pressure recovery factor.

0 0.02 0.04 0.06 0.08 0.1

0.12 0.14 0.16 0.18 0.2

Ib II III IVa

OpenFOAMcfx-5

PSfrag replacements

cfx-5

� ��

OpenFOAM results

(b) Energy loss coefficient.

-0.20

0.00

0.20

0.40

0.60

0.80

1.00

1.20

0 0.5 1 1.5 2 2.5 3 3.5 4

Distance [m]

elbowOpenFOAM

cfx-5experiments

PSfrag replacements

cfx-5

��

(c) �� at upper centerline

-0.20

0.00

0.20

0.40

0.60

0.80

1.00

1.20

0 0.5 1 1.5 2 2.5 3 3.5 4 4.5 5

Distance [m]

elbow

corner

OpenFOAMcfx-5

experiments

PSfrag replacements

cfx-5

��

(d) �� at lower centerline

Figure 2 Computed integral quantities between section Ia and the end of the draft tube (a& b), and pressure coefficient distributions along the upper and lower centerlines (c & d).

and an iso-surface of the lowest static pressure region. The streamlines are emitted from vorticalregions that are determined by the � � method (Ref 6). The lowest static pressure correspondsto where cavitation has been observed for the present runner (Ref 7). Figure 5 shows zoom-upsof the runner visualization in figure 4.

Figure 6 shows results from the unsteady draft tube computation. The left figure shows asnap-shot of the velocity vectors at the centerline cross-section colored by the static pressure.It is obvious from these vectors that there is an unsteady vortex rope below the hub. The rightfigure shows a snap-shot of the unsteady core of the vortex rope beneath the hub. The vortexcore is visualized using the � � method. The computed vortex rope has a rotational periodicityof 354 6 8�9 , which is similar to that obtained with CFX-5 (Ref 4).

Page 7: Evaluation of OpenFOAM for CFD of turbulent flow in water ...hani/pdf_files/IAHR2006.pdf · experiments. The flow in the Holleforsen¨ Kaplan turbine model has been extensively

����� ��� ��� ������������� ���������������! ��" #�$&% ��'�(*)+��,�,�- � /10�2

0 0.2 0.4 0.6 0.8 10

0.5

1

1.5

2

PSfrag replacements

Hub (0) to shroud (1)

���

(a) Two measurements at Ia.

0 0.2 0.4 0.6 0.8 10

0.5

1

1.5

2

PSfrag replacements

Hub (0) to shroud (1)

Hub (0) to shroud (1)

� �

(b) Section Ia.

0 0.2 0.4 0.6 0.8 1−0.5

0

0.5

1

1.5

PSfrag replacements

Hub (0) to shroud (1)

Hub (0) to shroud (1)

Hub (0) to shroud (1)

��

(c) Section Ib.

Figure 3 Velocity coefficient distributions. Solid lines: axial velocity. Dash-dotted lines:tangential velocity. Markers: measurements. In (a) the colors correspond to two differentmeasurements. In (b) and (c): Blue curve: quasi-steady draft tube, Black curve: runnerwithout hub clearance, Red curve: runner with hub clearance.

(a) The H olleforsen runner. Streamlines emit-ted from vortical regions. Iso-surface of lowstatic pressure.

(b) The H olleforsen draft tube. Vortex rope and the re-circulation in the sharp heel.

Figure 4 The Holleforsen turbine model and qualitative visualization of some of the results.Surfaces and streamlines are colored by the static pressure.

Page 8: Evaluation of OpenFOAM for CFD of turbulent flow in water ...hani/pdf_files/IAHR2006.pdf · experiments. The flow in the Holleforsen¨ Kaplan turbine model has been extensively

����� ��� ��� ������������� ���������������! ��" #�$&% ��'�(*)+��,�,�- � /10�2

Figure 5 Tip vortex streamlines and iso-surface of low static pressure (left), and hub clear-ance streamlines (right)

Figure 6 Instantaneous velocity vectors (left) and vortex core ( � � , right) visualizations.

Conclusions

The vortex rope made steady computations of the flow in the draft tube impossible, but thequasi-steady results obtained from an average of the steady computations over the iterationscompare well with both the experiments and computational results using CFX-5 (Ref 4). Theunsteady draft tube computation yields a rotating vortex rope with a period of 0.48s.

The steady runner computations compare well with the experimental results at sections Iaand Ib. It is found that the inclusion of the runner blade hub clearance is important for thecorrect flow to develop downstream the runner and in the draft tube.

One of the aims of this work was to evaluate the OpenFOAM CFD tool for hydraulic turbinecomputations. The outcome of this evaluation is that OpenFOAM is able to generate good com-putational results in an efficient way. Further, the free OpenFOAM common platform facilitatesinternational collaboration.

Page 9: Evaluation of OpenFOAM for CFD of turbulent flow in water ...hani/pdf_files/IAHR2006.pdf · experiments. The flow in the Holleforsen¨ Kaplan turbine model has been extensively

����� ��� ��� ������������� ���������������! ��" #�$&% ��'�(*)+��,�,�- 0 /10�2

Acknowledgements

Dr. Niklas Nordin and Dr. Hrvoje Jasak are greatfully acknowledged for their help with Open-FOAM usage. The developers of OpenFOAM are greatfully acknowledged for sharing theirhigh quality tool with the CFD community. Maryse Page is greatfully acknowledged for herhelp with some of the post-processing, and for making the CFX-5 results available. The turbine-99 organizers are greatfully acknowledged for making the experimental results available.

This work is part of SVC (Svenskt Vattenkraftcentrum / Swedish Water Power Center,www.svc.nu). SVC is financed and supported by the swedish Hydro Power companies (Vat-tenfall AB Vattenkraft, Fortum Generation AB, Sydkraft Vattenkraft AB, Skelleftea Kraft AB,Graninge Kraft AB, Jamtkraft AB, Sollefteaforsens AB, Karlstads Energi AB, Gavle EnergiAB and Oresundskraft AB, through Elforsk AB: Swedish Electrical Utilities Research and De-velopment Company), the Swedish National Energy Administration, GE Energy (Sweden) ABand Waplans mekaniska verkstad AB.

*Reference

Ref 1 U. Andersson. Turbine 99 - Experiments on draft tube flow (test case T). In Proceedings fromTurbine 99 - Workshop on Draft Tube Flow, 2000, ISSN: 1402 - 1536.

Ref 2 H. Nilsson and M. Page. Openfoam simulation of the flow in the h olleforsen draft tube model.In Proceedings from Turbine-99 III, 2005.

Ref 3 H. Nilsson and L. Davidson. A numerical investigation of the flow in the wicket gate and runnerof the H olleforsen (Turbine 99) Kaplan turbine model. In Proceedings from Turbine 99 II, 2001.

Ref 4 M. Page, A-M Giroux, and J. Nicolle. Steady and unsteady computations of turbine99 draft tube.In Proceedings from Turbine-99 III, 2005.

Ref 5 H. Jasak, H.G. Weller, and A.D. Gosman. High resolution NVD differencing scheme for arbitrar-ily unstructured meshes. Int. J. Numer. Meth. Fluids, 31:431–449, 1999.

Ref 6 H. Nilsson. A Numerical Investigation of the Turbulent Flow in a Kaplan Water Turbine Runner.Thesis for the degree of Licentiate of Engineering 99/5, Dept. of Thermo and Fluid Dynamics,Chalmers University of Technology, Gothenburg, 1999.

Ref 7 H. Nilsson. Numerical Investigations of Turbulent Flow in Water Turbines. Thesis for the degreeof Doctor of Philosophy, ISBN 91-7291-187-5, Dept. of Thermo and Fluid Dynamics, ChalmersUniversity of Technology, Gothenburg, 2002.