Lehrstuhl für Informatik 10 (Systemsimulation)
|
|
- Chastity Fowler
- 6 years ago
- Views:
Transcription
1 FRIEDRICH-ALEXANDER-UNIVERSITÄT ERLANGEN-NÜRNBERG INSTITUT FÜR INFORMATIK (MATHEMATISCHE MASCHINEN UND DATENVERARBEITUNG) Lehrstuhl für Informatik 10 (Systemsimulation) Calculations in Structural Mechanics in Laser Simulation Kristina Pickl Bachelor Thesis
2 Calculations in Structural Mechanics in Laser Simulation Kristina Pickl Bachelor Thesis Aufgabensteller: Prof. Dr. C. Pflaum Betreuer: Prof. Dr. C. Pflaum Bearbeitungszeitraum:
3 Declaration: I confirm that this Bachelor Thesis is done solely by myself and no other sources and facilities were used except those that are mentioned in this thesis. This Bachelor Thesis was never submitted in total or in part or in modified form to any other legal department or authorities or to any examination commission. All quotations taken from other sources are referenced accordingly. Erklärung: Ich versichere, daß ich die Arbeit ohne fremde Hilfe und ohne Benutzung anderer als der angegebenen Quellen angefertigt habe und daß die Arbeit in gleicher oder ähnlicher Form noch keiner anderen Prüfungsbehörde vorgelegen hat und von dieser als Teil einer Prüfungsleistung angenommen wurde. Alle Ausführungen, die wörtlich oder sinngemäß übernommen wurden, sind als solche gekennzeichnet. Erlangen, den
4 Contents Contents 1 Introduction 1 2 Problem Formulation Thermal Effects Geometries Structural Mechanics Boundary Conditions Finite Element Discretisation 8 4 Numerical Implementation Conjugate Gradient Method Multigrid Method Preconditioned Conjugate Gradient Method Visual Validation Numerical Results Formulas Algebraic Error Convergence Rate Test Conditions Conjugate Gradient Preconditioned Conjugate Gradient Preconditioner: Multigrid with Gauss-Seidel Smoother Preconditioner: Multigrid with Damped Jacobi Smoother Multigrid with Gauss-Seidel Smoother Multigrid with Damped Jacobi Smoother Multigrid with Conjugate Gradient Smoother Special Test Problems Visualisation of the Results Conclusions 31 7 Acknowledgements 32 Bibliography 33 i
5 List of Figures List of Figures 2.1 Thermal lensing effect Hexahedron geometry Cylinder geometry Boundary conditions for the hexahedron Deformation of the cylinder for a constant temperature function Deformation of the hexahedron for a constant temperature function Deformation of the cylinder for a symmetric temperature function Deformation of the hexahedron for a symmetric temperature function ii
6 List of Tables List of Tables 5.1 Number of iterations for the conjugate gradient method Algebraic error for the conjugate gradient method Convergence rate of the conjugate gradient method Algebraic error for the conjugate gradient method preconditioned by multigrid with Gauss-Seidel smoother L2-norm of the residual for the conjugate gradient method preconditioned by multigrid with Gauss-Seidel smoother Convergence rate of the conjugate gradient method preconditioned by multigrid with Gauss-Seidel smoother measured after 40 iterations Iterations of the conjugate gradient method preconditioned by multigrid with damped Jacobi smoother for various damping parameters Algebraic error of the conjugate gradient method preconditioned by multigrid with damped Jacobi smoother for various damping parameters Convergence rate of the conjugate gradient method preconditioned by multigrid with damped Jacobi smoother for various damping parameters Number of iterations for the conjugate gradient method preconditioned by multigrid with damped Jacobi smoother Algebraic error for the conjugate gradient method preconditioned by multigrid with damped Jacobi smoother Convergence rate of the conjugate gradient method preconditioned by multigrid with damped Jacobi smoother Algebraic error for the multigrid method with Gauss-Seidel smoother L2-Norm of the residual for the multigrid method with Gauss-Seidel smoother Convergence rate of the multigrid method with Gauss-Seidel smoother Algebraic error for the multigrid method with damped Jacobi smoother for various damping parameters L2-norm of the residual for the multigrid method with damped Jacobi smoother for various damping parameters Convergence rate of the multigrid method with damped Jacobi smoother for various damping parameters Algebraic error for the multigrid method with damped Jacobi smoother L2-norm of the residual for the multigrid method with damped Jacobi smoother Convergence rate of the multigrid method with damped Jacobi smoother Algebraic error of the multigrid method with conjugate gradient smoother for various smoothing steps L2-norm of the residual for the multigrid method with conjugate gradient smoother for various smoothing steps Convergence rate of the multigrid method with conjugate gradient smoother for various smoothing steps iii
7 List of Tables 5.25 Algebraic error for the multigrid method with conjugate gradient smoother L2-norm of the residual for the multigrid method with conjugate gradient smoother Convergence rate of the multigrid method with conjugate gradient smoother Convergence rate of the conjugate gradient method preconditioned by multigrid with damped Jacobi smoother under extreme geometric conditions L2-norm of the residual for the conjugate gradient method preconditioned by multigrid with damped Jacobi smoother under extreme geometric conditions. 28 iv
8 List of Algorithms List of Algorithms 4.1 Local stiffness matrix calculation Computation of the first gradient Gauss-Seidel iteration Damped Jacobi iteration Restriction in a multigrid algorithm Prolongation in a multigrid algorithm Initialisation of a multigrid operator Visualisation by OpenDX v
9 Units in Structural Mechanics Units in Structural Mechanics α T thermal coefficient of expansion [1/K] λ first Lame parameter [N/mm 2 ] µ second Lame parameter [N/mm 2 ] ν Poisson s ratio (dimensionless) σ ij i, j = x, y, z stress [N/mm 2 ] ε ij i, j = x, y, z strain (dimensionless) E modulus of elasticity [N/mm 2 ] T T 0 u i actual temperature [K] starting temperature [K] i = x, y, z deformation [mm] vi
10 Chapter 1: Introduction Chapter 1 Introduction The original definition of the term LASER, Light Amplification by Stimulated Emission of Radiation, has almost completely vanished from the common language usage. This is mainly due to the fact that lasers are used nearly everywhere in daily life. They can be found e.g. in the scanner of a supermarket check-out, in DVD players, in printers or even in modern surgery. Optical technologies are divided into five fields: LED s (light emitting diodes), displays (e.g. plasma displays), industrial image processing (e.g. optical sensors of production robots), productronics (i.e. the manufacturing of microchips) and lasers. They are the basis of the photonic industry [Kro07]. The photonic industry offers a variety of job opportunities and relies on the expertise of a number of scientists, such as computer specialists, mechanical engineers, electrical engineers and physicists. According to Kröher [Kro07], around 110,000 employees are currently working in the German photonic industry. Carl Zeiss, Jenoptik and Schott are some of the most renowned enterprises. The German photonic industry possesses both the attributes and the resources it takes to become a major global player. Experts consider it a highly dynamic field offering excellent business prospects. Within the next decade they expect an annual worldwide turnover between 500 and 800 billion euro. This development could lead to the creation of hundred thousands of qualified positions in this industry. Those small and medium-sized German businesses which have invested % of their turnover in scientific research profit the most as figures show [Kro07]. Simulation and validating the results in experiments is considered the state of the art by researchers as it allows to save both time and money. The software system LASCAD (LAser Cavity Analysis and Design) is a simulation tool for developing and improving solid-state lasers. It provides a thermal and structural finite element analysis and a numerical eigenmode analysis. Furthermore it offers ABCD Gaussian beam propagation code, wave optics beam propagation code and handles beam propagation outside cavity. For further information consider [Las07]. The aim of the overall project is to re-design the present LASCAD code. In the following thesis the thermal and structural finite element analysis implementation is dealt with in detail. Based on the old code the idea was to verify the equations of structural mechanics. First of all in chapter 2 the problem of the thermal effects is considered in detail to show why it is important to investigate the thermal and structural finite element analysis. Moreover the used geometries for laser crystals are shown and the structural mechanics formulation of linear elasticity is fully described with boundary conditions. After that in chapter 3 the finite element discretisation of the structural mechanics problem is derived in detail. Chapter 4 gives a short overview on the implemented algorithms with regard to the used libraries, followed by chapter 5, which presents the achieved results. Finally, chapter 6 concludes the results. 1
11 Chapter 2: Problem Formulation Chapter 2 Problem Formulation In this chapter the thermal effects in solid state lasers are described briefly to show in which way the temperature-caused stresses can influence the crystal. Furthermore the used geometries are introduced and the structural mechanics calculation is explained in detail because it forms the basis of the thermal and structural finite element simulation. 2.1 Thermal Effects In the case of solid-state lasers the heating of the laser crystal is caused by the optical pumping process (cf. [Iff90, pp ] or [Koe99, pp ]). This results in a temperature difference between the core and the surface of the laser crystal. The temperature gradient causes the thermal lensing effect which is shown exaggeratedly in figure 2.1. Figure 2.1: Thermal lensing effect This effect consists of the bulging of the end faces of the geometry and therefore a change in the refractive index of the laser crystal. The arising mechanical stresses even lead to a quadratic change of the radius and the refractive index. This is called the photoelastic effect. Both effects have to be compensated by correction lenses to guarantee the correct amplification of the light beam in the resonator. At the worst the high stresses cause the crystal to break. To avoid this and to prevent a large change in the refractive index, the crystal has to be cooled 2
12 Chapter 2: Problem Formulation in the corresponding areas. Another disadvantage resulting from the temperature gradient is that the efficiency of the laser beam decreases with increasing temperature gradient. 2.2 Geometries In the simulation of solid state lasers two main geometries are used: hexahedrons and cylinders. Figure 2.2 illustrates the hexahedron geometry consisting of the parameters lx, ly and lz. Figure 2.2: Hexahedron geometry Figure 2.3 shows the cylinder geometry characterised by the radius R, the length l and the size of the inner block r r. Figure 2.3: Cylinder geometry 3
13 Chapter 2: Problem Formulation 2.3 Structural Mechanics In general the infinitesimal deformation of a body is defined by a vector u = (u x, u y, u z ) T which describes how the body will be deformed in all three coordinates. In the following the basic equations in elastostatics are considered. The descriptions in this chapter are mainly based on [GHSW04, pp ]. The displacement gradient is the first basic equation. It consists of the (infinitesimal) strain tensor and the (infinitesimal) rotation tensor. The latter can be ignored because rotations do not cause any stresses in the deformed body. Therefore the displacement gradient only consists of the strain tensor which is defined by ε ij = 1 ( ) uij + u ji 2 for i, j = x, y, z. (2.1) The strain tensor is symmetric (i. e. ε ij = ε ji ) and can also be written in matrix notation ε xx ε xy ε xz ε x ε xy ε xz ε = [ε ij ] = ε yx ε yy ε yz = ε xy ε y ε yz. (2.2) ε zx ε zy ε zz ε xz ε yz ε z If i j the components are called shear strains (in literature sometimes also credited as angular deformations 1 2 γ ij). If i = j they are called direct strains. These are defined by ε xx = ε x = u x x, ε xy = 1 ( ux 2 y + u ) y, x ε yy = ε y = u y y, ε xz = 1 2 ε zz = ε z = u z z, ε yz = 1 2 ( ux z + u ) z, x ( uy z + u ) z. y The strains lead to stresses. These are described by the symmetric (i. e. σ ij = σ ji ) Cauchy stress tensor which is defined by σ xx σ xy σ xz σ x σ xy σ xz σ = [σ ij ] = σ yx σ yy σ yz = σ xy σ y σ yz. (2.4) σ zx σ zy σ zz σ xz σ yz σ z (2.3) If i j the components are tangential and are called shearing stresses (in literature also credited as τ ij ). If i = j the components are normal and are called normal stresses. The next basic equation in elastostatics is the connection between the strains and the stresses. It is defined by Hooke s Law in 3D σ ij = λ ε kk δ ij + 2µ ε ij for i, j = x, y, z. (2.5) This relation only holds for isotropic materials. λ and µ are called Lame parameters. They are defined as and moreover λ = νe (1 + ν)(1 2ν), µ = E 2(1 + ν) ε kk = ε x + ε y + ε z. 4
14 Chapter 2: Problem Formulation Furthermore ν is called Poisson s ratio, E modulus of elasticity and δ ij Kronecker delta which is defined as { 1 for i = j δ ij = 0 for i j. The stress-strain relationship is often written in a shorter vector-matrix formulation because of its symmetry only six components are relevant: or short σ x λ + 2µ λ λ ε x σ y λ λ + 2µ λ ε y σ z σ xy = λ λ λ + 2µ ε z µ 0 0 ε xy σ xz µ 0 ε xz σ yz } {{ 0 0 2µ } ε yz C The last basic equation is the equilibrium condition: (2.6) (2.7) σ = C ε. (2.8) div (σ ij ) + f j = 0 for i, j = x, y, z. (2.9) Note: The divergence in structural mechanics is applied on a 3 3 matrix in the following way: a 11 a 12 a 13 a 11 a 12 a 13 ( ) a div a 21 a 22 a 23 = a 21 a 22 a 23 := x, y, 11 a 12 a 13 a 21 a 22 a 23 z a 31 a 32 a 33 a 31 a 32 a 33 a 31 a 32 a 33 x (a 11) + y (a 21) + z (a T (2.10) 31) = x (a 12) + y (a 22) + z (a 32) x (a 13) + y (a 23) + z (a 33) The equilibrium condition states that the sum of the external forces must be zero. In the general case the body is loaded with the body forces f j but in the case of a crystal in laser simulation there are no body forces. Thus the equilibrium condition (2.9) results to: div (σ ij ) = 0 for i, j = x, y, z. (2.11) Inserting the Lame parameters in (2.5) and solving it after ε ij leads to: where ε ij = 1 + ν E σ ij ν E σ kk δij, (2.12) σ kk = σ x + σ y + σ z. 5
15 Chapter 2: Problem Formulation As a result (2.6) can be written as ε x 1 ν ν ε y ε z ε xy = 1 ν 1 ν ν ν E ν 0 0 ε xz ν 0 ε yz } {{ ν } C 1 σ x σ y σ z σ xy σ xz σ yz. Additionally the temperature influence has to be included. An increase in temperature T = (T T 0 ) (2.13) with T equalling the actual temperature and T 0 equalling the starting temperature leads to linear widespread equal strains in the case of an isotropic material. They are proportional to the increase in temperature. Thus (2.12) results to ε ij = 1 + ν E σ ij ν E σ kk δij + α T T δ ij. (2.14) α T is called thermal coefficient of expansion. Moreover (2.13) results to ε x 1 ν ν σ x α T ε y ε z ε xy = 1 ν 1 ν σ y α T ν ν σ z E ν 0 0 σ xy + α T 0 (T T 0 ) (2.15) ε xz ν 0 σ xz 0 ε yz ν σ yz 0 or short ε = C 1 σ + α T α T α T T. (2.16) Remark: The results presented in [Bra01] differ by a factor 2 in the calculations of the shear strains in (2.3) and consequently lead to wrong results for the deformation of the body. 2.4 Boundary Conditions The governing equations of structural mechanics have to be completed by boundary conditions to fully specify the problem formulation. The most frequently used boundary conditions are Dirichlet and Neumann boundary conditions (cf. e.g. [Bra01, pp ]). In the case of Dirichlet boundary conditions the unknown u is given as a function u = g(x, y, z) on Ω (2.17) or simply as a constant on the boundary Ω. Neumann boundary conditions state that the normal derivative of the unknown u is a function u = g(x, y, z) on Ω (2.18) n 6
16 Chapter 2: Problem Formulation or a constant on the boundary Ω. These are automatically fulfilled in the case of finite elements. In general there will be no unique solution if the boundary is exclusively described by pure Neumann boundary conditions. The reason for this problem is that the integration of the derivatives on the boundary results in a integration constant that cannot be defined exactly. At least one boundary has to be defined as a Dirichlet boundary and all other boundaries Neumann boundary. Then the integration constant can be determined respectively to the Dirichlet boundary. For the hexahedron geometry of the given problem this is shown in figure 2.4 where the red surface is Dirichlet boundary and the rest of the surfaces are Neumann boundary. Figure 2.4: Boundary conditions for the hexahedron This can be compared to an elastic beam that is attached to a wall. The surface touching the wall will not change its shape, however, the rest of the body will in accordance with the impact. There is a method to handle pure Neumann boundary conditions (cf. [Bra01, p ]) but this shall for the sake of simplicity not be treated here. 7
17 Chapter 3: Finite Element Discretisation Chapter 3 Finite Element Discretisation In this chapter the finite element discretisation for the linear elasticity problem in structural mechanics will be derived in detail. The common idea of the finite element method (FEM) is to transfer the strong or classic formulation of the problem into the weak or variational formulation. This has the advantage that the solution no longer has to fulfill the partial differential equation in every point. A detailed description of the FEM can be found in [DR06], [Bra01] or [SK04]. Note: It is also very important that in the short vector-matrix formulations the vectors with six components have to be re-transformed to their initial symmetric 3 3 matrices before applying the divergence operator as shown in (2.10). Equation (2.15) or rather (2.16) is the strong formulation of the problem in the domain Ω. Reordering leads to C (ε First the divergence has to be applied on both sides. This results in div [C (ε α T α T α T α T α T α T T ) = σ. (3.1) T )] = div (σ). (3.2) Here div (σ) = 0 holds because of the equilibrium condition (2.11) and therefore results: div (C ε) = div (C α T α T α T T ). (3.3) 8
18 Chapter 3: Finite Element Discretisation Now the usual steps of a finite element discretisation can be applied. (3.3) has to be multiplied by an arbitrary testfunction v = (v x, v y, v z ) T and integrated over Ω: Ω div (C ε) v d(x, y, z) = Ω div (C α T α T α T T ) v d(x, y, z). (3.4) After that all known variables are inserted to calculate the local stiffness matrices. From now on (3.4) is regarded separately with left and right-hand side. First the left-hand side is calculated: div (C ε) v d(x, y, z) = (F W ) v d(x, y, z) (3.5) Ω Ω with (1 ν)ε x + νε y + νε z (1 2ν)ε xy (1 2ν)ε xz W = (1 2ν)ε yx νε x + (1 ν)ε y + νε z (1 2ν)ε yz and (1 2ν)ε zx (1 2ν)ε zy νε x + νε y + (1 ν)ε z F = E (1 + ν)(1 2ν). The divergence is applied and the result is multiplied by the testfunction v: [ F x (1 ν) ε x v x + x ν ε y v x + x ν ε z v x + y (1 2ν) ε yx v x + Ω z (1 2ν) ε zx v x + x (1 2ν) ε xy v y + y ν ε x v y + y (1 ν) ε y v y + y ν ε z v y + z (1 2ν) ε zy v y + x (1 2ν) ε xz v z + y (1 2ν) ε yz v z + z ν ε x v z + z ν ε y v z + ] z (1 ν) ε z v z d(x, y, z). (3.6) After using the integral theorem of Gauss the partial derivatives can be applied to the v i (with i = x, y, z). The resulting boundary integrals are eliminated through given conditions, e.g. for Dirichlet boundary conditions holds v = 0 on Ω. Additionally the terms for ε ij are inserted. 9
19 Chapter 3: Finite Element Discretisation Therefore the left-hand side finally results to [ F (1 ν) u x v x x x + ν u y v x y x + ν u z z Ω v x x (1 2ν) u y x v x y (1 2ν) u x y v x y (1 2ν) u z x v x z (1 2ν) u x z v x z (1 2ν) u x y (1 ν) u y y v y x (1 2ν) u y x v y y + ν u z z v y x + ν u x x v y y (1 2ν) u z y v y y + v y z (1 2ν) u y z v y z + (3.7) 1 2 (1 2ν) u x z 1 2 (1 2ν) u z y v z x (1 2ν) u z x v z y + ν u x x v z z + ν u y y v z x (1 2ν) u y z v z z + (1 ν) u z z v z y + v ] z d(x, y, z). z Now the right-hand side is calculated. with Ω div ( C α T α T α T T ) v d(x, y, z) = Ω (F H ) v d(x, y, z) (3.8) (1 + ν) α T T 0 0 H = 0 (1 + ν) α T T (1 + ν) α T T The divergence is also applied as shown in (2.10) and the result is multiplied by the testfunction v: F x (1 + ν) α T T v x + y (1 + ν) α T T v y + z (1 + ν) α T T v z d(x, y, z). (3.9) Ω Again after using the integral theorem of Gauss the partial derivatives can be applied to the v i (with i = x, y, z). The resulting boundary integrals vanish again. So the right-hand side finally results to: [ F (1 + ν) α T T v x x + (1 + ν) α T T v y y + (1 + ν) α T T v ] z d(x, y, z). (3.10) z Ω The minus signs in (3.7) and (3.10) cancel. So the stiffness matrices result to: left-hand side: M 11 M 12 M 13 M 21 M 22 M 23 (3.11) M 31 M 32 M 33 The matrix is also symmetric based on the symmetry of the matrix C in the stress-strain relationship (2.6). Therefore it is sufficient to calculate only the six submatrices M 11, M 12, M 13, M 22, M 23 and M 33 for the further implementation of the program. 10
20 Chapter 3: Finite Element Discretisation right-hand side: F 1 F 2 F 3. (3.12) 11
21 Chapter 4: Numerical Implementation Chapter 4 Numerical Implementation In this thesis several numerical solvers were examined to achieve both, best performance and a high precision of the solution. The main task of this chapter is to show with code examples how the different methods are implemented with the used library for unstructured block grids [Uns07] in which the Colsamm library [Col07] is integrated. With the Colsamm library the local stiffness matrix calculations can be implemented in one simple Calculate call as shown in algorithm 4.1 for the local stiffness matrix M 11. double nu ; double F ; double E ; F = E / ( ( nu ) ( nu ) ) ; L o c a l s t i f f n e s s m a t r i x <double> M11( g r i d ) ; M11.Calculate ( ( ( 1. 0 nu ) d dx ( v ( ) ) d dx ( w ( ) ) + ( d dy ( v ( ) ) d dy ( w ( ) ) + d dz ( v ( ) ) d dz ( w ( ) ) ) ( nu ) 0. 5 ) F) ; Algorithm 4.1: Local stiffness matrix calculation Thus the Colsamm library reduces the errors in the implementation of the mathematical formulas which is the part of the program that is very prone to errors to a minimum. 4.1 Conjugate Gradient Method For detailed analysis and description of the conjugate gradient (CG) method see [Bra01, pp ]. Basically the CG algorithm has been implemented to test whether any of the following optimised implementations will reduce the number of iterations to produce a similar solution or not. The reduction of computational time compared to a standard implementation without any optimisation techniques results from the calculations by the Colsamm library. Operator overloading and fast expression templates allow the user to write the conjugate gradient algorithm almost like it is defined in Braess [Bra01, p. 194]. Algorithm 4.2 shows the computation of the residuals r i which are equal to the first gradients g 0i (with i = x, y, z) of the CG method in Braess. Moreover the first directions d i (with i = x, y, z) (in Braess defined as d 0i ) are calculated and the abort criterion delta is calculated (in Braess defined as the numerator of α k in the case of the first step k = 0). The expression calculation_grid means that the operation will be evaluated for every gridpoint of the previously defined calculation grid. Furthermore r i, u i, f i and d i (with i = x, y, z) have to be 12
22 Chapter 4: Numerical Implementation variables from type Variable<double> and the local stiffness matrices M lj (with l, j = 1, 2, 3) have to be variables from type Local_stiffness_matrix<double>. double d e l t a ; r x = M11( u x ) + M12( u y ) + M13( u z ) f x c a l c u l a t i o n g r i d ; r y = M12( u x ) + M22( u y ) + M23( u z ) f y c a l c u l a t i o n g r i d ; r z = M13( u x ) + M23( u y ) + M33( u z ) f z c a l c u l a t i o n g r i d ; d x = 1. 0 r x c a l c u l a t i o n g r i d ; d y = 1. 0 r y c a l c u l a t i o n g r i d ; d z = 1. 0 r z c a l c u l a t i o n g r i d ; d e l t a = product ( r x, r x, c a l c u l a t i o n g r i d ) + product ( r y, r y, c a l c u l a t i o n g r i d ) + product ( r z, r z, c a l c u l a t i o n g r i d ) ; Algorithm 4.2: Computation of the first gradient 4.2 Multigrid Method For a detailed description of multigrid (MG) methods see [TOS01]. In this thesis three different MG algorithms have been implemented. All use a V-cycle as cycling strategy. They differ only in their error smoothing procedures. Gauss-Seidel iteration, Jacobi iteration with damping parameter and conjugate gradient method have been implemented as smoothers. Without damping Jacobi the iteration would not converge for 3D finite elements. In algorithm 4.3 it is shown how easy a Gauss-Seidel iteration can be implemented with the unstructured block grids library. Here u i and f i (with i = x, y, z) have to be variables from type Variable<double> and the local stiffness matrices M lj (with l, j = 1, 2, 3) have to be variables from type Local_stiffness_matrix<double>. The operator Mkk.diag() (with k = 1, 2, 3) represents the diagonal of the differential operator Mkk. Furthermore the corresponding code example for a damped Jacobi would be implemented as shown in algorithm 4.4. f o r ( i n t i = 0 ; i < i t e r ; i ++) { u x = u x (M11( u x ) + M12( u y ) + M13( u z ) f x ) / M11.diag ( ) c a l c u l a t i o n g r i d ; u y = u y (M12( u x ) + M22( u y ) + M23( u z ) f y ) / M22.diag ( ) c a l c u l a t i o n g r i d ; u z = u z (M13( u x ) + M23( u y ) + M33( u z ) f z ) / M33.diag ( ) c a l c u l a t i o n g r i d ; } Algorithm 4.3: Gauss-Seidel iteration double omega = 0. 5 ; f o r ( i n t i = 0 ; i < i t e r ; i ++) { r x = (M11( u x ) + M12( u y ) + M13( u z ) f x ) / M11.diag ( ) c a l c u l a t i o n g r i d ; r y = (M12( u x ) + M22( u y ) + M23( u z ) f y ) / M22.diag ( ) c a l c u l a t i o n g r i d ; r z = (M13( u x ) + M23( u y ) + M33( u z ) f z ) / M33.diag ( ) c a l c u l a t i o n g r i d ; u x = u x r x omega c a l c u l a t i o n g r i d ; u y = u y r y omega c a l c u l a t i o n g r i d ; u z = u z r z omega c a l c u l a t i o n g r i d ; } Algorithm 4.4: Damped Jacobi iteration The restriction and the prolongation parts of the MG code are very prone to errors. With the MG operators of the unstructured block grids library (for further implementation details 13
23 Chapter 4: Numerical Implementation consider the handbook of [Uns07]) the code for a restriction can be reduced to algorithm 4.5 and the code for a prolongation can be reduced to algorithm 4.6. In both algorithms the right hand side f i, the unknowns u i and the residual r i (with i = x, y, z) have to be variables of type MG_array<Variable<double>>. Additionally the MG operator MGop has to be initialised as shown in algorithm 4.7 where n is the depth of the grid. i n t l e v e l ; f x [ l e v e l 1] = MGop[ l e v e l 1]. R e s t r i c t ( r x [ l e v e l ] ) ; f y [ l e v e l 1] = MGop[ l e v e l 1]. R e s t r i c t ( r y [ l e v e l ] ) ; f z [ l e v e l 1] = MGop[ l e v e l 1]. R e s t r i c t ( r z [ l e v e l ] ) ; l e v e l = l e v e l 1; Algorithm 4.5: Restriction in a multigrid algorithm i n t l e v e l ; l e v e l = l e v e l +1; r x [ l e v e l ] = MGop[ l e v e l 1]. P r o l o n g a t e ( u x [ l e v e l 1]) ; r y [ l e v e l ] = MGop[ l e v e l 1]. P r o l o n g a t e ( u y [ l e v e l 1]) ; r z [ l e v e l ] = MGop[ l e v e l 1]. P r o l o n g a t e ( u z [ l e v e l 1]) ; Algorithm 4.6: Prolongation in a multigrid algorithm i n t n ; MG array<m u l t i g r i d o p e r a t o r > MGop( n 1) ; f o r ( i n t i = 0 ; i < n 1; i ++){ MGop( i ) = new M u l t i g r i d o p e r a t o r ( b l o c k g r i d s [ i ], b l o c k g r i d s [ i +1]) ; } Algorithm 4.7: Initialisation of a multigrid operator 4.3 Preconditioned Conjugate Gradient Method For detailed information how the preconditioned conjugate gradient (PreCG) method can be implemented and an analysis which preconditioners are suited for the CG method refer to [Bra01, pp ]. In this thesis the PreCG method has been implemented with the MG method as a preconditioner. The MG methods again vary only in their error smoothing procedures. This time only Gauss-Seidel and damped Jacobi iteration were used as smoothers. Trottenberg et al. discuss such an implementation [TOS01, pp ] in detail. They came to the conclusion that for unstructured grids as implemented in this thesis MG as a preconditioner is well suited. 4.4 Visual Validation Besides the numerical analysis the results of the algorithms have been validated visually by testing them with different temperature functions. The results have been visualised by OpenDX. The implemented print-function can be seen in algorithm 4.8. Here the file u_x.dx contains the deformation of the body in x-direction with respect to the deformations in all three coordinates u_x, u_y and u_z. 14
24 Chapter 4: Numerical Implementation ofstream FILE ; FILE.open ( u x.dx, std : : i o s : : out ) ; u x. P r i n t D x ( u x, u y, u z, &FILE) ; F I L E. c l o s e ( ) ; Algorithm 4.8: Visualisation by OpenDX 15
25 Chapter 5: Numerical Results Chapter 5 Numerical Results 5.1 Formulas Algebraic Error The algebraic error is defined by u û 2. (5.1) u is the exact solution and û is the approximated solution of the algorithm. In the case of the structural mechanics equations the exact solutions are not as easy to calculate as e.g. for a Poisson problem. Therefore the implemented algorithms approximate the exact solution by calculating with higher precision than necessary. Thus formula (5.1) has to be written as where u e is the approximated exact solution (cf. [Pfl06, p ]) Convergence Rate In general the convergence rate is estimated by u e û 2, (5.2) u i+2 u i+1 2 u i+1 x i 2 q with 0 q 1. (5.3) The convergence rate can also be approximated by the behaviour of the residual The approximated convergence rate q results to r i = A u i b. (5.4) r i+1 2 r i 2 q with 0 q 1 (5.5) or rather ( ri+s+1 2 ) 1 s q with 0 q 1 (5.6) r i 2 for large i and s 1 20 (cf. [Pfl06, p. 45]. 16
26 Chapter 5: Numerical Results 5.2 Test Conditions Test Case 1: Cylinder with constant temperature function Geometry: R = 4.0 mm, r = 1.0 mm, l = 9.0 mm, T = K, E = N/mm 2, α T = /K, ν = Test Case 2: Cylinder with non-constant temperature function Geometry: R = 4.0 mm, r = 1.0 mm, l = 9.0 mm, T = x y K, E = N/mm 2, α T = /K, ν = Test Case 3: Hexahedron with constant temperature function Geometry: lx = 9.0 mm, ly = 4.0 mm, lz = 4.0 mm, T = K, E = N/mm 2, α T = /K, ν = Test Case 4: Hexahedron with non-constant temperature function Geometry: lx = 9.0 mm, ly = 4.0 mm, lz = 4.0 mm, T = (2.0 y) (2.0 z) K, E = N/mm 2, α T = /K, ν = Test Case 5: Cylinder with small inner block r r and constant temperature function Geometry: R = 4.0 mm, r = 0.1 mm, l = 9.0 mm, T = K, E = N/mm 2, α T = /K, ν =
27 Chapter 5: Numerical Results Test Case 6: Cylinder with small inner block r r and non-constant temperature function Geometry: R = 4.0 mm, r = 0.1 mm, l = 9.0 mm, T = x y K, E = N/mm 2, α T = /K, ν =
28 Chapter 5: Numerical Results 5.3 Conjugate Gradient number of gridpoints in L2-norm of the residual each direction Test Case 1 Test Case 2 Test Case 3 Test Case ( ) 175 ( ) 102 ( ) 92 ( ) ( ) 365 ( ) 186 ( ) 173 ( ) ( ) 543 ( ) 272 ( ) 245 ( ) Table 5.1: Number of iterations for the conjugate gradient method with corresponding L2- norm of the residual in brackets number of gridpoints in algebraic error each direction Test Case 1 Test Case 2 Test Case 3 Test Case Table 5.2: Algebraic error for the conjugate gradient method with u e after 1000 iterations number of gridpoints in convergence rate each direction Test Case 1 Test Case 2 Test Case 3 Test Case (0.95 after 20th) Table 5.3: Convergence rate of the conjugate gradient method measured after 40 iterations 19
29 Chapter 5: Numerical Results 5.4 Preconditioned Conjugate Gradient Preconditioner: Multigrid with Gauss-Seidel Smoother The iterations for this algorithm are fixed to 250 iterations because otherwise the algorithm does not converge fast enough. number of gridpoints algebraic error in each direction Test Case 1 Test Case 2 Test Case 3 Test Case Table 5.4: Algebraic error for the conjugate gradient method preconditioned by multigrid with Gauss-Seidel smoother with u e after 600 iterations number of gridpoints L2-norm of the residual in each direction Test Case 1 Test Case 2 Test Case 3 Test Case Table 5.5: L2-norm of the residual for the conjugate gradient method preconditioned by multigrid with Gauss-Seidel smoother after 250 iterations number of gridpoints convergence rate in each direction Test Case 1 Test Case 2 Test Case 3 Test Case Table 5.6: Convergence rate of the conjugate gradient method preconditioned by multigrid with Gauss-Seidel smoother measured after 40 iterations 20
30 Chapter 5: Numerical Results Preconditioner: Multigrid with Damped Jacobi Smoother Examination of the Damping Parameter damping iterations parameter ω Test Case 1 Test Case 2 Test Case 3 Test Case ( ) 138 ( ) no convergence no convergence ( ) 39 ( ) no convergence no convergence ( ) 30 ( ) 20 ( ) 19 ( ) ( ) 27 ( ) 17 ( ) 16 ( ) 0.5 no convergence no convergence 16 ( ) 16 ( ) 0.6 no convergence no convergence 14 ( ) 22 ( ) Table 5.7: Iterations of the conjugate gradient method preconditioned by multigrid with damped Jacobi smoother for various damping parameters for depth of grid 3 with corresponding L2-norm of the residual in brackets damping algebraic error parameter ω Test Case 1 Test Case 2 Test Case 3 Test Case no convergence no convergence no convergence no convergence no convergence no convergence no convergence no convergence Table 5.8: Algebraic error of the conjugate gradient method preconditioned by multigrid with damped Jacobi smoother for various damping parameters for depth of grid 3 with u e after 500 iterations convergence rate damping measured after 20 iterations measured after 5 iterations parameter ω Test Case 1 Test Case 2 Test Case 3 Test Case no convergence no convergence no convergence no convergence no convergence no convergence no convergence no convergence Table 5.9: Convergence rate of the conjugate gradient method preconditioned by multigrid with damped Jacobi smoother for various damping parameters for depth of grid 3 21
31 Chapter 5: Numerical Results Tests with Optimal Damping Parameter iterations depth of grid Test Case 1 Test Case 2 Test Case 3 Test Case 4 ω = 0.4 ω = 0.4 ω = 0.6 ω = ( ) 27 ( ) 14 ( ) 16 ( ) 4 37 ( ) 37 ( ) 16 ( ) 21 ( ) 5 47 ( ) 46 ( ) 16 ( ) 25 ( ) Table 5.10: Number of iterations for the conjugate gradient method preconditioned by multigrid with damped Jacobi smoother with corresponding L2-norm of the residual in brackets algebraic error depth of grid Test Case 1 Test Case 2 Test Case 3 Test Case 4 ω = 0.4 ω = 0.4 ω = 0.6 ω = Table 5.11: Algebraic error for the conjugate gradient method preconditioned by multigrid with damped Jacobi smoother with u e after 500 iterations convergence rate measured after 20 iterations measured after 5 iterations depth of grid Test Case 1 Test Case 2 Test Case 3 Test Case 4 ω = 0.4 ω = 0.4 ω = 0.6 ω = Table 5.12: Convergence rate of the conjugate gradient method preconditioned by multigrid with damped Jacobi smoother 22
32 Chapter 5: Numerical Results 5.5 Multigrid with Gauss-Seidel Smoother The iterations for this algorithm are fixed to 250 iterations to compare the results with the other multigrid algorithms. algebraic error depth of grid Test Case 1 Test Case 2 Test Case 3 Test Case Table 5.13: Algebraic error for the multigrid method with Gauss-Seidel smoother with u e after 600 iterations L2-norm of the residual depth of grid Test Case 1 Test Case 2 Test Case 3 Test Case Table 5.14: L2-Norm of the residual for the multigrid method with Gauss-Seidel smoother after 250 iterations convergence rate depth of grid Test Case 1 Test Case 2 Test Case 3 Test Case Table 5.15: Convergence rate of the multigrid method with Gauss-Seidel smoother measured after 30 iterations 23
33 Chapter 5: Numerical Results 5.6 Multigrid with Damped Jacobi Smoother Examination of the Damping Parameter The iterations for this algorithm are fixed to 250 iterations to compare the results with the other multigrid algorithms. damping algebraic error parameter ω Test Case 1 Test Case 2 Test Case 3 Test Case no convergence no convergence no convergence no convergence no convergence no convergence no convergence no convergence Table 5.16: Algebraic error for the multigrid method with damped Jacobi smoother for various damping parameters for depth of grid 3 with u e after 600 iterations damping L2-norm of the residual parameter ω Test Case 1 Test Case 2 Test Case 3 Test Case no convergence no convergence no convergence no convergence no convergence no convergence no convergence no convergence Table 5.17: L2-norm of the residual of the multigrid method with damped Jacobi smoother for various damping parameters for depth of grid 3 after 250 iterations damping convergence rate parameter ω Test Case 1 Test Case 2 Test Case 3 Test Case no convergence no convergence no convergence no convergence no convergence no convergence no convergence no convergence Table 5.18: Convergence rate of the multigrid method with damped Jacobi smoother for various damping parameters for depth of grid 3 measured after 20 iterations 24
34 Chapter 5: Numerical Results Tests with Optimal Damping Parameter algebraic error depth of grid Test Case 1 Test Case 2 Test Case 3 Test Case 4 ω = 0.4 ω = 0.4 ω = 0.6 ω = Table 5.19: Algebraic error for the multigrid method with damped Jacobi smoother with u e after 600 iterations L2-norm of the residual depth of grid Test Case 1 Test Case 2 Test Case 3 Test Case 4 ω = 0.4 ω = 0.4 ω = 0.6 ω = Table 5.20: L2-norm of the residual for the multigrid method with damped Jacobi smoother after 250 iterations convergence rate depth of grid Test Case 1 Test Case 2 Test Case 3 Test Case 4 ω = 0.4 ω = 0.4 ω = 0.6 ω = Table 5.21: Convergence rate of the multigrid method with damped Jacobi smoother measured after 20 iterations 25
35 Chapter 5: Numerical Results 5.7 Multigrid with Conjugate Gradient Smoother Examination of the Number of Smoothing Steps The iterations for this algorithm are fixed to 250 iterations to compare the results with the other multigrid algorithms. number of algebraic error smoothing steps ω Test Case 1 Test Case 2 Test Case 3 Test Case Table 5.22: Algebraic error of the multigrid method with conjugate gradient smoother for various smoothing steps for depth of grid 3 with u e after 600 iterations number of L2-norm of the residual smoothing steps ω Test Case 1 Test Case 2 Test Case 3 Test Case Table 5.23: L2-norm of the residual for the multigrid method with conjugate gradient smoother for various smoothing steps for depth of grid 3 after 250 iterations number of convergence rate smoothing steps ω Test Case 1 Test Case 2 Test Case 3 Test Case Table 5.24: Convergence rate of the multigrid method with conjugate gradient smoother for various smoothing steps for depth of grid 3 after 20 iterations 26
36 Chapter 5: Numerical Results Tests with Optimal Number of Smoothing Steps algebraic error depth of grid Test Case 1 Test Case 2 Test Case 3 Test Case Table 5.25: Algebraic error for the multigrid method with conjugate gradient smoother with 10 smoothing steps with u e after 600 iterations L2-norm of the residual depth of grid Test Case 1 Test Case 2 Test Case 3 Test Case Table 5.26: L2-norm of the residual for the multigrid method with conjugate gradient smoother with 10 smoothing steps after 250 iterations convergence rate depth of grid Test Case 1 Test Case 2 Test Case 3 Test Case Table 5.27: Convergence rate of the multigrid method with conjugate gradient smoother with 10 smoothing steps measured after 20 iterations 27
37 Chapter 5: Numerical Results 5.8 Special Test Problems The conjugate gradient method preconditioned by multigrid with damped Jacobi smoother was tested under extreme geometric conditions. The damping parameter ω was set to 0.2. convergence rate after iteration Test Case 5 Test Case Table 5.28: Convergence rate of the conjugate gradient method preconditioned by multigrid with damped Jacobi smoother under extreme geometric conditions L2-norm of the residual after iteration Test Case 5 Test Case Table 5.29: L2-norm of the residual for the conjugate gradient method preconditioned by multigrid with damped Jacobi smoother under extreme geometric conditions 5.9 Visualisation of the Results The following pictures show the results of the different temperature functions for the different geometries. Both are tested with a constant and a non-constant temperature function. In general the deformations are infinitesimally small. Therefore large multiplication factors were used to show an exaggerated deformation of the laser crystals. Furthermore the exaggerated pictures show very clearly the correctness of the implemented formulas. The applied constant function T = K (5.7) results in an enlargement of the initial volume. The Dirichlet boundary remains fixed and the rest of the body gets pumped up. Figure 5.1 shows this effect for u_z for the cylinder and figure 5.2 for u_x for the hexahedron. In the case of the cylinder the applied non-constant function T = x y K (5.8) results in the symmetric image shown in figure 5.3, which shows the deformation of u_z. In the case of the hexahedron the applied non-constant function T = (2.0 y) (2.0 z) K (5.9) results in the symmetric image depicted in figure 5.4 for u_x. All other deformations are rotated respectively but the above mentioned pictures show the results clearer and more understandable. 28
38 Chapter 5: Numerical Results Figure 5.1: Deformation of the cylinder for a constant temperature function Figure 5.2: Deformation of the hexahedron for a constant temperature function 29
39 Chapter 5: Numerical Results Figure 5.3: Deformation of the cylinder for a symmetric temperature function Figure 5.4: Deformation of the hexahedron for a symmetric temperature function 30
40 Chapter 6: Conclusions Chapter 6 Conclusions In general the implemented algorithms for the cylinder geometry are slower than for the hexahedron geometry. This is based on the fact that despite the same parameters for the depth of grid or rather the number of gridpoints the produced grid of the unstructured block grids library for the cylinder geometry is considerable finer. Moreover the implemented algorithms which base on a multigrid method with Gauss-Seidel smoother are worse than those with damped Jacobi smoother. This results from the fact that the Gauss-Seidel method is not symmetric in contrast to the damped Jacobi method (c.f. [Hac93, p ]). The implemented multigrid method with conjugate gradient smoother seems to produce quite good results. But one has to consider that they are produced with ten very time-consuming pre and post-smoothing steps each. Thus the aim of a iterative solver is to smooth the high frequency errors in about two iterations is not fulfilled in this method. Therefore the good results of this method are mostly based on the iteration of the conjugate gradient method and not on the multigrid algorithm. The best results can be achieved with the methods based on the multigrid method with damped Jacobi smoother. The pure multigrid method with damped Jacobi smoother produces good results for the algebraic error and the convergence rate. The large values for the algebraic error seem to be too good and therefore it could have been better to set the number of iterations to get the approximated exact solution larger than 600 iterations. Moreover the 250 iterations for the approximated solution could also be reduced because the convergence of the L2-norm of the residual is in most cases guaranteed before. The even faster results regarding the iterations can be achieved by the preconditioned conjugate gradient method with multigrid with damped Jacobi smoother. This method has also been tested under extreme geometric conditions. Nevertheless the convergence rates at the beginning of the algorithm are good but decrease after around 1500 steps. For this further investigations have to be made. Moreover the damping parameter ω is strongly dependent on the geometry, e.g. the preconditioned conjugate gradient method with multigrid with damped Jacobi smoother applied on Test Case 3 and 4 produces fastly good results for ω = 0.4 but Test Case 5 and 6 do not converge for ω = 0.4 but for ω =
Number of Voronoi-relevant vectors in lattices with respect to arbitrary norms
Fakultät für Elektrotechnik, Informatik und Mathematik Arbeitsgruppe Codes und Kryptographie Number of Voronoi-relevant vectors in lattices with respect to arbitrary norms Master s Thesis in Partial Fulfillment
More information3D Elasticity Theory
3D lasticity Theory Many structural analysis problems are analysed using the theory of elasticity in which Hooke s law is used to enforce proportionality between stress and strain at any deformation level.
More information12. Stresses and Strains
12. Stresses and Strains Finite Element Method Differential Equation Weak Formulation Approximating Functions Weighted Residuals FEM - Formulation Classification of Problems Scalar Vector 1-D T(x) u(x)
More informationPEAT SEISMOLOGY Lecture 2: Continuum mechanics
PEAT8002 - SEISMOLOGY Lecture 2: Continuum mechanics Nick Rawlinson Research School of Earth Sciences Australian National University Strain Strain is the formal description of the change in shape of a
More informationLecture 8. Stress Strain in Multi-dimension
Lecture 8. Stress Strain in Multi-dimension Module. General Field Equations General Field Equations [] Equilibrium Equations in Elastic bodies xx x y z yx zx f x 0, etc [2] Kinematics xx u x x,etc. [3]
More informationBasic Equations of Elasticity
A Basic Equations of Elasticity A.1 STRESS The state of stress at any point in a loaded bo is defined completely in terms of the nine components of stress: σ xx,σ yy,σ zz,σ xy,σ yx,σ yz,σ zy,σ zx,andσ
More informationFinite Element Method in Geotechnical Engineering
Finite Element Method in Geotechnical Engineering Short Course on + Dynamics Boulder, Colorado January 5-8, 2004 Stein Sture Professor of Civil Engineering University of Colorado at Boulder Contents Steps
More informationUsing ParExPDE for the numerical solution of bioelectric field problems
Using ParExPDE for the numerical solution of bioelectric field problems Christoph Freundl Friedrich-Alexander-Universität Erlangen-Nürnberg Christoph.Freundl@informatik.uni-erlangen.de Harald Köstler Friedrich-Alexander-Universität
More informationNumerical Evaluation of Functionals based on Variance Minimisation
Oliver Pajonk Numerical Evaluation of Functionals based on Variance Minimisation Diploma Thesis b a f x dx w i f x i i a b Pajonk, Oliver: Numerical Evaluation of Functionals based on Variance Minimisation
More informationSolution of Matrix Eigenvalue Problem
Outlines October 12, 2004 Outlines Part I: Review of Previous Lecture Part II: Review of Previous Lecture Outlines Part I: Review of Previous Lecture Part II: Standard Matrix Eigenvalue Problem Other Forms
More informationMechanics of Earthquakes and Faulting
Mechanics of Earthquakes and Faulting www.geosc.psu.edu/courses/geosc508 Overview Milestones in continuum mechanics Concepts of modulus and stiffness. Stress-strain relations Elasticity Surface and body
More informationFundamentals of Linear Elasticity
Fundamentals of Linear Elasticity Introductory Course on Multiphysics Modelling TOMASZ G. ZIELIŃSKI bluebox.ippt.pan.pl/ tzielins/ Institute of Fundamental Technological Research of the Polish Academy
More informationThe FEA Code of LASCAD
The FEA Code of LASCAD Konrad Altmann LAS-CAD GmbH Heat removal and thermal lensing constitute key problems for the design of laser cavities for solid-state lasers (SSL, DPSSL etc.). To compute thermal
More informationNDT&E Methods: UT. VJ Technologies CAVITY INSPECTION. Nondestructive Testing & Evaluation TPU Lecture Course 2015/16.
CAVITY INSPECTION NDT&E Methods: UT VJ Technologies NDT&E Methods: UT 6. NDT&E: Introduction to Methods 6.1. Ultrasonic Testing: Basics of Elasto-Dynamics 6.2. Principles of Measurement 6.3. The Pulse-Echo
More informationChapter 9: Differential Analysis of Fluid Flow
of Fluid Flow Objectives 1. Understand how the differential equations of mass and momentum conservation are derived. 2. Calculate the stream function and pressure field, and plot streamlines for a known
More information3 2 6 Solve the initial value problem u ( t) 3. a- If A has eigenvalues λ =, λ = 1 and corresponding eigenvectors 1
Math Problem a- If A has eigenvalues λ =, λ = 1 and corresponding eigenvectors 1 3 6 Solve the initial value problem u ( t) = Au( t) with u (0) =. 3 1 u 1 =, u 1 3 = b- True or false and why 1. if A is
More informationContinuum Mechanics. Continuum Mechanics and Constitutive Equations
Continuum Mechanics Continuum Mechanics and Constitutive Equations Continuum mechanics pertains to the description of mechanical behavior of materials under the assumption that the material is a uniform
More informationChapter 9: Differential Analysis
9-1 Introduction 9-2 Conservation of Mass 9-3 The Stream Function 9-4 Conservation of Linear Momentum 9-5 Navier Stokes Equation 9-6 Differential Analysis Problems Recall 9-1 Introduction (1) Chap 5: Control
More informationMultigrid Methods and their application in CFD
Multigrid Methods and their application in CFD Michael Wurst TU München 16.06.2009 1 Multigrid Methods Definition Multigrid (MG) methods in numerical analysis are a group of algorithms for solving differential
More informationKasetsart University Workshop. Multigrid methods: An introduction
Kasetsart University Workshop Multigrid methods: An introduction Dr. Anand Pardhanani Mathematics Department Earlham College Richmond, Indiana USA pardhan@earlham.edu A copy of these slides is available
More informationThe amount of work to construct each new guess from the previous one should be a small multiple of the number of nonzeros in A.
AMSC/CMSC 661 Scientific Computing II Spring 2005 Solution of Sparse Linear Systems Part 2: Iterative methods Dianne P. O Leary c 2005 Solving Sparse Linear Systems: Iterative methods The plan: Iterative
More informationChapter 2 Governing Equations
Chapter Governing Equations Abstract In this chapter fundamental governing equations for propagation of a harmonic disturbance on the surface of an elastic half-space is presented. The elastic media is
More informationMECH 5312 Solid Mechanics II. Dr. Calvin M. Stewart Department of Mechanical Engineering The University of Texas at El Paso
MECH 5312 Solid Mechanics II Dr. Calvin M. Stewart Department of Mechanical Engineering The University of Texas at El Paso Table of Contents Thermodynamics Derivation Hooke s Law: Anisotropic Elasticity
More informationThe Conjugate Gradient Method
The Conjugate Gradient Method Classical Iterations We have a problem, We assume that the matrix comes from a discretization of a PDE. The best and most popular model problem is, The matrix will be as large
More informationChapter Two: Numerical Methods for Elliptic PDEs. 1 Finite Difference Methods for Elliptic PDEs
Chapter Two: Numerical Methods for Elliptic PDEs Finite Difference Methods for Elliptic PDEs.. Finite difference scheme. We consider a simple example u := subject to Dirichlet boundary conditions ( ) u
More informationScientific Computing II
Technische Universität München ST 008 Institut für Informatik Dr. Miriam Mehl Scientific Computing II Final Exam, July, 008 Iterative Solvers (3 pts + 4 extra pts, 60 min) a) Steepest Descent and Conjugate
More informationPlane and axisymmetric models in Mentat & MARC. Tutorial with some Background
Plane and axisymmetric models in Mentat & MARC Tutorial with some Background Eindhoven University of Technology Department of Mechanical Engineering Piet J.G. Schreurs Lambèrt C.A. van Breemen March 6,
More informationChapter 7 Iterative Techniques in Matrix Algebra
Chapter 7 Iterative Techniques in Matrix Algebra Per-Olof Persson persson@berkeley.edu Department of Mathematics University of California, Berkeley Math 128B Numerical Analysis Vector Norms Definition
More informationMacroscopic theory Rock as 'elastic continuum'
Elasticity and Seismic Waves Macroscopic theory Rock as 'elastic continuum' Elastic body is deformed in response to stress Two types of deformation: Change in volume and shape Equations of motion Wave
More informationRock Rheology GEOL 5700 Physics and Chemistry of the Solid Earth
Rock Rheology GEOL 5700 Physics and Chemistry of the Solid Earth References: Turcotte and Schubert, Geodynamics, Sections 2.1,-2.4, 2.7, 3.1-3.8, 6.1, 6.2, 6.8, 7.1-7.4. Jaeger and Cook, Fundamentals of
More informationLinear Elasticity ( ) Objectives. Equipment. Introduction. ε is then
Linear Elasticity Objectives In this lab you will measure the Young s Modulus of a steel wire. In the process, you will gain an understanding of the concepts of stress and strain. Equipment Young s Modulus
More informationAnalytical Mechanics: Elastic Deformation
Analytical Mechanics: Elastic Deformation Shinichi Hirai Dept. Robotics, Ritsumeikan Univ. Shinichi Hirai (Dept. Robotics, Ritsumeikan Univ.) Analytical Mechanics: Elastic Deformation 1 / 60 Agenda Agenda
More information6. Iterative Methods for Linear Systems. The stepwise approach to the solution...
6 Iterative Methods for Linear Systems The stepwise approach to the solution Miriam Mehl: 6 Iterative Methods for Linear Systems The stepwise approach to the solution, January 18, 2013 1 61 Large Sparse
More informationA Study on Numerical Solution to the Incompressible Navier-Stokes Equation
A Study on Numerical Solution to the Incompressible Navier-Stokes Equation Zipeng Zhao May 2014 1 Introduction 1.1 Motivation One of the most important applications of finite differences lies in the field
More informationLehrstuhl für Informatik 10 (Systemsimulation)
FRIEDRICH-ALEXANDER-UNIVERSITÄT ERLANGEN-NÜRNBERG INSTITUT FÜR INFORMATIK (MATHEMATISCHE MASCHINEN UND DATENVERARBEITUNG) Lehrstuhl für Informatik 10 (Systemsimulation) Comparison of two implementations
More informationUNIVERSITY OF SASKATCHEWAN ME MECHANICS OF MATERIALS I FINAL EXAM DECEMBER 13, 2008 Professor A. Dolovich
UNIVERSITY OF SASKATCHEWAN ME 313.3 MECHANICS OF MATERIALS I FINAL EXAM DECEMBER 13, 2008 Professor A. Dolovich A CLOSED BOOK EXAMINATION TIME: 3 HOURS For Marker s Use Only LAST NAME (printed): FIRST
More informationBoundary Value Problems - Solving 3-D Finite-Difference problems Jacob White
Introduction to Simulation - Lecture 2 Boundary Value Problems - Solving 3-D Finite-Difference problems Jacob White Thanks to Deepak Ramaswamy, Michal Rewienski, and Karen Veroy Outline Reminder about
More information3D and Planar Constitutive Relations
3D and Planar Constitutive Relations A School on Mechanics of Fibre Reinforced Polymer Composites Knowledge Incubation for TEQIP Indian Institute of Technology Kanpur PM Mohite Department of Aerospace
More informationIntroduction to Seismology Spring 2008
MIT OpenCourseWare http://ocw.mit.edu 12.510 Introduction to Seismology Spring 2008 For information about citing these materials or our Terms of Use, visit: http://ocw.mit.edu/terms. Stress and Strain
More informationABHELSINKI UNIVERSITY OF TECHNOLOGY
ABHELSINKI UNIVERSITY OF TECHNOLOGY TECHNISCHE UNIVERSITÄT HELSINKI UNIVERSITE DE TECHNOLOGIE D HELSINKI A posteriori error analysis for the Morley plate element Jarkko Niiranen Department of Structural
More informationStabilization and Acceleration of Algebraic Multigrid Method
Stabilization and Acceleration of Algebraic Multigrid Method Recursive Projection Algorithm A. Jemcov J.P. Maruszewski Fluent Inc. October 24, 2006 Outline 1 Need for Algorithm Stabilization and Acceleration
More informationVariational principles in mechanics
CHAPTER Variational principles in mechanics.1 Linear Elasticity n D Figure.1: A domain and its boundary = D [. Consider a domain Ω R 3 with its boundary = D [ of normal n (see Figure.1). The problem of
More informationA short review of continuum mechanics
A short review of continuum mechanics Professor Anette M. Karlsson, Department of Mechanical ngineering, UD September, 006 This is a short and arbitrary review of continuum mechanics. Most of this material
More informationExercise: concepts from chapter 5
Reading: Fundamentals of Structural Geology, Ch 5 1) Study the oöids depicted in Figure 1a and 1b. Figure 1a Figure 1b Figure 1. Nearly undeformed (1a) and significantly deformed (1b) oöids with spherulitic
More informationMechanics PhD Preliminary Spring 2017
Mechanics PhD Preliminary Spring 2017 1. (10 points) Consider a body Ω that is assembled by gluing together two separate bodies along a flat interface. The normal vector to the interface is given by n
More informationElements of Continuum Elasticity. David M. Parks Mechanics and Materials II February 25, 2004
Elements of Continuum Elasticity David M. Parks Mechanics and Materials II 2.002 February 25, 2004 Solid Mechanics in 3 Dimensions: stress/equilibrium, strain/displacement, and intro to linear elastic
More informationContent. Department of Mathematics University of Oslo
Chapter: 1 MEK4560 The Finite Element Method in Solid Mechanics II (January 25, 2008) (E-post:torgeiru@math.uio.no) Page 1 of 14 Content 1 Introduction to MEK4560 3 1.1 Minimum Potential energy..............................
More informationA note on accurate and efficient higher order Galerkin time stepping schemes for the nonstationary Stokes equations
A note on accurate and efficient higher order Galerkin time stepping schemes for the nonstationary Stokes equations S. Hussain, F. Schieweck, S. Turek Abstract In this note, we extend our recent work for
More informationUNCONVENTIONAL FINITE ELEMENT MODELS FOR NONLINEAR ANALYSIS OF BEAMS AND PLATES
UNCONVENTIONAL FINITE ELEMENT MODELS FOR NONLINEAR ANALYSIS OF BEAMS AND PLATES A Thesis by WOORAM KIM Submitted to the Office of Graduate Studies of Texas A&M University in partial fulfillment of the
More information2 Introduction to mechanics
21 Motivation Thermodynamic bodies are being characterized by two competing opposite phenomena, energy and entropy which some researchers in thermodynamics would classify as cause and chance or determinancy
More informationGame Physics. Game and Media Technology Master Program - Utrecht University. Dr. Nicolas Pronost
Game and Media Technology Master Program - Utrecht University Dr. Nicolas Pronost Soft body physics Soft bodies In reality, objects are not purely rigid for some it is a good approximation but if you hit
More informationUsing MATLAB and. Abaqus. Finite Element Analysis. Introduction to. Amar Khennane. Taylor & Francis Croup. Taylor & Francis Croup,
Introduction to Finite Element Analysis Using MATLAB and Abaqus Amar Khennane Taylor & Francis Croup Boca Raton London New York CRC Press is an imprint of the Taylor & Francis Croup, an informa business
More informationMechanics of Earthquakes and Faulting
Mechanics of Earthquakes and Faulting www.geosc.psu.edu/courses/geosc508 Standard Solids and Fracture Fluids: Mechanical, Chemical Effects Effective Stress Dilatancy Hardening and Stability Mead, 1925
More information3.2 Hooke s law anisotropic elasticity Robert Hooke ( ) Most general relationship
3.2 Hooke s law anisotropic elasticity Robert Hooke (1635-1703) Most general relationship σ = C ε + C ε + C ε + C γ + C γ + C γ 11 12 yy 13 zz 14 xy 15 xz 16 yz σ = C ε + C ε + C ε + C γ + C γ + C γ yy
More informationLecture notes Models of Mechanics
Lecture notes Models of Mechanics Anders Klarbring Division of Mechanics, Linköping University, Sweden Lecture 7: Small deformation theories Klarbring (Mechanics, LiU) Lecture notes Linköping 2012 1 /
More informationAMS526: Numerical Analysis I (Numerical Linear Algebra)
AMS526: Numerical Analysis I (Numerical Linear Algebra) Lecture 24: Preconditioning and Multigrid Solver Xiangmin Jiao SUNY Stony Brook Xiangmin Jiao Numerical Analysis I 1 / 5 Preconditioning Motivation:
More informationSoft Bodies. Good approximation for hard ones. approximation breaks when objects break, or deform. Generalization: soft (deformable) bodies
Soft-Body Physics Soft Bodies Realistic objects are not purely rigid. Good approximation for hard ones. approximation breaks when objects break, or deform. Generalization: soft (deformable) bodies Deformed
More informationGauss-Seidel method. Dr. Motilal Panigrahi. Dr. Motilal Panigrahi, Nirma University
Gauss-Seidel method Dr. Motilal Panigrahi Solving system of linear equations We discussed Gaussian elimination with partial pivoting Gaussian elimination was an exact method or closed method Now we will
More informationSEMM Mechanics PhD Preliminary Exam Spring Consider a two-dimensional rigid motion, whose displacement field is given by
SEMM Mechanics PhD Preliminary Exam Spring 2014 1. Consider a two-dimensional rigid motion, whose displacement field is given by u(x) = [cos(β)x 1 + sin(β)x 2 X 1 ]e 1 + [ sin(β)x 1 + cos(β)x 2 X 2 ]e
More informationLinearized theory of elasticity
Linearized theory of elasticity Arie Verhoeven averhoev@win.tue.nl CASA Seminar, May 24, 2006 Seminar: Continuum mechanics 1 Stress and stress principles Bart Nowak March 8 2 Strain and deformation Mark
More informationConstitutive Equations
Constitutive quations David Roylance Department of Materials Science and ngineering Massachusetts Institute of Technology Cambridge, MA 0239 October 4, 2000 Introduction The modules on kinematics (Module
More informationInverse Design (and a lightweight introduction to the Finite Element Method) Stelian Coros
Inverse Design (and a lightweight introduction to the Finite Element Method) Stelian Coros Computational Design Forward design: direct manipulation of design parameters Level of abstraction Exploration
More informationIntroduction, Basic Mechanics 2
Computational Biomechanics 18 Lecture : Introduction, Basic Mechanics Ulli Simon, Lucas Engelhardt, Martin Pietsch Scientific Computing Centre Ulm, UZWR Ulm University Contents Mechanical Basics Moment
More informationDiscrete Projection Methods for Incompressible Fluid Flow Problems and Application to a Fluid-Structure Interaction
Discrete Projection Methods for Incompressible Fluid Flow Problems and Application to a Fluid-Structure Interaction Problem Jörg-M. Sautter Mathematisches Institut, Universität Düsseldorf, Germany, sautter@am.uni-duesseldorf.de
More informationCONSTITUTIVE RELATIONS FOR LINEAR ELASTIC SOLIDS
Chapter 9 CONSTITUTIV RLATIONS FOR LINAR LASTIC SOLIDS Figure 9.1: Hooke memorial window, St. Helen s, Bishopsgate, City of London 211 212 CHAPTR 9. CONSTITUTIV RLATIONS FOR LINAR LASTIC SOLIDS 9.1 Mechanical
More informationFinite Element Method (FEM)
Finite Element Method (FEM) The finite element method (FEM) is the oldest numerical technique applied to engineering problems. FEM itself is not rigorous, but when combined with integral equation techniques
More informationImplementation of test scenarios for incompressible flow using a divergence free finite element approach
Bachelor s Thesis Implementation of test scenarios for incompressible flow using a divergence free finite element approach Author: Benjamin Rüth Maistraße 54 8337 München Field of Studies: Informatics,
More informationContinuum Mechanics and the Finite Element Method
Continuum Mechanics and the Finite Element Method 1 Assignment 2 Due on March 2 nd @ midnight 2 Suppose you want to simulate this The familiar mass-spring system l 0 l y i X y i x Spring length before/after
More informationCompact High Order Finite Difference Stencils for Elliptic Variable Coefficient and Interface Problems
Compact High Order Finite Difference Stencils for Elliptic Variable Coefficient and Interface Problems Daniel Ritter 1, Ulrich Rüde 1, Björn Gmeiner 1, Rochus Schmid 2 Copper Mountain, March 18th, 2013
More informationConjugate Gradients: Idea
Overview Steepest Descent often takes steps in the same direction as earlier steps Wouldn t it be better every time we take a step to get it exactly right the first time? Again, in general we choose a
More informationNewton-Multigrid Least-Squares FEM for S-V-P Formulation of the Navier-Stokes Equations
Newton-Multigrid Least-Squares FEM for S-V-P Formulation of the Navier-Stokes Equations A. Ouazzi, M. Nickaeen, S. Turek, and M. Waseem Institut für Angewandte Mathematik, LSIII, TU Dortmund, Vogelpothsweg
More informationMultigrid absolute value preconditioning
Multigrid absolute value preconditioning Eugene Vecharynski 1 Andrew Knyazev 2 (speaker) 1 Department of Computer Science and Engineering University of Minnesota 2 Department of Mathematical and Statistical
More informationFundamentals of Fluid Dynamics: Elementary Viscous Flow
Fundamentals of Fluid Dynamics: Elementary Viscous Flow Introductory Course on Multiphysics Modelling TOMASZ G. ZIELIŃSKI bluebox.ippt.pan.pl/ tzielins/ Institute of Fundamental Technological Research
More informationIntroduction. Finite and Spectral Element Methods Using MATLAB. Second Edition. C. Pozrikidis. University of Massachusetts Amherst, USA
Introduction to Finite and Spectral Element Methods Using MATLAB Second Edition C. Pozrikidis University of Massachusetts Amherst, USA (g) CRC Press Taylor & Francis Group Boca Raton London New York CRC
More informationNumerical Solutions of 2-D Linear Elastostatic Problems by Network Method
Copyright 2011 Tech Science Press CMES, vol.76, no.1, pp.1-18, 2011 Numerical Solutions of 2-D Linear Elastostatic Problems by Network Method J.L. Morales 1, J.A. Moreno 2 and F. Alhama 3 Abstract: Following
More informationRobust solution of Poisson-like problems with aggregation-based AMG
Robust solution of Poisson-like problems with aggregation-based AMG Yvan Notay Université Libre de Bruxelles Service de Métrologie Nucléaire Paris, January 26, 215 Supported by the Belgian FNRS http://homepages.ulb.ac.be/
More informationELASTICITY (MDM 10203)
LASTICITY (MDM 10203) Lecture Module 5: 3D Constitutive Relations Dr. Waluyo Adi Siswanto University Tun Hussein Onn Malaysia Generalised Hooke's Law In one dimensional system: = (basic Hooke's law) Considering
More information1 Hooke s law, stiffness, and compliance
Non-quilibrium Continuum Physics TA session #5 TA: Yohai Bar Sinai 3.04.206 Linear elasticity I This TA session is the first of three at least, maybe more) in which we ll dive deep deep into linear elasticity
More informationMathematical Preliminaries
Mathematical Preliminaries Introductory Course on Multiphysics Modelling TOMAZ G. ZIELIŃKI bluebox.ippt.pan.pl/ tzielins/ Table of Contents Vectors, tensors, and index notation. Generalization of the concept
More informationAn accelerated predictor-corrector scheme for 3D crack growth simulations
An accelerated predictor-corrector scheme for 3D crack growth simulations W. Weber 1 and G. Kuhn 2 1,2 1 Institute of Applied Mechanics, University of Erlangen-Nuremberg Egerlandstraße 5, 91058 Erlangen,
More information1. Fast Iterative Solvers of SLE
1. Fast Iterative Solvers of crucial drawback of solvers discussed so far: they become slower if we discretize more accurate! now: look for possible remedies relaxation: explicit application of the multigrid
More informationA unifying model for fluid flow and elastic solid deformation: a novel approach for fluid-structure interaction and wave propagation
A unifying model for fluid flow and elastic solid deformation: a novel approach for fluid-structure interaction and wave propagation S. Bordère a and J.-P. Caltagirone b a. CNRS, Univ. Bordeaux, ICMCB,
More informationEfficient smoothers for all-at-once multigrid methods for Poisson and Stokes control problems
Efficient smoothers for all-at-once multigrid methods for Poisson and Stoes control problems Stefan Taacs stefan.taacs@numa.uni-linz.ac.at, WWW home page: http://www.numa.uni-linz.ac.at/~stefant/j3362/
More informationMECH 5312 Solid Mechanics II. Dr. Calvin M. Stewart Department of Mechanical Engineering The University of Texas at El Paso
MECH 5312 Solid Mechanics II Dr. Calvin M. Stewart Department of Mechanical Engineering The University of Texas at El Paso Table of Contents Preliminary Math Concept of Stress Stress Components Equilibrium
More informationComputational Linear Algebra
Computational Linear Algebra PD Dr. rer. nat. habil. Ralf Peter Mundani Computation in Engineering / BGU Scientific Computing in Computer Science / INF Winter Term 2017/18 Part 3: Iterative Methods PD
More informationLab 1: Iterative Methods for Solving Linear Systems
Lab 1: Iterative Methods for Solving Linear Systems January 22, 2017 Introduction Many real world applications require the solution to very large and sparse linear systems where direct methods such as
More informationCH.3. COMPATIBILITY EQUATIONS. Multimedia Course on Continuum Mechanics
CH.3. COMPATIBILITY EQUATIONS Multimedia Course on Continuum Mechanics Overview Introduction Lecture 1 Compatibility Conditions Lecture Compatibility Equations of a Potential Vector Field Lecture 3 Compatibility
More informationA Finite Element Model for Numerical Analysis of Sintering
A Finite Element Model for Numerical Analysis of Sintering DANIELA CÂRSTEA High-School Group of Railways, Craiova ION CÂRSTEA Department of Computer Engineering and Communication University of Craiova
More informationMechanics of Earthquakes and Faulting
Mechanics of Earthquakes and Faulting www.geosc.psu.edu/courses/geosc508 Surface and body forces Tensors, Mohr circles. Theoretical strength of materials Defects Stress concentrations Griffith failure
More informationComputational Physics Approaches to Model Solid-State Laser Resonators
LASer Cavity Analysis & Design Computational Physics Approaches to Model Solid-State Laser Resonators Konrad Altmann LAS-CAD GmbH, Germany www.las-cad.com I will talk about four Approaches: Gaussian Mode
More informationLecture 9 Approximations of Laplace s Equation, Finite Element Method. Mathématiques appliquées (MATH0504-1) B. Dewals, C.
Lecture 9 Approximations of Laplace s Equation, Finite Element Method Mathématiques appliquées (MATH54-1) B. Dewals, C. Geuzaine V1.2 23/11/218 1 Learning objectives of this lecture Apply the finite difference
More informationStress, Strain, Mohr s Circle
Stress, Strain, Mohr s Circle The fundamental quantities in solid mechanics are stresses and strains. In accordance with the continuum mechanics assumption, the molecular structure of materials is neglected
More informationElements of Rock Mechanics
Elements of Rock Mechanics Stress and strain Creep Constitutive equation Hooke's law Empirical relations Effects of porosity and fluids Anelasticity and viscoelasticity Reading: Shearer, 3 Stress Consider
More informationProperties of the stress tensor
Appendix C Properties of the stress tensor Some of the basic properties of the stress tensor and traction vector are reviewed in the following. C.1 The traction vector Let us assume that the state of stress
More informationChapter 5. The Differential Forms of the Fundamental Laws
Chapter 5 The Differential Forms of the Fundamental Laws 1 5.1 Introduction Two primary methods in deriving the differential forms of fundamental laws: Gauss s Theorem: Allows area integrals of the equations
More informationContinuum mechanism: Stress and strain
Continuum mechanics deals with the relation between forces (stress, σ) and deformation (strain, ε), or deformation rate (strain rate, ε). Solid materials, rigid, usually deform elastically, that is the
More informationBake, shake or break - and other applications for the FEM. 5: Do real-life experimentation using your FEM code
Bake, shake or break - and other applications for the FEM Programming project in TMA4220 - part 2 by Kjetil André Johannessen TMA4220 - Numerical solution of partial differential equations using the finite
More informationGetting started: CFD notation
PDE of p-th order Getting started: CFD notation f ( u,x, t, u x 1,..., u x n, u, 2 u x 1 x 2,..., p u p ) = 0 scalar unknowns u = u(x, t), x R n, t R, n = 1,2,3 vector unknowns v = v(x, t), v R m, m =
More informationSolving PDEs with Multigrid Methods p.1
Solving PDEs with Multigrid Methods Scott MacLachlan maclachl@colorado.edu Department of Applied Mathematics, University of Colorado at Boulder Solving PDEs with Multigrid Methods p.1 Support and Collaboration
More informationIndustrial Applications of Computational Mechanics Extended Civil Engineering Problems. Prof. Dr.-Ing. Casimir Katz SOFiSTiK AG
Industrial Applications of Computational Mechanics Extended Civil Engineering Problems Prof. Dr.-Ing. Casimir Katz SOFiSTiK AG Beyond Structural Analysis Multiphysics» Heat Conduction, Radiation» Potential
More information