• Ei tuloksia

As we can see from the turbulent boundary layer equations that the Reynolds stresses term due to it’s very complex nature makes the equations extremely difficult to solve. It is not possible to use the direct numerical simulations in turbulent case. The governing equations for turbulent fluid flow are solved with a numerical technique called Large Eddy Simulation LES.

It has been studied experimentally that the LES requires less computational time then the methods solving Reynolds Averaged Navier Stokes equations. In most of the cases, LES is more computationall expensive and for that reason turbulent modelling is required.

The Navier-Stokes equations are modelled using eddy viscosity and the models are more formally known as κ-epsilon model, κ-omega model, Reynolds stress equation model and Algebraic stress equation models [4]. The above turbulent models can be solved numerically using extremely powerful and efficient softwares like FLUENT, ANSYS, etc.

6 CFD Simulation: FLUENT

FLUENT is one of the most advanced and highly used commercial tool available in CFD.

Today thousands of industries and companies are using this powerful software. It has been very useful in simulating fluid flows, turbulence, heat and mass transfer, multiphase flows and many more. In this chapter we try to quote the basic understanding about the software, for example different steps like preprocessing to postprocessing? We then finally consider a case example in FLUENT which is the heart of the thesis.

6.1 FLUENT

The first version of FLUENT was launched in 1983 and since then it has conquered the market with advancing use for the need to make simulations of complex fluid flow pro-cesses.

It’s application is wide enough to cover major areas of CFD including multiphase systems and aeroacoustics. In case of laminar flow, it has an excellent model of Navier-Stokes equations and energy equation. In case of turbulence, it provides a wide range of models such asκ-epsilon model,κ-omega model and the Reynolds stress model. With the inclu-sion of the above models it covers large eddy simulations. In addition to the above models, it also contains a wide range of models for flow acoustics, multiphase flow, several chem-ically reacting flows, radiation heat transfer and many more. Hence it is a complete tool to solve any type of fluid flow problem. Inspite of it’s so many useful features, FLUENT is an extremely user friendly software. It is based on the Finite Volume Method and is computationally fast.

It’s postprocessing tools are also very advanced and easy to understand. The graphics and animations make the user more friendly to the software. It makes good report on the CFD results and the results can be exported to another environment to make further analysis5.

5http://www.fluent.com/software/fluent/index.htm 5 Aug 2007

6.2 Preprocessing to Postprocessing Steps in FLUENT

Obtaining a solution in FLUENT is a step by step process. FLUENT is basically a pro-cessing and postpropro-cessing software. GAMBIT is the preprocessor tool of FLUENT for creation of geometry and mesh.

GAMBIT is very advanced and user friendly software. It’s application ranges from simple rectangle to any complex 3-D geometry. In GAMBIT, the user has to create the model with accurate scaling and dimension. A small error made here can make a big change in the FLUENT results. The user can edit in the software at any time during creation of geometry. Any type of geometry can be created in it and due to complexity of geometry it also provides several options for mesh generation.

Here we will take an example which we are including in the thesis. We are considering the fluid flow in pipes with the assumption of the constant wall temperature. The geometry can be considered as 2-D with diameter of0.05m and length1 m. The nodes and the edges look like as shown in following Figure 6.1.

Figure 6.1: Geometry of pipe in GAMBIT.

After creating geometry our next step is to create a mesh. We will create the mesh on the edges and then in the face. The wall of the pipe will have uniform mesh and inlet and outlet will have denser mesh near the wall in order to have an effect of boundary layer.

and walls, the next step is to save the geometry created as filename.msh and export it to FLUENT.

FLUENT is now the processor and postprocessor for the geometry created in GAMBIT.

After reading the case file in FLUENT, we check the grid in display menu. The mesh grid is shown in Figure 6.2.

Grid

FLUENT 6.3 (2d, pbns, ske) Aug 21, 2007

Figure 6.2: Mesh grid in FLUENT.

In the define menu, we input the main parameters of FLUENT like defining the model, material properties and setting up the boundary conditions. After the appropriate values of variables inserted, the next step is to solve the governing fluid flow equations. The solve menu uses the governing equation in appropriate model selected. In solve menu, we initialize the solution and allow it to solve the equations for number of iterations predecided. When the solution is converged, the user can save the current solution in the file menu. The user can visualize the solution using the display and plot menu. The display menu shows the contours of the field variables and the plot menu shows the corresponding graphical results of the useful variables.

6.3 Case Example in Fluent

In the previous section we have seen different steps to obtain results using FLUENT. We will now consider the case example in FLUENT. After creation of geometry and mesh in GAMBIT, we try to simulate our case example for laminar case and then turbulent case.

We read the filename.cas file in the file menu. File→Read→Case

• We select the appropriate model solver. Since we are dealing with incompressible flow, the pressure based implicit solver is preffered. We choose the steady state option in 2-D case. Define→Models→Solver

• In the Define menu, we select the option to solve the energy equation. Define → Models→Energy. We will consider the laminar case given by, Define→Models

→Viscous→Laminar

• The next step is to select the material. Since our fluid is water we select it from the database. Define→Materials

• We then insert the most important set of parameters, i.e. Boundary Conditions.

The boundary condition is to be inserted everywhere when creating the geometry in GAMBIT. Define→Boundary Conditions

• We then move in the next menu for solving the governing equations in the model selected. It gives the option for imposing the different discretization schemes in the numerics. Solve→Controls→Solution

• The next step is to initialize the solution process by choosing the starting boundary for solution. The solution will not start the iteration process until it is initialized.

Solve→Initialize

• We then input the residuals for the solution to converge and making the plot option on to visualize the converging process. Solve→Monitors→Residual. In the end the number of iterations, Solve→Iterate

The converged residual solution for the laminar case is shown below in Figure 6.3. All the steps for visualizing different solution contours and variables are done after this step.

Scaled Residuals

FLUENT 6.3 (2d, pbns, lam) Aug 16, 2007

Figure 6.3: Converged solution for laminar case.

After the solution has been converged, we visualize the contours of velocity and temper-ature in our domain as shown in Figure 6.4.

Contours of Velocity Magnitude (m/s)

FLUENT 6.3 (2d, pbns, lam)Aug 16, 2007 1.05e-03

Contours of Static Temperature (k)

FLUENT 6.3 (2d, pbns, lam)Aug 17, 2007 3.63e+02

Figure 6.4: Contours of velocity and temperature for laminar case.

As we can see the velocity profile is parabolic in nature which matches to our exact solution in section (4.3). We are now interested in plotting the different variables as function of position. The shear stress and friction coefficient on the wall are shown in Figure 6.5.

Wall Shear Stress

FLUENT 6.3 (2d, pbns, lam)Aug 16, 2007

Position (m) (pascal)StressShearWall

1

FLUENT 6.3 (2d, pbns, lam)Aug 16, 2007

Position (m)

Figure 6.5: Plot of shear stress and friction coefficient for laminar case.

We then consider the plots of heat flux and heat transfer coefficient in laminar case as shown in Figure 6.6.

Total Surface Heat Flux

FLUENT 6.3 (2d, pbns, lam) Aug 16, 2007

Surface Heat Transfer Coef.

FLUENT 6.3 (2d, pbns, lam) Aug 16, 2007

Position (m) (w/m2-k)TransferSurfaceCoef.Heat

1

Figure 6.6: Plot of heat flux and heat transfer coefficient for laminar case.

We have seen the required results in FLUENT for the laminar case and now we shall move towards the turbulent case. The FLUENT steps are exactly the same as that of laminar case except those when determining the model. FLUENT has large variety of models for turbulent flows. We shall use the most standardκ-epsilon model. Define →Models

→ Viscous. After performing the same steps as in laminar case to solve the governing equations we look at the converged solution for the turbulent case as shown in Figure 6.7.

Scaled Residuals

FLUENT 6.3 (2d, pbns, ske) Aug 17, 2007

Figure 6.7: Converged solution for turbulent case.

The velocity and temperature contours for the turbulent case are shown in Figure 6.8.

Contours of X Velocity (m/s)

FLUENT 6.3 (2d, pbns, ske) Aug 18, 2007

Contours of Static Temperature (k)

FLUENT 6.3 (2d, pbns, ske) Aug 18, 2007

Figure 6.8: Contours of velocity and temperature for turbulent case.

The shear stress and friction coefficient on the wall are shown in Figure 6.9.

Wall Shear Stress

FLUENT 6.3 (2d, pbns, ske)Aug 17, 2007

Position (m) (pascal)StressShearWall

1

FLUENT 6.3 (2d, pbns, ske)Aug 17, 2007

Position (m)

Figure 6.9: Plot of shear stress and friction coefficient for turbulent case.

The final plots for the heat flux and heat transfer coefficient for turbulent case are shown in Figure 6.10.

Total Surface Heat Flux Aug 18, 2007

FLUENT 6.3 (2d, pbns, ske)

Position (m)

Surface Heat Transfer Coef. Aug 18, 2007

FLUENT 6.3 (2d, pbns, ske)

Position (m)

Figure 6.10: Plot of heat flux and heat transfer coefficient for turbulent case.

7 Analytical vs CFD

The comparison between the analytical and the CFD solutions is always been exciting.

This not only shows the efficiency of numerical computer simulations but also gives the understanding of how the different solutions can be compared in practice. CFD calcula-tions are not only used here so that we can compare the results with analytical but it were developed keeping in mind the fact that certain fluid flow phenomena does not possess an-alytical solution. In this chapter we will try to analyze the anan-alytical results, approximate integral methods and the FLUENT simulation for laminar case and empirical results, law of the wall and FLUENT simulation for turbulent case.

Let us once again try to quote the case example which is the heart of the thesis. We have selected a particular case of fluid flow in a pipe which itself is kept in another fluid at sufficient different temperature. Both the inner and outer fluids are chosen to be water.

The diameter of the pipe is0.05mand the length is1m. The inner fluid is flowing at363 K and with some constant velocity. The critical value for Reynolds number is taken into consideration and so the velocities for laminar case and turbulent case is kept different.

The temperature of the outer fluid is constant around 277 K. Since the temperature on the wall of the pipeTw is not known, hence it can be assumed that it is the same as outer fluid temperature. The process is assumed to be in steady state and as soon as the fluid starts entering the pipe, the boundary layer begins to form which results as resistance to heat transfer.

7.1 Laminar Case

We begin our comparison with the laminar case. It is difficult to assume that the fluid flow in pipes is laminar because the Reynolds number itself is far above the critical value of 2300in most of the cases. The constant velocity in laminar case is kept to be0.0007m/s.

The reason behind the assumption of small velocity is just for maintaining the Reynolds number within the range of critical value. If the Reynolds numer is high the boundary layer thickness would be very thin compared to radius R of the pipe. We are dealing with 2-D flow and hence it becomes an example of flow over a flat plate. Let’s rewrite the important relations which we obtain for the laminar case. First the velocity boundary

layer thickness (4.31) and then thermal boundary layer thickness (4.34), δ≈ 5.836x

√Rex

δt= 4.272x

√Rex

It is very interesting to plot the results obtained by the integral methods. We try to visu-alize the thickness of both the velocity and thermal boundary layers. Prandtl number is larger than1and so the velocity boundary layer is more thicker than the thermal boundary layer. The boundary layers are shown in Figure 7.1.

0 0.2 0.4 0.6 0.8 1

0 0.02 0.04 0.06 0.08 0.1 0.12 0.14

Position (m)

Boundary layers

Velocity boundary layer Thermal boundary layer

Figure 7.1: Velocity and thermal boundary layer thickness in laminar flow.

The hydrodynamic and thermal entry length can also be calculated using equation (3.11) and equation (3.13) as follows

Lh ≈0.05ReDD≈0.268

Lt≈0.05ReDP rD≈0.526

The entry lengths value shows that it is close to the integral results. This small variation is due to the different definition for the Reynolds number. The fluid properties remains the same from section (4.4.2) for both the laminar and turbulent case.

Finally the dimensionless numbers correlation from equation (4.36), p

From the definition for the Nusselt number N ux = hxk and from equation (2.4), we can determine the value for heat flux and heat transfer coefficient as

qw = 0.4682k(Tw−Tm)

sρUm µx

h= 0.4682k s

ρUm

µx

We try to compare the above Nusselt number correlation with Blasius flat plate correlation given by

N ux = 0.332Re

1

x2P r13 (7.1)

In the similar way, the expression for the heat flux and heat transfer coefficient can be readily calculated as

qw = 0.332k(Tw −Tm)

sρUm

µx P r13

h= 0.332k

sρUm

µx P r13

This expressions for heat flux and heat transfer coefficient calculated from integral and analytical approach is then compared with the FLUENT results. The corresponding com-parison is shown in Figure 7.2. and Figure 7.3. respectively.

0 0.2 0.4 0.6 0.8 1

−9

−8

−7

−6

−5

−4

−3

−2

−1 0x 104

Position (m) Heat flux (W/m2 )

Integral method Blasius FLUENT

Figure 7.2: Heat flux for different approaches for laminar case.

0 0.2 0.4 0.6 0.8 1 0

200 400 600 800 1000 1200

Position (m) Heat transfer coefficient (W/m2.K)

Integral method Blasius FLUENT

Figure 7.3: Heat transfer coefficient for different approaches for laminar case.

From the above Nusselt number correlations from integral method, equation (7.1) and the result obtained from FLUENT, we compare the dimensionless correlations as shown in Fígure 7.4.

0 500 1000 1500 2000 2500

0 5 10 15 20 25 30 35

Reynolds number Re x Nusselt number Nux

Integral method Blasius FLUENT

Figure 7.4: Reynolds number versus Nusselt number for different approaches in laminar flow.

From the above comparisons it can be seen that the results from the empirical and integral

sufficient enough to understand the comparison.

7.2 Turbulent Case

In the similar way, we begin with the comparison for the turbulent case. While deal-ing with turbulent case, the fluid velocity is kept to be 0.05m/s and all the other fluid properties remains the same as section (4.4.2). First we make comparison of different approaches to calculate the heat flux on the wall of the pipe. From equation (5.23), the Nusselt number correlation using law of the wall can be given as

N ux

ρcpUm

C

f

2

1 2 x kh

y++ 13P r23 −12i

From the above correlation the heat flux and heat transfer coefficient can be written as follows

qw

ρcp(Tw−Tm)Um

C

f

2

1 2

hy++ 13P r23 −12i

h ≈

ρcpUm

C

f

2

1 2

hy++ 13P r23 −12i

We now use the empirical relation due to Gnielinski [11] as shown below, N ux = (f /2)RexP r

h1 + 12.7 (f /2)12 (P r23 −1)i (7.2) where f = (0.79ln(Rex)−1.64)2 is the friction factor. From the equation (7.2), we can readily calculate the heat flux and heat transfer coefficient as

qw = k(f /2)ρ(Tw−Tm)UmP r µh

1 + 12.7 (f /2)12 (P r23 −1)i

h= k(f /2)ρUmP r µh

1 + 12.7 (f /2)12 (P r23 −1)i

The comparison graph for the heat flux and heat transfer coefficient for turbulent case is shown in Figure 7.5. and Figure 7.6. respectively.

0 0.2 0.4 0.6 0.8 1

−5.5

−5

−4.5

−4

−3.5

−3

−2.5

−2

−1.5

−1

−0.5x 105

Position (m) Heat flux (W/m2)

Law of the wall Gnielinski FLUENT

Figure 7.5: Heat flux for different approaches for turbulent case.

0 0.2 0.4 0.6 0.8 1

0 1000 2000 3000 4000 5000 6000

Position (m) Heat transfer coefficient (W/m2.K)

Law of the wall Gnielinski FLUENT

Figure 7.6: Heat transfer coefficient for different approaches for turbulent case.

We rewrite the expression for Nusselt number from equation (5.23),

N ux

ρcpUm

C

f

2

12

x kh

y++ 13P r23 −12i

The value for the variables in the above equation are taken same as in the laminar case except the value for the mean velocity which is higher than the laminar case. The values for y+ ranges as0 < y+ < 5in the inner layer, 5 < y+ < 30 in the buffer layer and y+ > 30in the outer turbulent layer. These ranges are experimentally determined and since our interest lies in calculating the heat transfer rate across the wall, we will take into account the values for the inner layer only. For different values fory+ in the above expression, we compare it with the FLUENT results and the empirical relation due to Gnielinski. The different graphs are shown in Figure 7.7.

0 2 4 6 8 10 12 14 16

x 104 0

200 400 600 800 1000 1200 1400 1600 1800

Reynolds number Re x Nusselt number Nux

y+=0

Law of the Wall Gnielinski FLUENT

0 2 4 6 8 10 12 14 16

x 104 0

500 1000 1500

Reynolds number Re x Nusselt number Nux

y+=2

Law of the Wall Gnielinski FLUENT

0 2 4 6 8 10 12 14 16 x 104 0

500 1000 1500

Reynolds number Re x Nusselt number Nux

y+=4

Law of the Wall Gnielinski FLUENT

Figure 7.7: The graphs of Reynolds number versus Nusselt number for different values of y+.

From the above graphs, it concludes that the empirical, law of the wall and FLUENT results are much similar and close to each other. For the case ofy+ = 0, the law of the wall and Gnielinski empirical relation give good comparison and for the case of y+ = 2, the law of the wall and FLUENT shows excellent similarity. It is obvious from the definition of law of the wall, that the correlation purturbes as we slowly start to move away from the wall.

8 Conclusions

As seen in chapter 7, the same mathematical model is being compared using different solution techniques. The main approaches to solve the set of boundary layer equations were analytical, empirical and numerical. All the approaches have been tried to explain very clearly. The main aim of the thesis was to study the different methodologies to solve a very simple but the most common problem in engineering.

In the laminar case, we have compared the heat flux, heat transfer coefficient and the dimensionless numbers correlations using integral relations approach, analytical solution by Blasius and the computer simulations by FLUENT. It is clear from the results that the analytical and the integral relations approach have excellent similarity and FLUENT simulations is in good agreement with the results. It could be the fact that the analytical and integral approach was based on certain assumptions in the velocity and temperature profile, while the FLUENT result is explicitly solved using the numerical approach. In the end we conclude that all the approaches were upto the expectations and matched very well.

Similarly for the turbulent case, we have compared the heat transfer variables and di-mensionless numbers correlations using law of the wall, empirical relation by Gnielinski and numerical method for turbulent models in FLUENT. It is noticed that the law of the wall and empirical relation gives very close results and FLUENT results were near to them. Here also it can be concluded that the different turbulent models in FLUENT gives different result and to understand which approach is better is difficult to predict.

In the end, it can be concluded that all the approaches have their own significance and to assume one is better over other is not true in general as the best solution for each problem in hand has it’s own way of solving. The work done in this thesis is like a benchmarking for the comparison between analytical and CFD simulations as most of the engineering fluid flow phenomena does not possess analytical solution and one has to rely only on

In the end, it can be concluded that all the approaches have their own significance and to assume one is better over other is not true in general as the best solution for each problem in hand has it’s own way of solving. The work done in this thesis is like a benchmarking for the comparison between analytical and CFD simulations as most of the engineering fluid flow phenomena does not possess analytical solution and one has to rely only on