360 likes | 923 Views
Fluid Flow: Application of Numerical Methods. Objectives. Section 5 – Fluid Flow Module 2 : Numerical Methods Page 2. U nderstand the application of numerical methods . L earn about domain discretization . I nvestigate discretization of equations .
E N D
Fluid Flow: Application of NumericalMethods
Objectives Section 5 – Fluid Flow Module 2: Numerical Methods Page 2 • Understand the application of numerical methods. • Learn about domain discretization. • Investigate discretization of equations. • Compare different numerical methods. • Understand the process of numerical analysis. • Become familiar with the use of CFD software, such as Autodesk Simulation Multiphysics.
Understanding Numerical Methods Section 5 – Fluid Flow Module 2: Numerical Methods Page 3 • Numerical Methods are used when an approximate analysis can be deemed accurate enough. • Due to the nonlinear and complex nature of flow equations, exact solutions are possible for only a handful of cases. • Even when using numerical methods, simplifications have to be made in the problem being analyzed to yield an answer. • Three discretization schemes used in numerical methods are:
Domain Discretization: Part I Section 5 – Fluid Flow Module 2: Numerical Methods Page 4 • In Numerical Fluid flow analysis, a continuous domain is replaced by a discrete domain using a grid. • In a continuous domain, a result (e.g., velocity) can be found at any point in the domain. • In a discrete domain, results are calculated only at the grid points (nodes) or at the centers of control volumes (CVs) defined by those grid points. • Values for other positions are extrapolated from grid point results. Continuous Domain Discrete Domain
Domain Discretization: Part II Section 5 – Fluid Flow Module 2: Numerical Methods Page 5 • Similarly, when solving fluid flow in a CFD software application, the flow domain must be discretized into a number of nodes. • These elements can be quadrilateral or triangular. Cell Quadrilateral Mesh Triangular Mesh Nodes
Discretization of Equations- Techniques Section 5 – Fluid Flow Module 2: Numerical Methods Page 6 • Numerical discretization techniques used in commercially popular applications are: • Finite Element Method (FEM) – popular in structural mechanics • Finite Volume Method (FVM) – popular in CFD • Finite Difference Method (FDM) – popular in optimization and flow studies requiring less accuracy • The differences lie in how the equations are discretized, or converted into discrete form over a number of points. FEM is mainly popular for structural analysis (left) but can also be applied for CFD analysis (right)
Discretization of EquationsTaylor Series: Part I Section 5 – Fluid Flow Module 2: Numerical Methods Page 7 • Once the domain is discretized, the equation also needs to be discretized, or converted into discrete form over a number of points. • The Taylor Series is given below:from this series:
Replace the continuum with discrete points: Approximate derivatives: Central Backward Forward Discretization of EquationsTaylor Series: Part II Section 5 – Fluid Flow Module 2: Numerical Methods Page 8
Discretization of Equations, Taylor Series III Section 5 – Fluid Flow Module 2: Numerical Methods Page 9 • Example of partial differential equation (PDE) with spatial and temporal derivatives: • For Space discretization • Index “i” is used with Backward differencing scheme. • For Time discretization • Index “n” is used with Forward differencing scheme. • Notice that the PDE has been reduced to an algebraic equation.
Discretization of EquationsFinite Difference Method: Part I Section 5 – Fluid Flow Module 2: Numerical Methods Page 10 • A system of flow governed by the following equation: • Can be discretized using Taylor series algebraic equations: 1 2 4
Discretization of EquationsFinite Difference Method: Part II Section 5 – Fluid Flow Module 2: Numerical Methods Page 11 • If there is a boundary condition (B.C) of u1=0, then: • This matrix can be solved using a direct or iterative matrix method. • More nodes = more equations to solve. • The higher the accuracy of a Taylor Series, the more terms in the equation. • A computer can greatly help to solve the complex system of equations resulting from a large, finely meshed domain.
FDM vs “FEM” and “FVM” Section 5 – Fluid Flow Module 2: Numerical Methods Page 12 • FDM is an easy to implement, easy to understand and easy to program scheme. • FDM does not show good results for unstructured meshes. • Compared to FEM and FVM, FDM is very a crude scheme. • In-house CFD codes based on FDM do exist, but most commercial software for CFD are based on either FEM or FVM. • In the next slide, differences between FEM and FVM are explored.
Comparison between FEM and FVM for CFD Section 5 – Fluid Flow Module 2: Numerical Methods Page 13
Process of Numerical Analysis Section 5 – Fluid Flow Module 2: Numerical Methods Page 14 • To solve a problem numerically, the following steps are required: (First simplify geometry if possible) • Establishing problem boundaries and flow assumptions(e.g., inlet/outlet, walls, density constant) • Discretization of the domain • Generation of equations for each nodal point (by using FDM, FEA) • Solving those equations (using direct or iterative matrix scheme) Geometry simplification often involves elimination of unnecessary curves and details that may have negligible or no influence on the flow. This helps mesh creation or domain discretization by reducing complexity. Actual Geometry Simplified Geometry
Flow Process Section 5 – Fluid Flow Module 2: Numerical Methods Page 15 FVM Numerical Analysis Simplification Initial / Boundary Conditions FDM FEM Discretization Solving Convergence Results
Questions for establishing workflow Section 5 – Fluid Flow Module 2: Numerical Methods Page 16 • The first step of the analysis process is to formulate the flow problem by seeking answers to the following questions: • What is the objective of the analysis? • What is the easiest way to obtain that objective? • What geometry should be included? • What are the freestream and/or operating conditions? • What dimensionality of the spatial model is required? • (1D, 2D, axisymmetric, 3D) • What should the flow domain look like? • What temporal modelling is appropriate? (is flow steady or unsteady) • What is the nature of the viscous flow? (inviscid, laminar, turbulent) • How should the fluid be modelled? (compressible or incompressible)
Using CFD software Section 5 – Fluid Flow Module 2: Numerical Methods Page 17 • A CFD software application breaks down the analysis using the following steps: Pre-Processing Solving (number crunching) Post-Processing
Video: Application of Numerical Methods Section 5 – Fluid Flow Module 2: Numerical Methods Page 18 • The video for this module on application of numerical methods covers: • Domain discretization • Discretization of equations • The concept of numerical analysis • How computers have helped • Types of discretization and their applications Measuring the circumference of a circle
Summary Section 5 – Fluid Flow Module 2: Numerical Methods Page 19 • Navier–Stokes is a complex equation and can be highly nonlinear for many flow cases. • There are relatively few cases where an exact solution to this equation can be found, and they involve a great amount of assumptions and simplification. • We replace these equations with small linear equations which are applicable at very small intervals. • This is called domain discretization and discretization of equations. • The result is a large number of simultaneous equations.
Summary Section 5 – Fluid Flow Module 2: Numerical Methods Page 20 • To solve these equations, computers are used. • Because of advancements in computer technology, large flow domains can now be solved. • FEA, FDM and FVM are different types of discretizing schemes that have found applications in different areas. • For instance, FVM is widely popular for CFD. • FEA is used largely in structural analyses and also in complex CFD problems