1 |
Residual-Based Discretization Error Estimation for Unsteady FlowsGautham, Tejaswini 10 January 2020 (has links)
Computational fluid dynamics (CFD) is a tool that is widely used in most industries today. It is important to have rigorous techniques to estimate the error produced when using CFD. This thesis develops techniques to estimate discretization error for unsteady flows using the unsteady error transport equation (ETE) as well as defect correction. A framework to obtain exact truncation error and estimated truncation error is also presented. The technique and results for the steady-state cases are given and the algorithm used for the steady case is extended for the unsteady case. Numerical results are presented for the steady viscous Burgers' equation, unsteady viscous Burgers' equation, steady quasi-1D Euler equations, and unsteady 1D Euler equations when applied to a shock tube. Cases using either defect correction or ETE are shown to give higher orders of accuracy for the corrected discretization error estimates when compared to the discretization error of the primal solution. / Master of Science / Computational fluid dynamics (CFD) is a tool that is widely used in most industries today. It is used to understand complex flows that are difficult to replicate using experimental techniques or by theoretical methods. It is important to have rigorous techniques to estimate the error produced when using CFD even when the exact solution is not available for comparison. This paper develops techniques to estimate discretization error for unsteady flows. Discretization error has one of the largest error magnitudes in CFD solutions. The exact physics dictates the use of continuous equations but to apply CFD techniques, the continuous equations have to be converted to discrete equations. Truncation error is, the error obtained when converting the continuous equations to discrete equations. This truncation error is in turn, the local source term for discretization error. To reduce the discretization error in the discrete equations, the exact or estimated truncation error is either added as a source term to the discrete equations or is used along with the error transport equation to get a better estimate of the solutions. A framework to obtain exact truncation error and estimated truncation error is also presented. The framework is first applied to the steady equations and is verified with results from previous studies and is then extended to the unsteady flows.
|
2 |
Truncation Error Based Mesh Adaptation and its Application to Multi-Mesh CFDJackson, Charles Wilson, V 18 July 2019 (has links)
One of the largest sources of error in a CFD simulation is the discretization error. One of the least computationally expensive ways of reducing the discretization error in a simulation is by performing mesh adaptation. In this work, the mesh adaptation processes are driven by the truncation error, which is the local source of the discretization error. Because this work is focused on methods for structured grids, r-adaptation is used as opposed to h-adaptation.
A new method for performing the r-adaptation based on an optimization process is developed and presented here. This optimization process was applied to simple 1D and 2D Euler problems as a method of testing the approach. The mesh optimization approach is compared to the more common equidistribution approach to determine which produces more accurate results as well as the costs associated with each. It is found that the optimization process is able to reduce the truncation error than equidistribution. However, in the 2D cases optimization does not reduce the discretization error sufficiently to warrant the significant costs of the approach. This indicates that the much cheaper equidistribution process provides a cost-effective manner to reduce the discretization error in the solution. Further, equidistribution is able to achieve the bulk of the potential reductions in discretization error possible through r-adaptation.
This work also develops a new framework for reducing the cost of performing truncation error based r-adaptation. This new framework also addresses some of the issues associated with r-adaptation. In this framework, adaptation is performed on a coarse mesh where it is faster to perform, creating a mapping function for this mesh, and finally evaluating this mapping at a fine enough mesh to meet the error target. The framework is used for 2D Euler and 2D laminar Navier-Stokes problems and shown to be the most cost-effective way to meet a desired error target.
Finally, the multi-mesh CFD method is introduced and applied to a wide variety of problems from quasi-1D nozzle to 2D laminar and turbulent boundary layers. The multi-mesh method allows the system of equations to be solved on a system of meshes. With this method, each equation is solved on a mesh that is adapted specifically for it, meaning that more accurate solutions for each equation can be obtained. This work shows that, for certain problems, the multi-mesh approach is able to achieve more accurate results in less time compared to using a single mesh. / Doctor of Philosophy / Computational fluid dynamics (CFD) describes a method of numerically solving equations that attempt to model the behavior of a fluid. As computers have become cheaper and more powerful and the software has become more capable, CFD has become an integral part of the engineering process. One of the goals of the field is to be able to bring these higher fidelity simulations into the design loop earlier. Ideally, using CFD earlier in the design process would allow design engineers to create new innovative designs with less programmatic risk. Likewise, it is also becoming necessary to use these CFD tools later in the final design process to replace some physical experiments which can be expensive, unsafe, or infeasible to run. Both of these goals require the CFD codes to meet the accuracy requirements for the results as fast as possible. This work discusses several different methods for improving the accuracy of the simulations as well as ways of obtaining these more accurate results for the cheapest cost. In CFD, the governing equations modeling the flow behavior are solved on a computer. As a result, these continuous differential equations must be approximated as a system of discrete equations, so that they can be solved on a computer. These approximations result in discretization error, the difference between the exact solutions to the discrete and continuous equations, which is typically the largest type of numerical error in a CFD solution. The source of the discretization error is the truncation error, which is composed of the terms left out of the approximations made when discretizing the continuous equations. Thus, if the truncation error can be reduced, the discretization error in the solution should also be reduced. In this work, several different ways of reducing this truncation error through mesh adaptation are discussed, including the use of optimization methods. These mesh optimization methods are compared to a more common way of performing adaptation, namely equidistribution. It is determined that equidistribution is able to reduce the discretization error by a similar amount while being significantly faster than mesh optimization. This work also presents a framework for making the adaptation process faster overall by performing the adaptation on a coarse mesh and then refining the mesh enough to meet the error tolerance for the application. This framework was the cheapest method investigated to meet a given error target. This work also introduces a new technique called multi-mesh CFD, which allows each equation (conservation of mass, momentum, energy, etc.) to be solved on a separate mesh. This allows each equation to be solved on a mesh that is specifically adapted for it, resulting in a more accurate solution. Here, it is shown that, for certain problems, the multi-mesh technique is able to obtain a solution with lower error than only using a single mesh. This work also shows that these more accurate results can be obtained in less time using multiple meshes than on a single mesh.
|
3 |
Application of r-Adaptation Techniques for Discretization Error Improvement in CFDTyson, William Conrad 29 January 2016 (has links)
Computational fluid dynamics (CFD) has proven to be an invaluable tool for both engineering design and analysis. As the performance of engineering devices become more reliant upon the accuracy of CFD simulations, it is necessary to not only quantify and but also to reduce the numerical error present in a solution. Discretization error is often the primary source of numerical error. Discretization error is introduced locally into the solution by truncation error. Truncation error represents the higher order terms in an infinite series which are truncated during the discretization of the continuous governing equations of a model. Discretization error can be reduced through uniform grid refinement but is often impractical for typical engineering problems. Grid adaptation provides an efficient means for improving solution accuracy without the exponential increase in computational time associated with uniform grid refinement. Solution accuracy can be improved through local grid refinement, often referred to as h-adaptation, or by node relocation in the computational domain, often referred to as r-adaptation. The goal of this work is to examine the effectiveness of several r-adaptation techniques for reducing discretization error. A framework for geometry preservation is presented, and truncation error is used to drive adaptation. Sample problems include both subsonic and supersonic inviscid flows. Discretization error reductions of up to an order of magnitude are achieved on adapted grids. / Master of Science
|
4 |
Use of microcomputers in mathematics in Hong Kong higher educationPong, Tak-Yun G. January 1988 (has links)
Since the innovation of computers some 40 years ago and the introduction of microcomputers in 1975, computers are playing an active role in education processes and altering the pattern of interaction between teacher and student in the classroom. Computer assisted learning has been seen as a revolution in education. In this research, the author has studied the impact of using microcomputers on mathematical education, particularly at the Hong Kong tertiary level, in different perspectives. Two computer software packages have been developed on the microcomputer. The consideration of the topic to be used in the computer assisted learning was arrived at in earlier surveys with students who thought that computers could give very accurate solutions to calculations. The two software packages, demonstrating on the spot the error that would be incurred by the computer, have been used by the students. They are both interactive and make use of the advantages of the microcomputer's functions over other teaching media, such as graphics facility and random number generator, to draw to the students' attention awareness of errors that may be obtained using computers in numerical solutions. Much emphasis is put on the significance and effectiveness of using computer packages in learning and teaching. Measurements are based on questionnaires, conversations with students, and tests on content material after the packages have been used. Feedback and subjective opinion of using computers in mathematical education have also been obtained from both students and other teachers. The research then attempts to examine the suitability of applying computer assisted learning in Hong Kong education sectors. Some studies on the comments made by students who participated in the learning process are undertaken. The successes and failures in terms of student accomplishment and interest in the subject area as a result of using a software package is described. Suggestions and recommendations are given in the concluding chapter.
|
5 |
Residual-based Discretization Error Estimation for Computational Fluid DynamicsPhillips, Tyrone 30 October 2014 (has links)
The largest and most difficult numerical approximation error to estimate is discretization error. Residual-based discretization error estimation methods are a category of error estimators that use an estimate of the source of discretization error and information about the specific application to estimate the discretization error using only one grid level. The higher-order terms are truncated from the discretized equations and are the local source of discretization error. The accuracy of the resulting discretization error estimate depends solely on the accuracy of the estimated truncation error. Residual-based methods require only one grid level compared to the more commonly used Richardson extrapolation which requires at least two. Reducing the required number of grid levels reduces computational expense and, since only one grid level is required, can be applied to unstructured grids where multiple quality grid levels are difficult to produce. The two residual-based discretization error estimators of interest are defect correction and error transport equations. The focus of this work is the development, improvement, and evaluation of various truncation error estimation methods considering the accuracy of the truncation error estimate and the resulting discretization error estimates. The minimum requirements for accurate truncation error estimation is specified along with proper treatment for several boundary conditions. The methods are evaluated using various Euler and Navier-Stokes applications. The discretization error estimates are compared to Richardson extrapolation. The most accurate truncation error estimation method was found to be the k-exact method where the fine grid with a correction factor was considerably reliable. The single grid methods including the k-exact require that the continuous operator be modified at the boundary to be consistent with the implemented boundary conditions. Defect correction showed to be more accurate for areas of larger discretization error; however, the cost was substantial (although cheaper than the primal problem) compared to the cost of solving the ETEs which was essential free due to the linearization. Both methods showed significantly more accurate estimates compared to Richardson extrapolation especially for smooth problems. Reduced accuracy was apparent with the presence of stronger shocks and some possible modifications to adapt to singularies are proposed for future work. / Ph. D.
|
6 |
Verification of Compressible and Incompressible Computational Fluid Dynamics Codes and Residual-based Mesh AdaptationChoudhary, Aniruddha 06 January 2015 (has links)
Code verification is the process of ensuring, to the degree possible, that there are no algorithm deficiencies and coding mistakes (bugs) in a scientific computing simulation. In this work, techniques are presented for performing code verification of boundary conditions commonly used in compressible and incompressible Computational Fluid Dynamics (CFD) codes. Using a compressible CFD code, this study assesses the subsonic inflow (isentropic and fixed-mass), subsonic outflow, supersonic outflow, no-slip wall (adiabatic and isothermal), and inviscid slip-wall. The use of simplified curved surfaces is proposed for easier generation of manufactured solutions during the verification of certain boundary conditions involving many constraints. To perform rigorous code verification, general grids with mixed cell types at the verified boundary are used. A novel approach is introduced to determine manufactured solutions for boundary condition verification when the velocity-field is constrained to be divergence-free during the simulation in an incompressible CFD code. Order of accuracy testing using the Method of Manufactured Solutions (MMS) is employed here for code verification of the major components of an open-source, multiphase flow code - MFIX. The presence of two-phase governing equations and a modified SIMPLE-based algorithm requiring divergence-free flows makes the selection of manufactured solutions more involved than for single-phase, compressible flows. Code verification is performed here on 2D and 3D, uniform and stretched meshes for incompressible, steady and unsteady, single-phase and two-phase flows using the two-fluid model of MFIX.
In a CFD simulation, truncation error (TE) is the difference between the continuous governing equation and its discrete approximation. Since TE can be shown to be the local source term for the discretization error, TE is proposed as the criterion for determining which regions of the computational mesh should be refined/coarsened. For mesh modification, an error equidistribution strategy to perform r-refinement (i.e., mesh node relocation) is employed. This technique is applied to 1D and 2D inviscid flow problems where the exact (i.e., analytic) solution is available. For mesh adaptation based upon TE, about an order of magnitude improvement in discretization error levels is observed when compared with the uniform mesh. / Ph. D.
|
7 |
On Numerical Error Estimation for the Finite-Volume Method with an Application to Computational Fluid DynamicsTyson, William Conrad 29 November 2018 (has links)
Computational fluid dynamics (CFD) simulations can provide tremendous insight into complex physical processes and are often faster and more cost-effective to execute than experiments. However, each CFD result inherently contains numerical errors that can significantly degrade the accuracy of a simulation. Discretization error is typically the largest contributor to the overall numerical error in a given simulation. Discretization error can be very difficult to estimate since the generation, transport, and diffusion of these errors is a highly nonlinear function of the computational grid and discretization scheme. As CFD is increasingly used in engineering design and analysis, it is imperative that CFD practitioners be able to accurately quantify discretization errors to minimize risk and improve the performance of engineering systems.
In this work, improvements are made to the accuracy and efficiency of existing error estimation techniques. Discretization error is estimated by deriving and solving an error transport equation (ETE) for the local discretization error everywhere in the computational domain. Truncation error is shown to act as the local source for discretization error in numerical solutions. An equivalence between adjoint methods and ETE methods for functional error estimation is presented. This adjoint/ETE equivalence is exploited to efficiently obtain error estimates for multiple output functionals and to extend the higher-order properties of adjoint methods to ETE methods. Higher-order discretization error estimates are obtained when truncation error estimates are sufficiently accurate. Truncation error estimates are demonstrated to deteriorate on grids with a non-smooth variation in grid metrics (e.g., unstructured grids) regardless of how smooth the underlying exact solution may be. The loss of accuracy is shown to stem from noise in the discrete solution on the order of discretization error. When using conventional least-squares reconstruction techniques, this noise is exactly captured and introduces a lower-order error into the truncation error estimate. A novel reconstruction method based on polyharmonic smoothing splines is developed to smoothly reconstruct the discrete solution and improve the accuracy of error estimates. Furthermore, a method for iteratively improving discretization error estimates is devised. Efficiency and robustness considerations are discussed. Results are presented for several inviscid and viscous flow problems. To facilitate the study of discretization error estimation, a new, higher-order finite-volume solver is developed. A detailed description of the code base is provided along with a discussion of best practices for CFD code design. / Ph. D. / Computational fluid dynamics (CFD) is a branch of computational physics at the intersection of fluid mechanics and scientific computing in which the governing equations of fluid motion, such as the Euler and Navier-Stokes equations, are solved numerically on a computer. CFD is utilized in numerous fields including biomedical engineering, meteorology, oceanography, and aerospace engineering. CFD simulations can provide tremendous insight into physical processes and are often preferred over experiments because they can be performed more quickly, are typically more cost-effective, and can provide data in regions where it may be difficult to measure. While CFD can be an extremely powerful tool, CFD simulations are inherently subject to numerical errors. These errors, which are generated when the governing equations of fluid motion are solved on a computer, can have a significant impact on the accuracy of a CFD solution. If numerical errors are not accurately quantified, ill-informed decision-making can lead to poor system performance, increased risk of injury, or even system failure. In this work, research efforts are focused on numerical error estimation for the finite -volume method, arguably the most widely used numerical algorithm for solving CFD problems. The error estimation techniques provided herein target discretization error, the largest contributor to the overall numerical error in a given simulation. Discretization error can be very difficult to estimate since these errors are generated, convected, and diffused by the same physical processes embedded in the governing equations. In this work, improvements are made to the accuracy and efficiency of existing discretization error estimation techniques. Results are presented for several inviscid and viscous flow problems. To facilitate the study of these error estimators, a new, higher-order finite -volume solver is developed. A detailed description of the code base is provided along with a discussion of best practices for CFD code design.
|
8 |
Target Element Sizes For Finite Element Tidal Models From A Domain-wide, Localized Truncation Error Analysis Incorporating BottoParrish, Denwood 01 January 2007 (has links)
A new methodology for the determination of target element sizes for the construction of finite element meshes applicable to the simulation of tidal flow in coastal and oceanic domains is developed and tested. The methodology is consistent with the discrete physics of tidal flow, and includes the effects of bottom stress. The method enables the estimation of the localized truncation error of the nonconservative momentum equations throughout a triangulated data set of water surface elevation and flow velocity. The method's domain-wide applicability is due in part to the formulation of a new localized truncation error estimator in terms of complex derivatives. More conventional criteria that are often used to determine target element sizes are limited to certain bathymetric conditions. The methodology developed herein is applicable over a broad range of bathymetric conditions, and can be implemented efficiently. Since the methodology permits the determination of target element size at points up to and including the coastal boundary, it is amenable to coastal domain applications including estuaries, embayments, and riverine systems. These applications require consideration of spatially varying bottom stress and advective terms, addressed herein. The new method, called LTEA-CD (localized truncation error analysis with complex derivatives), is applied to model solutions over the Western North Atlantic Tidal model domain (the bodies of water lying west of the 60° W meridian). The convergence properties of LTEACD are also analyzed. It is found that LTEA-CD may be used to build a series of meshes that produce converging solutions of the shallow water equations. An enhanced version of the new methodology, LTEA+CD (which accounts for locally variable bottom stress and Coriolis terms) is used to generate a mesh of the WNAT model domain having 25% fewer nodes and elements than an existing mesh upon which it is based; performance of the two meshes, in an average sense, is indistinguishable when considering elevation tidal signals. Finally, LTEA+CD is applied to the development of a mesh for the Loxahatchee River estuary; it is found that application of LTEA+CD provides a target element size distribution that, when implemented, outperforms a high-resolution semi-uniform mesh as well as a manually constructed, existing, documented mesh.
|
Page generated in 0.0177 seconds