Chapter 5 CFD
Chapter 5 CFD
15
z component: Conservation form x component: y component: z component: 5.2.3 Energy equations: Non conservation form ( Conservation form ( ) ( ) )
5.3 Governing equations of a Viscous flow: A viscous flow is one where the phenomenon of friction is included. This phenomenon is dissipative-it always increases the entropy of flow. The governing equations for a steady three dimensional, compressible, viscous flow are: 5.3.1 Continuity Equations: Non conservation form: Conservation form 5.3.2 Momentum Equations-: Non conservation form: x component: y component: z component: Conservation form:
16
)
(
) (
(
)
)
(
(
)
(
(
)
)
Conservation form: ( ) ( ) ( ( ) ) ( ( ) ) ( ( ) ) ( ) ( )
5.4 Discretization Methods in CFD There are three widely used discretization methods in CFD: 1. Finite difference method (FDM) 2. Finite volume method (FVM) 3. Finite element method (FEM) Finite volume method (FVM): In finite volume method (FVM), discretization is based upon an integral form of the PDE to be solved (e.g. conservation of mass, momentum, or energy). The PDE is written in a form which can be solved for a given finite volume (or cell). The computational domain is discretized into finite volumes and then for every volume the 3 governing equations are solved in all directions. The resulting system of equations usually involves fluxes of the conserved variable, and thus the calculation of fluxes is very important in FVM. The basic advantage of this method over FDM is it does not require the use of structured grids, as with the resulting approximate solution is a discrete, but the variables are typically placed at cell centers rather than at nodal points.
17
In FVM non conservation form denotes the moving element(control volume and fluid element) in space where as the conservation form denotes the element (control volume and fluid element) fixed in space.
18
system. Using a virtual geometry overlay and advanced cleanup tools, imported geometries are quickly converted into suitable flow domains. A comprehensive set of highly-automated and size function driven meshing tools ensures that the best mesh can be generated, whether structured, multiblock, unstructured, or hybrid. 5.5.2 Solver-: The CFD solver does the flow calculations and produces the results. FLUENT, FloWizard, FIDAP, CFX and POLYFLOW are some of the types of solvers. FLUENT is used in most industries. FloWizard is the first general-purpose rapid flow modeling tool for design and process engineers built by Fluent. POLYFLOW (and FIDAP) are also used in a wide range of fields, with emphasis on the materials processing industries. FLUENT and CFX two solvers were developed independently by ANSYS and have a number of things in common, but they also have some significant differences. Both are control-volume based for high accuracy and rely heavily on a pressure-based solution technique for broad applicability. They differ mainly in the way they integrate the fluid flow equations and in their equation solution strategies. The CFX solver uses finite elements (cell vertex numerics), similar to those used in mechanical analysis, to discretize the domain. In contrast, the FLUENT solver uses finite volumes (cell centered numerics). While the FLUENT product offers several solution approaches (density-, segregatedand coupled-pressure-based methods) The FLUENT CFD code has extensive interactivity, so we can make changes to the analysis at any time during the process. This saves time and enables to refine designs more efficiently. In addition, FLUENT's adaptive and dynamic mesh capability is unique and works with a wide range of physical models. This capability makes it possible and simple to model complex moving objects in relation to flow. This solver provides the broadest range of rigorous physical models that have been validated against industrial scale applications, so we can accurately simulate real-world conditions, including multiphase flows, reacting flows, rotating equipment, moving and deforming objects, turbulence, radiation, acoustics and dynamic meshing. The FLUENT solver has repeatedly proven to be fast and reliable for a wide range of CFD applications. The numerical solution of NavierStokes equations in CFD codes usually implies a discretization method: it means that derivatives in partial differential equations are approximated by algebraic expressions which can be alternatively obtained by means of the finite-difference or the finite-element method. Because the governing equations are non-linear and coupled, several iterations of the solution loop must be performed before a converged solution is obtained and each of the iteration is carried out as follows:
19
(1) Fluid properties are updated in relation to the current solution; if the calculation is at the first iteration, the fluid properties are updated consistent with the initialized solution. (2) The three momentum equations are solved consecutively using the current value for pressure so as to update the velocity field. (3) Since the velocities obtained in the previous step may not satisfy the continuity equation, one more equation for the pressure correction is derived from the continuity equation and the linearized momentum equations: once solved, it gives the correct pressure so that continuity is satisfied. The pressurevelocity coupling is made by the SIMPLE algorithm, as in FLUENT default options. Set the solution parameters
Calculate the solution Modify solution parameters or grid Check for convergence
No
Yes Stop
No
20
(4) Other equations for scalar quantities such as turbulence, chemical species and radiation are solved using the previously updated value of the other variables; when inter-phase coupling is to be considered, the source terms in the appropriate continuous phase equations have to be updated with a discrete phase trajectory calculation. (5) Finally, the convergence of the equations set is checked and all the procedure is repeated until convergence criteria is met.
5.5.3 Post-Processing: This is the final step in CFD analysis, and it involves the organization and interpretation of the predicted flow data and the production of CFD images and animations. Fluent's software includes full post processing capabilities. FLUENT exports CFD's data to third-party postprocessors and visualization tools such as Ensight, Field view and TechPlot as well as to VRML formats. In addition, FLUENT CFD solutions are easily coupled with structural codes such as ABAQUS, MSC and ANSYS, as well as to other engineering process simulation tools. Thus FLUENT is general-purpose computational fluid dynamics (CFD) software ideally suited for incompressible and mildly compressible flows. Utilizing a pressure-based segregated finitevolume method solver, FLUENT contains physical models for a wide range of applications including turbulent flows, heat transfer, reacting flows, chemical mixing, combustion, and multiphase flows. FLUENT provides physical models on unstructured meshes, bringing you the benefits of easier problem setup and greater accuracy using solution-adaptation of the mesh. FLUENT is a computational fluid dynamics (CFD) software package to simulate fluid flow problems. It uses the finite-volume method to solve the governing equations for a fluid. It provides the capability to use different physical models such as incompressible or compressible, inviscid or viscous, laminar or turbulent, etc. Geometry and grid generation is done using GAMBIT which is the preprocessor bundled with FLUENT. Owing to increased popularity of engineering work stations, many of which has outstanding graphics capabilities, the leading CFD are now equipped with versatile data visualization tools. These include Domain geometry & Grid display. Vector plots. Line & shaded contour plots. 2D & 3D surface plots.
21
INPUT GEOMETRY
CREATE A MESH
22
5.6 TURBULENCE MODELLING A turbulence model or turbulence closure is a means of approximating the Reynolds stresses (and other turbulent fluxes) in order to close the mean-flow equations. Selecting a suitable turbulence model for simulations can be a challenging task. For attached flows close to the design point a simple algebraic model like the Baldwin-Lomax model can be used. Another common choice for design-iteration type of simulations is the oneequation model by Spalart-Allmaras. This model has become more popular in the last years due to the many inherent problems in more refined two-equation models. The big advantage with both the Baldwin-Lomax model and the Spalart-Allmaras model over more advanced models is that they are very robust to use and rarely produce completely unphysical results. In order to accurately predict more difficult cases, like separating flows, rotating flows, flows strongly affected by secondary flows etc. it is often necessary to use a more refined turbulence model. Common choices are two-equation models like the k- model.
turbulence, whereas the first variable, K, determines the energy in the turbulence. Equations for transport k-epsilon model For turbulent kinetic energy K * +
23
For dissipation * +
Turbulent Viscosity-:
=59; =0.075;
24
5.6.3 Spalart-Allmaras:Spalart-Allmaras model is a one equation model which solves a transport equation for a viscosity-like variable . This may be referred to as the Spalart-Allmaras variable. Turbulent Eddy viscosity is given by Where
| }
]( )
5.6.4 Reynolds stress model:The Reynoldss stress model (RSM) is a higher level, elaborate turbulence model. It is usually called a Second Order Closure. In RSM, the eddy viscosity approach has been discarded and the Reynolds stresses are directly computed. The exact Reynolds stress transport equation accounts for the directional effects of the Reynolds stress fields. The Reynolds stress model involves calculation of the individual Reynolds stresses, using
differential transport equations. The individual Reynolds stresses are then used to obtain closure of the Reynolds-averaged momentum equation. The exact transport equations for the transport of the Reynolds stresses, , may be written as follows:
) ) ) + *
) (
25
We chose Spalart-Allamaras model for our viscous interactions because it is a single variable model which uses only one equation by which solution can be easily obtained without much difficulty.
26