GeoPDEs. An Octave/Matlab software for research on IGA. R. Vázquez. IMATI Enrico Magenes, Pavia Consiglio Nazionale della Ricerca

Size: px
Start display at page:

Download "GeoPDEs. An Octave/Matlab software for research on IGA. R. Vázquez. IMATI Enrico Magenes, Pavia Consiglio Nazionale della Ricerca"

Transcription

1 GeoPDEs An Octave/Matlab software for research on IGA R. Vázquez IMATI Enrico Magenes, Pavia Consiglio Nazionale della Ricerca Joint work with C. de Falco and A. Reali Supported by the ERC Starting Grant: GeoPDEs n R. Vázquez (IMATI-CNR Italy) GeoPDEs: a research tool for IGA IGA school, Cetraro, / 22

2 1 Motivation 2 IGA in an abstract framework 3 The implementation of GeoPDEs The parameterization: geometry structure The quadrature rule: mesh structure The discrete space: space structure Boundary conditions: the boundary substructures 4 Some simple examples Poisson equation Linear elasticity Maxwell equations R. Vázquez (IMATI-CNR Italy) GeoPDEs: a research tool for IGA IGA school, Cetraro, / 22

3 Motivation We wanted to share our codes with people interested on IGA. Starting point: different codes, different problems, different developers. Primary goal: uniform implementation of our different codes. R. Vázquez (IMATI-CNR Italy) GeoPDEs: a research tool for IGA IGA school, Cetraro, / 22

4 Motivation We wanted to share our codes with people interested on IGA. Starting point: different codes, different problems, different developers. Primary goal: uniform implementation of our different codes. The result is GeoPDEs: open and free software for IGA. The software is implemented in Octave, fully compatible with Matlab. Very clear for teaching purposes. Easy to modify and to use for fast prototyping. Follows an abstract setting to cover many problems and methods. R. Vázquez (IMATI-CNR Italy) GeoPDEs: a research tool for IGA IGA school, Cetraro, / 22

5 Motivation We wanted to share our codes with people interested on IGA. Starting point: different codes, different problems, different developers. Primary goal: uniform implementation of our different codes. The result is GeoPDEs: open and free software for IGA. The software is implemented in Octave, fully compatible with Matlab. Very clear for teaching purposes. Easy to modify and to use for fast prototyping. Follows an abstract setting to cover many problems and methods. Secondary goal: faster and more efficient implementation. Important advances in GeoPDEs 2.0 (last part of the talk). R. Vázquez (IMATI-CNR Italy) GeoPDEs: a research tool for IGA IGA school, Cetraro, / 22

6 General description of the software GeoPDEs consists of a set of interrelated packages for different problems: base: the main package, with examples for Laplace problem. elasticity: a simple package for linear elasticity problems. fluid: Stokes equations, with different choices for the discrete spaces. maxwell: Maxwell equations, generalization of edge finite elements. multipatch: extension to multi-patch defined geometries. R. Vázquez (IMATI-CNR Italy) GeoPDEs: a research tool for IGA IGA school, Cetraro, / 22

7 General description of the software GeoPDEs consists of a set of interrelated packages for different problems: base: the main package, with examples for Laplace problem. elasticity: a simple package for linear elasticity problems. fluid: Stokes equations, with different choices for the discrete spaces. maxwell: Maxwell equations, generalization of edge finite elements. multipatch: extension to multi-patch defined geometries. The main structures and functions are defined in the base package. The other packages are based on the structures defined in base. The nomenclature is mostly the same in every package. R. Vázquez (IMATI-CNR Italy) GeoPDEs: a research tool for IGA IGA school, Cetraro, / 22

8 General description of the software GeoPDEs consists of a set of interrelated packages for different problems: base: the main package, with examples for Laplace problem. elasticity: a simple package for linear elasticity problems. fluid: Stokes equations, with different choices for the discrete spaces. maxwell: Maxwell equations, generalization of edge finite elements. multipatch: extension to multi-patch defined geometries. The main structures and functions are defined in the base package. The other packages are based on the structures defined in base. The nomenclature is mostly the same in every package. We define IGA in an abstract way, to cover as many cases as possible. R. Vázquez (IMATI-CNR Italy) GeoPDEs: a research tool for IGA IGA school, Cetraro, / 22

9 IGA in an abstract framework Problem to solve at the continuous level. Abstract framework a(u, v) = (f, v), v V. Simple example: Poisson equation grad u grad v = Ω Ω f v, v H 1 0 (Ω). R. Vázquez (IMATI-CNR Italy) GeoPDEs: a research tool for IGA IGA school, Cetraro, / 22

10 IGA in an abstract framework Problem to solve at the continuous level. Parametric domain and parameterization of the physical domain. Abstract framework F : Ω Ω R d, and F is known and computable. Simple example: Poisson equation Ω = (0, 1) d, and F is a NURBS. R. Vázquez (IMATI-CNR Italy) GeoPDEs: a research tool for IGA IGA school, Cetraro, / 22

11 IGA in an abstract framework Problem to solve at the continuous level. Parametric domain and parameterization of the physical domain. Discrete problem and spaces in the parametric and physical domain. Abstract framework a(u h, v h ) = (f, v h ), v h V h. Simple example: Poisson equation grad u h grad v h = Ω Ω f v h, v h V h. R. Vázquez (IMATI-CNR Italy) GeoPDEs: a research tool for IGA IGA school, Cetraro, / 22

12 IGA in an abstract framework Problem to solve at the continuous level. Parametric domain and parameterization of the physical domain. Discrete problem and spaces in the parametric and physical domain. Abstract framework V h = {v h : ι(v h ) = v h V h }, where ι is a pull-back depending on F, and V h = span{ v j } N h j=1 Simple example: Poisson equation is a finite-dimensional and computable space. V h = {v h : v h F = v h V h }, with V h = span{r j } N h i=1 a space of NURBS. R. Vázquez (IMATI-CNR Italy) GeoPDEs: a research tool for IGA IGA school, Cetraro, / 22

13 IGA in an abstract framework Problem to solve at the continuous level. Parametric domain and parameterization of the physical domain. Discrete problem and spaces in the parametric and physical domain. Construct and solve a linear system to find the discrete solution. Abstract framework Trial function u h = N h i=1 α iv i, and test again every v j, to get Nh i=1 α ia(v i, v j ) = (f, v j ), j = 1,..., N h, or Nh i=1 A jiα i = b j. Simple example: Poisson equation Trial function u h = N h i=1 α ir i, and test functions R j : N h α i grad R i grad R j = f R j, j = 1,..., N h. i=1 Ω Ω R. Vázquez (IMATI-CNR Italy) GeoPDEs: a research tool for IGA IGA school, Cetraro, / 22

14 IGA in an abstract framework To numerically compute the integrals, we define a partition Ω = Ne k=1 K k, and on each element K k a quadrature rule: {( x l,k, w l,k )} n k Ω φ(x) = N e k=1 φ(f( x)) det(df( x)) bk k l=1. R. Vázquez (IMATI-CNR Italy) GeoPDEs: a research tool for IGA IGA school, Cetraro, / 22

15 IGA in an abstract framework To numerically compute the integrals, we define a partition Ω = Ne k=1 K k, and on each element K k a quadrature rule: {( x l,k, w l,k )} n k Ω φ(x) N e nk k=1 l=1 w l,k φ(f( x l,k )) det(df( x l,k )) l=1. R. Vázquez (IMATI-CNR Italy) GeoPDEs: a research tool for IGA IGA school, Cetraro, / 22

16 IGA in an abstract framework To numerically compute the integrals, we define a partition Ω = Ne k=1 K k, and on each element K k a quadrature rule: {( x l,k, w l,k )} n k Ω φ(x) N e nk k=1 l=1 w l,k φ(f( x l,k )) det(df( x l,k )) l=1. Using the quadrature rule, the stiffness matrix is computed as N e n k A ij w l,k grad v j (F( x l,k )) grad v i (F( x l,k )) det(df( x l,k )) k=1 l=1 And recall that grad v i (F( x l,k )) = DF T ĝrad v i ( x l,k ). R. Vázquez (IMATI-CNR Italy) GeoPDEs: a research tool for IGA IGA school, Cetraro, / 22

17 IGA in an abstract framework To numerically compute the integrals, we define a partition Ω = Ne k=1 K k, and on each element K k a quadrature rule: {( x l,k, w l,k )} n k Ω φ(x) N e nk k=1 l=1 w l,k φ(f( x l,k )) det(df( x l,k )) l=1. Using the quadrature rule, the stiffness matrix is computed as N e n k A ij w l,k grad v j (F( x l,k )) grad v i (F( x l,k )) det(df( x l,k )) k=1 l=1 And recall that grad v i (F( x l,k )) = DF T ĝrad v i ( x l,k ). Summarizing, what we need is A partition of Ω and a quadrature rule (nodes and weights). The evaluation of F and the Jacobian DF at the quadrature points. Value of the shape functions at the mapped quadrature points. A routine to put everything together and compute the matrices. R. Vázquez (IMATI-CNR Italy) GeoPDEs: a research tool for IGA IGA school, Cetraro, / 22

18 The main structures of GeoPDEs GeoPDEs has been implemented following the abstract framework. The code is based on three main structures: Geometry: the parameterization F and its derivatives. Mesh: the partition of the domain and the quadrature rule. Space: the shape functions of the discrete space V h. R. Vázquez (IMATI-CNR Italy) GeoPDEs: a research tool for IGA IGA school, Cetraro, / 22

19 The main structures of GeoPDEs GeoPDEs has been implemented following the abstract framework. The code is based on three main structures: Geometry: the parameterization F and its derivatives. Mesh: the partition of the domain and the quadrature rule. Space: the shape functions of the discrete space V h. Everything is precomputed (v.1). Easy to understand and to debug. As a consequence, the computation of the matrices is very clear. The structures can be used in different applications with minor changes. R. Vázquez (IMATI-CNR Italy) GeoPDEs: a research tool for IGA IGA school, Cetraro, / 22

20 The parameterization: geometry structure Computation of the parameterization F and its derivatives. map: function handle to compute F at given points in Ω. map der: function handle to compute DF, the derivatives of F. The fields contain the handles to evaluate F, not the values of F. R. Vázquez (IMATI-CNR Italy) GeoPDEs: a research tool for IGA IGA school, Cetraro, / 22

21 The parameterization: geometry structure Computation of the parameterization F and its derivatives. map: function handle to compute F at given points in Ω. map der: function handle to compute DF, the derivatives of F. The fields contain the handles to evaluate F, not the values of F. For NURBS and B-splines, we make use of the NURBS toolbox. Based on standard NURBS algorithms (see, e.g., the NURBS book). Useful for simple geometry manipulation (revolution, extrusion,...) It is also used in GeoPDEs for function evaluation. R. Vázquez (IMATI-CNR Italy) GeoPDEs: a research tool for IGA IGA school, Cetraro, / 22

22 The parameterization: geometry structure Computation of the parameterization F and its derivatives. map: function handle to compute F at given points in Ω. map der: function handle to compute DF, the derivatives of F. The fields contain the handles to evaluate F, not the values of F. For NURBS and B-splines, we make use of the NURBS toolbox. Based on standard NURBS algorithms (see, e.g., the NURBS book). Useful for simple geometry manipulation (revolution, extrusion,...) It is also used in GeoPDEs for function evaluation. The computation of the geometry is separated from the shape functions. Necessary for non-isoparametric discretizations. Geometry evaluations can be made in the coarsest given geometry. R. Vázquez (IMATI-CNR Italy) GeoPDEs: a research tool for IGA IGA school, Cetraro, / 22

23 The quadrature rule: mesh structure Contains information on the partition of the domain, Ω = Ne k=1 K k, and the quadrature rule {( x l,k, w l,k )} n k l=1. R. Vázquez (IMATI-CNR Italy) GeoPDEs: a research tool for IGA IGA school, Cetraro, / 22

24 The quadrature rule: mesh structure Contains information on the partition of the domain, Ω = Ne k=1 K k, and the quadrature rule {( x l,k, w l,k )} n k l=1. Remember the expression for the entries of the stiffness matrix A ij N e nk k=1 l=1 w l,k grad v j (F( x l,k )) grad v i (F( x l,k )) det(df( x l,k )) nel: N e, number of elements of the partition. nqn: n k, number of quadrature nodes per element. quad nodes: x l,k, quadrature nodes in Ω. quad weights: w l,k, quadrature weights. R. Vázquez (IMATI-CNR Italy) GeoPDEs: a research tool for IGA IGA school, Cetraro, / 22

25 The quadrature rule: mesh structure Contains information on the partition of the domain, Ω = Ne k=1 K k, and the quadrature rule {( x l,k, w l,k )} n k l=1. Remember the expression for the entries of the stiffness matrix A ij N e nk k=1 l=1 w l,k grad v j (F( x l,k )) grad v i (F( x l,k )) det(df( x l,k )) nel: N e, number of elements of the partition. nqn: n k, number of quadrature nodes per element. quad nodes: x l,k, quadrature nodes in Ω. quad weights: w l,k, quadrature weights. geo map: x l,k = F( x l,k ), quadrature nodes in Ω. geo map jac: DF( x l,k ), Jacobian matrix evaluated at quad nodes. jacdet: det(df( x l,k )), absolute value of the Jacobian. R. Vázquez (IMATI-CNR Italy) GeoPDEs: a research tool for IGA IGA school, Cetraro, / 22

26 The discrete space: space structure Information on the basis functions of the discrete space V h = span{v i } N h i=1, and their values at the quadrature points. R. Vázquez (IMATI-CNR Italy) GeoPDEs: a research tool for IGA IGA school, Cetraro, / 22

27 The discrete space: space structure Information on the basis functions of the discrete space V h = span{v i } N h i=1, and their values at the quadrature points. ndof: N h, total number of degrees of freedom. nsh: number of non-vanishing functions in each element. connectivity (IEN): global indices of non-vanishing basis functions. R. Vázquez (IMATI-CNR Italy) GeoPDEs: a research tool for IGA IGA school, Cetraro, / 22

28 The discrete space: space structure Information on the basis functions of the discrete space V h = span{v i } N h i=1, and their values at the quadrature points. ndof: N h, total number of degrees of freedom. nsh: number of non-vanishing functions in each element. connectivity (IEN): global indices of non-vanishing basis functions. shape functions: v i (x l,k ), shape functions evaluated at the quadrature points. shape function gradients: grad v i (x l,k ), gradients of the shape functions evaluated at the quadrature points. For NURBS and splines, they are computed with the NURBS toolbox. Other fields may be necessary (curl, divergence, Laplacian...) R. Vázquez (IMATI-CNR Italy) GeoPDEs: a research tool for IGA IGA school, Cetraro, / 22

29 A simple example on how to use GeoPDEs geometry = g e o l o a d ( r i n g r e f i n e d. mat ) ; k n o t s = geometry. nurbs. k n o t s ; Create the geometry structure, from a NURBS toolbox file. R. Vázquez (IMATI-CNR Italy) GeoPDEs: a research tool for IGA IGA school, Cetraro, / 22

30 A simple example on how to use GeoPDEs geometry = g e o l o a d ( r i n g r e f i n e d. mat ) ; k n o t s = geometry. nurbs. k n o t s ; [ qn, qw ] = m s h s e t q u a d n o d e s ( knots, m s h g a u s s n o d e s ( ngauss ) ) ; msh = msh 2d ( knots, qn, qw, geometry ) ; Create the geometry structure, from a NURBS toolbox file. Create the mesh structure in the parametric domain. Map the mesh structure to the physical domain, using geometry. R. Vázquez (IMATI-CNR Italy) GeoPDEs: a research tool for IGA IGA school, Cetraro, / 22

31 A simple example on how to use GeoPDEs geometry = g e o l o a d ( r i n g r e f i n e d. mat ) ; k n o t s = geometry. nurbs. k n o t s ; [ qn, qw ] = m s h s e t q u a d n o d e s ( knots, m s h g a u s s n o d e s ( ngauss ) ) ; msh = msh 2d ( knots, qn, qw, geometry ) ; space = s p n u r b s 2 d ( geometry. nurbs, msh) ; Create the geometry structure, from a NURBS toolbox file. Create the mesh structure in the parametric domain. Map the mesh structure to the physical domain, using geometry. Construct the space structure (the knots are stored in geometry). R. Vázquez (IMATI-CNR Italy) GeoPDEs: a research tool for IGA IGA school, Cetraro, / 22

32 A simple example on how to use GeoPDEs geometry = g e o l o a d ( r i n g r e f i n e d. mat ) ; k n o t s = geometry. nurbs. k n o t s ; [ qn, qw ] = m s h s e t q u a d n o d e s ( knots, m s h g a u s s n o d e s ( ngauss ) ) ; msh = msh 2d ( knots, qn, qw, geometry ) ; space = s p n u r b s 2 d ( geometry. nurbs, msh) ; [ x, y ] = d e a l (msh. geo map ( 1, :, : ), msh. geo map ( 2, :, : ) ) ; mat = o p g r a d u g r a d v ( space, msh) ; r h s = o p f v ( space, msh, r h s f u n ( x, y ) ) ; Create the geometry structure, from a NURBS toolbox file. Create the mesh structure in the parametric domain. Map the mesh structure to the physical domain, using geometry. Construct the space structure (the knots are stored in geometry). Build the matrix and right-hand side. R. Vázquez (IMATI-CNR Italy) GeoPDEs: a research tool for IGA IGA school, Cetraro, / 22

33 Matrices and vector construction Remember the expression for the entries of the stiffness matrix A ij N e nk k=1 l=1 w l,k grad v j (F(x l,k )) grad v i (F( x l,k )) det(df( x l,k )) Everything is precomputed (v.1) in the previous structures. To construct the matrices, it is enough to correctly gather the information. The computation of the matrices is simple, and identical to FEM. R. Vázquez (IMATI-CNR Italy) GeoPDEs: a research tool for IGA IGA school, Cetraro, / 22

34 Matrices and vector construction Remember the expression for the entries of the stiffness matrix A ij N e nk k=1 l=1 w l,k grad v j (F(x l,k )) grad v i (F( x l,k )) det(df( x l,k )) Everything is precomputed (v.1) in the previous structures. To construct the matrices, it is enough to correctly gather the information. The computation of the matrices is simple, and identical to FEM. Let me show an example. R. Vázquez (IMATI-CNR Italy) GeoPDEs: a research tool for IGA IGA school, Cetraro, / 22

35 Matrices and vector construction Remember the expression for the entries of the stiffness matrix A ij N e nk k=1 l=1 w l,k grad v j (F(x l,k )) grad v i (F( x l,k )) det(df( x l,k )) f u n c t i o n mat = o p g r a d u g r a d v ( space, msh) f o r i e l = 1 : msh. n e l m a t l o c = z e r o s ( space. nsh ( i e l ), space. nsh ( i e l ) ) ; f o r i d o f = 1 : space. nsh ( i e l ) i s h p = space. s h a p e f u n c t i o n g r a d i e n t s ( :, :, i d o f, i e l ) ; f o r j d o f = 1 : space. nsh ( i e l ) j s h p = space. s h a p e f u n c t i o n g r a d i e n t s ( :, :, j d o f, i e l ) ; f o r i n o d e = 1 : msh. nqn m a t l o c ( i d o f, j d o f ) += i s h p ( :, i n o d e ). j s h p ( :, i n o d e ) msh. j a c d e t ( inode, i e l ) msh. quad weights ( inode, i e l ) ; endfor %i n o d e endfor %j d o f endfor %i d o f mat ( space. connect ( :, i e l ), space. connect ( :, i e l ) ) += m a t l o c ; endfor %i e l R. Vázquez (IMATI-CNR Italy) GeoPDEs: a research tool for IGA IGA school, Cetraro, / 22

36 Matrices and vector construction Remember the expression for the entries of the stiffness matrix A ij N e nk k=1 l=1 w l,k grad v j (F(x l,k )) grad v i (F( x l,k )) det(df( x l,k )) Everything is precomputed (v.1) in the previous structures. To construct the matrices, it is enough to correctly gather the information. The computation of the matrices is simple, and identical to FEM. Actually, the efficient Matlab implementation is quite different. For NURBS, we can also take advantage of the tensor product structure. R. Vázquez (IMATI-CNR Italy) GeoPDEs: a research tool for IGA IGA school, Cetraro, / 22

37 Boundary conditions: the boundary substructures The structures mesh and space are completed with the field boundary. These are mesh and space substructures of dimension N 1. F R. Vázquez (IMATI-CNR Italy) GeoPDEs: a research tool for IGA IGA school, Cetraro, / 22

38 Boundary conditions: the boundary substructures The structures mesh and space are completed with the field boundary. These are mesh and space substructures of dimension N 1. The boundary structures have some particularities: jacdet contains the area element of the boundary parameterization. The space structure uses a local numbering for each boundary. A new field, dofs, is added to recover the global numbering. F R. Vázquez (IMATI-CNR Italy) GeoPDEs: a research tool for IGA IGA school, Cetraro, / 22

39 Boundary conditions: the boundary substructures For Neumann conditions, u n = g on Γ N, we must compute Γ N gv j. The integral is computed in the same manner as for bulk forces. It is assembled into the global r.h.s. using the field dofs. x = msh. boundary. geo map ( 1, :, : ) ; y = msh. boundary. geo map ( 2, :, : ) ; r h s b n d = o p f v ( space. boundary, msh. boundary, g ( x, y ) ) ; r h s ( space. boundary. dofs ) += r h s b n d ; R. Vázquez (IMATI-CNR Italy) GeoPDEs: a research tool for IGA IGA school, Cetraro, / 22

40 Boundary conditions: the boundary substructures For Neumann conditions, u n = g on Γ N, we must compute Γ N gv j. The integral is computed in the same manner as for bulk forces. It is assembled into the global r.h.s. using the field dofs. x = msh. boundary. geo map ( 1, :, : ) ; y = msh. boundary. geo map ( 2, :, : ) ; r h s b n d = o p f v ( space. boundary, msh. boundary, g ( x, y ) ) ; r h s ( space. boundary. dofs ) += r h s b n d ; For Dirichlet conditions, u = h on Γ D, we must assign the d.o.f. in boundary.dofs. The needed information should already be in the boundary structures. As an example we have included the least squares best fit, i.e. uv = hv Γ D Γ D v. R. Vázquez (IMATI-CNR Italy) GeoPDEs: a research tool for IGA IGA school, Cetraro, / 22

41 A simple example on how to use GeoPDEs We have computed all the structures and the linear system. geometry = g e o l o a d ( r i n g r e f i n e d. mat ) ; k n o t s = geometry. nurbs. k n o t s ; [ qn, qw ] = m s h s e t q u a d n o d e s ( knots, m s h g a u s s n o d e s ( ngauss ) ) ; msh = msh 2d ( knots, qn, qw, geometry ) ; space = s p n u r b s 2 d ( geometry. nurbs, msh) ; [ x, y ] = d e a l (msh. geo map ( 1, :, : ), msh. geo map ( 2, :, : ) ) ; mat = o p g r a d u g r a d v ( space, msh) ; r h s = o p f v ( space, msh, r h s f u n ( x, y ) ) ; R. Vázquez (IMATI-CNR Italy) GeoPDEs: a research tool for IGA IGA school, Cetraro, / 22

42 A simple example on how to use GeoPDEs Apply boundary conditions and solve the linear system. geometry = g e o l o a d ( r i n g r e f i n e d. mat ) ; k n o t s = geometry. nurbs. k n o t s ; [ qn, qw ] = m s h s e t q u a d n o d e s ( knots, m s h g a u s s n o d e s ( ngauss ) ) ; msh = msh 2d ( knots, qn, qw, geometry ) ; space = s p n u r b s 2 d ( geometry. nurbs, msh) ; [ x, y ] = d e a l (msh. geo map ( 1, :, : ), msh. geo map ( 2, :, : ) ) ; mat = o p g r a d u g r a d v ( space, msh) ; r h s = o p f v ( space, msh, r h s f u n ( x, y ) ) ; d r c h l t d o f s = u nique ( [ space. boundary ( : ). dofs ] ) ; i n t d o f s = s e t d i f f ( 1 : space. ndof, d r c h l t d o f s ) ; u ( d r c h l t d o f s ) = 0 ; u ( i n t d o f s ) = mat ( i n t d o f s, i n t d o f s ) \ r h s ( i n t d o f s ) ; R. Vázquez (IMATI-CNR Italy) GeoPDEs: a research tool for IGA IGA school, Cetraro, / 22

43 A simple example on how to use GeoPDEs We end up with some postprocessing. geometry = g e o l o a d ( r i n g r e f i n e d. mat ) ; k n o t s = geometry. nurbs. k n o t s ; [ qn, qw ] = m s h s e t q u a d n o d e s ( knots, m s h g a u s s n o d e s ( ngauss ) ) ; msh = msh 2d ( knots, qn, qw, geometry ) ; space = s p n u r b s 2 d ( geometry. nurbs, msh) ; [ x, y ] = d e a l (msh. geo map ( 1, :, : ), msh. geo map ( 2, :, : ) ) ; mat = o p g r a d u g r a d v ( space, msh) ; r h s = o p f v ( space, msh, r h s f u n ( x, y ) ) ; d r c h l t d o f s = u nique ( [ space. boundary ( : ). dofs ] ) ; i n t d o f s = s e t d i f f ( 1 : space. ndof, d r c h l t d o f s ) ; u ( d r c h l t d o f s ) = 0 ; u ( i n t d o f s ) = mat ( i n t d o f s, i n t d o f s ) \ r h s ( i n t d o f s ) ; s p t o v t k ( u, space, geometry, [ ], f i l e n a m e, u ) ; e r r = s p l 2 e r r o r ( space, msh, u, e x a c t s o l u t i o n ( x, y ) ) ; R. Vázquez (IMATI-CNR Italy) GeoPDEs: a research tool for IGA IGA school, Cetraro, / 22

44 A simple example on how to use GeoPDEs And the final result is something like this. R. Vázquez (IMATI-CNR Italy) GeoPDEs: a research tool for IGA IGA school, Cetraro, / 22

45 A simple example on how to use GeoPDEs And the final result is something like this. The package contains several simple examples: h-,p-,k-refinement, 2D and 3D, B-splines and NURBS... The structures can be easily extended to solve more complex problems. R. Vázquez (IMATI-CNR Italy) GeoPDEs: a research tool for IGA IGA school, Cetraro, / 22

46 Linear elasticity problems: the elasticity package Let us see how to solve the following linear elasticity problem: Find u V = (H 1 0,Γ D (Ω)) 3 such that Ω (2µ ε(u) : ε(v) + λ div(u) div(v)) = Ω f v + g v Γ N v V, R. Vázquez (IMATI-CNR Italy) GeoPDEs: a research tool for IGA IGA school, Cetraro, / 22

47 Linear elasticity problems: the elasticity package Let us see how to solve the following linear elasticity problem: Find u V = (H 1 0,Γ D (Ω)) 3 such that Ω (2µ ε(u) : ε(v) + λ div(u) div(v)) = Ω f v + g v Γ N v V, The geometry and mesh are described as in the previous example. The basis functions in the space structure are now vector-valued. A specific operator for this problem must be defined. Imposing the boundary conditions is similar to the previous problem. R. Vázquez (IMATI-CNR Italy) GeoPDEs: a research tool for IGA IGA school, Cetraro, / 22

48 Definition of the vectorial space We first define one space structure for each component. From these we define the vector-valued space structure for our problem. spx = spy = spz = s p n u r b s 3 d ( geometry, msh) ; space = s p v e c t o r 3 d ( spx, spy, spz, msh) ; This command computes the new vector-valued space and the numbering. R. Vázquez (IMATI-CNR Italy) GeoPDEs: a research tool for IGA IGA school, Cetraro, / 22

49 Definition of the vectorial space We first define one space structure for each component. From these we define the vector-valued space structure for our problem. spx = spy = spz = s p n u r b s 3 d ( geometry, msh) ; space = s p v e c t o r 3 d ( spx, spy, spz, msh) ; This command computes the new vector-valued space and the numbering. The horseshoe is a courtesy of T.J.R. Hughes and his group R. Vázquez (IMATI-CNR Italy) GeoPDEs: a research tool for IGA IGA school, Cetraro, / 22

50 Electromagnetism: the Maxwell package An example in electromagnetism: Metallic WR-2300 waveguide with a mechanical deformation. Consider only the TE 10 mode at 0.35 GHz. Compute relative amplitudes of the transmitted and reflected waves. R. Vázquez (IMATI-CNR Italy) GeoPDEs: a research tool for IGA IGA school, Cetraro, / 22

51 Electromagnetism: the Maxwell package An example in electromagnetism: Metallic WR-2300 waveguide with a mechanical deformation. Consider only the TE 10 mode at 0.35 GHz. Compute relative amplitudes of the transmitted and reflected waves. Time-harmonic Maxwell equations in the interior of the waveguide. Forward (known) and reverse (unknown) traveling waves at Γ i. Forward (unknown) traveling wave at Γ o. Perfect electrical conductor (E n = 0) on the other boundaries. R. Vázquez (IMATI-CNR Italy) GeoPDEs: a research tool for IGA IGA school, Cetraro, / 22

52 Electromagnetism: the Maxwell package Find E H 0,ΓD (curl; Ω), and αi r, αf o C such that Ω ( 1 µ curl E curl G ω2 εe G) + iω(α r i Γ i H 10 τ G τ + αo f iω( Γ i E τ H 10 τ iω( Γ o E τ H 10 τ α r i α f o Γ o H 10 τ G τ ) = iωαi f Γ i E 10 τ H 10 τ ) = iωαi f Γ o E 10 τ H 10 τ ) = 0. Γ i H 10 τ G τ, Γ i E 10 τ H 10 τ, The geometry and mesh are described as in the previous examples. We need an operator to compute the curl -curl matrix. R. Vázquez (IMATI-CNR Italy) GeoPDEs: a research tool for IGA IGA school, Cetraro, / 22

53 Electromagnetism: the Maxwell package Find E H 0,ΓD (curl; Ω), and αi r, αf o C such that Ω ( 1 µ curl E curl G ω2 εe G) + iω(α r i Γ i H 10 τ G τ + αo f iω( Γ i E τ H 10 τ iω( Γ o E τ H 10 τ α r i α f o Γ o H 10 τ G τ ) = iωαi f Γ i E 10 τ H 10 τ ) = iωαi f Γ o E 10 τ H 10 τ ) = 0. Γ i H 10 τ G τ, Γ i E 10 τ H 10 τ, The geometry and mesh are described as in the previous examples. We need an operator to compute the curl -curl matrix. Vector-valued space with a curl-conserving transform. The shape functions are given by E F = DF Ê. And (curl E) F = 1 det(df) DF(ĉurl Ê). R. Vázquez (IMATI-CNR Italy) GeoPDEs: a research tool for IGA IGA school, Cetraro, / 22

54 Electromagnetism: the Maxwell package Find E H 0,ΓD (curl; Ω), and αi r, αf o C such that Ω ( 1 µ curl E curl G ω2 εe G) + iω(α r i Γ i H 10 τ G τ + αo f iω( Γ i E τ H 10 τ iω( Γ o E τ H 10 τ α r i α f o Γ o H 10 τ G τ ) = iωαi f Γ i E 10 τ H 10 τ ) = iωαi f Γ o E 10 τ H 10 τ ) = 0. Γ i H 10 τ G τ, Γ i E 10 τ H 10 τ, The geometry and mesh are described as in the previous examples. We need an operator to compute the curl -curl matrix. Vector-valued space with a curl-conserving transform. For the boundaries, we only store the tangential components. Operators to compute the integrals on the boundary are also needed. R. Vázquez (IMATI-CNR Italy) GeoPDEs: a research tool for IGA IGA school, Cetraro, / 22

55 Electromagnetism: the Maxwell package Find E H 0,ΓD (curl; Ω), and αi r, αf o C such that Ω ( 1 µ curl E curl G ω2 εe G) + iω(α r i Γ i H 10 τ G τ + αo f iω( Γ i E τ H 10 τ iω( Γ o E τ H 10 τ α r i α f o Γ o H 10 τ G τ ) = iωαi f Γ i E 10 τ H 10 τ ) = iωαi f Γ o E 10 τ H 10 τ ) = 0. Γ i H 10 τ G τ, Γ i E 10 τ H 10 τ, (a) Real part (b) Imaginary part R. Vázquez (IMATI-CNR Italy) GeoPDEs: a research tool for IGA IGA school, Cetraro, / 22

56 GeoPDEs 2.0 Clarity was the primary goal in the first version of GeoPDEs. All the fields were precomputed (high memory consumption). Clear but slow computation of the matrices. R. Vázquez (IMATI-CNR Italy) GeoPDEs: a research tool for IGA IGA school, Cetraro, / 22

57 GeoPDEs 2.0 Clarity was the primary goal in the first version of GeoPDEs. All the fields were precomputed (high memory consumption). Clear but slow computation of the matrices. Efficiency became an important issue in GeoPDEs 2.0. Faster version of matrix computations. Vectorization of some loops. Better use of sparse matrices in Matlab. R. Vázquez (IMATI-CNR Italy) GeoPDEs: a research tool for IGA IGA school, Cetraro, / 22

58 GeoPDEs 2.0 Clarity was the primary goal in the first version of GeoPDEs. All the fields were precomputed (high memory consumption). Clear but slow computation of the matrices. Efficiency became an important issue in GeoPDEs 2.0. Faster version of matrix computations. For NURBS, we take advantage of the tensor product structure. Only the 1D functions and derivatives are precomputed. The 2D/3D fields are computed one column at a time. R. Vázquez (IMATI-CNR Italy) GeoPDEs: a research tool for IGA IGA school, Cetraro, / 22

59 GeoPDEs 2.0 Clarity was the primary goal in the first version of GeoPDEs. All the fields were precomputed (high memory consumption). Clear but slow computation of the matrices. Efficiency became an important issue in GeoPDEs 2.0. Faster version of matrix computations. For NURBS, we take advantage of the tensor product structure. Only the 1D functions and derivatives are precomputed. The 2D/3D fields are computed one column at a time. f o r i e l = 1 : msh. n e l d i r ( 1 ) msh col = m s h e v a l u a t e c o l (msh, i e l ) ; s p c o l = s p e v a l u a t e c o l ( space, msh col ) ; A = A + o p g r a d u g r a d v ( s p c o l, msh col ) ; end The column structures contain the same fields we have seen before. R. Vázquez (IMATI-CNR Italy) GeoPDEs: a research tool for IGA IGA school, Cetraro, / 22

60 Conclusions GeoPDEs is an open source and free Matlab implementation of IGA. Very useful for teaching purposes and for new researchers. It can serve as a rapid prototyping tool to test new ideas. Several packages already released to solve different problems. Many examples and a short guide with detailed explanations. R. Vázquez (IMATI-CNR Italy) GeoPDEs: a research tool for IGA IGA school, Cetraro, / 22

61 Conclusions GeoPDEs is an open source and free Matlab implementation of IGA. Very useful for teaching purposes and for new researchers. It can serve as a rapid prototyping tool to test new ideas. Several packages already released to solve different problems. Many examples and a short guide with detailed explanations. In the last 4 months, around 300 downloads of the base package. R. Vázquez (IMATI-CNR Italy) GeoPDEs: a research tool for IGA IGA school, Cetraro, / 22

62 Conclusions GeoPDEs is an open source and free Matlab implementation of IGA. Very useful for teaching purposes and for new researchers. It can serve as a rapid prototyping tool to test new ideas. Several packages already released to solve different problems. Many examples and a short guide with detailed explanations. In the last 4 months, around 300 downloads of the base package. Contributions are welcome, to improve the code or to show new methods. R. Vázquez (IMATI-CNR Italy) GeoPDEs: a research tool for IGA IGA school, Cetraro, / 22

63 Conclusions GeoPDEs is an open source and free Matlab implementation of IGA. Very useful for teaching purposes and for new researchers. It can serve as a rapid prototyping tool to test new ideas. Several packages already released to solve different problems. Many examples and a short guide with detailed explanations. In the last 4 months, around 300 downloads of the base package. Contributions are welcome, to improve the code or to show new methods. GeoPDEs tutorial today at 17:00. R. Vázquez (IMATI-CNR Italy) GeoPDEs: a research tool for IGA IGA school, Cetraro, / 22

64 Conclusions GeoPDEs is an open source and free Matlab implementation of IGA. Very useful for teaching purposes and for new researchers. It can serve as a rapid prototyping tool to test new ideas. Several packages already released to solve different problems. Many examples and a short guide with detailed explanations. In the last 4 months, around 300 downloads of the base package. Contributions are welcome, to improve the code or to show new methods. GeoPDEs tutorial today at 17:00. Software download and information Thanks for your attention! R. Vázquez (IMATI-CNR Italy) GeoPDEs: a research tool for IGA IGA school, Cetraro, / 22

An introduction to Isogeometric Analysis

An introduction to Isogeometric Analysis An introduction to Isogeometric Analysis A. Buffa 1, G. Sangalli 1,2, R. Vázquez 1 1 Istituto di Matematica Applicata e Tecnologie Informatiche - Pavia Consiglio Nazionale delle Ricerche 2 Dipartimento

More information

Isogeometric modeling of Lorentz detuning in linear particle accelerator cavities

Isogeometric modeling of Lorentz detuning in linear particle accelerator cavities Isogeometric modeling of Lorentz detuning in linear particle accelerator cavities Mauro Bonafini 1,2, Marcella Bonazzoli 3, Elena Gaburro 1,2, Chiara Venturini 1,3, instructor: Carlo de Falco 4 1 Department

More information

Isogeometric mortaring

Isogeometric mortaring Isogeometric mortaring E. Brivadis, A. Buffa, B. Wohlmuth, L. Wunderlich IMATI E. Magenes - Pavia Technical University of Munich A. Buffa (IMATI-CNR Italy) IGA mortaring 1 / 29 1 Introduction Splines Approximation

More information

Institut de Recherche MAthématique de Rennes

Institut de Recherche MAthématique de Rennes LMS Durham Symposium: Computational methods for wave propagation in direct scattering. - July, Durham, UK The hp version of the Weighted Regularization Method for Maxwell Equations Martin COSTABEL & Monique

More information

Sparse Linear Systems. Iterative Methods for Sparse Linear Systems. Motivation for Studying Sparse Linear Systems. Partial Differential Equations

Sparse Linear Systems. Iterative Methods for Sparse Linear Systems. Motivation for Studying Sparse Linear Systems. Partial Differential Equations Sparse Linear Systems Iterative Methods for Sparse Linear Systems Matrix Computations and Applications, Lecture C11 Fredrik Bengzon, Robert Söderlund We consider the problem of solving the linear system

More information

Implementation of the dg method

Implementation of the dg method Implementation of the dg method Matteo Cicuttin CERMICS - École Nationale des Ponts et Chaussées Marne-la-Vallée March 6, 2017 Outline Model problem, fix notation Representing polynomials Computing integrals

More information

Locking phenomena in Computational Mechanics: nearly incompressible materials and plate problems

Locking phenomena in Computational Mechanics: nearly incompressible materials and plate problems Locking phenomena in Computational Mechanics: nearly incompressible materials and plate problems C. Lovadina Dipartimento di Matematica Univ. di Pavia IMATI-CNR, Pavia Bologna, September, the 18th 2006

More information

PhD dissertation defense

PhD dissertation defense Isogeometric mortar methods with applications in contact mechanics PhD dissertation defense Brivadis Ericka Supervisor: Annalisa Buffa Doctor of Philosophy in Computational Mechanics and Advanced Materials,

More information

A Hybrid Method for the Wave Equation. beilina

A Hybrid Method for the Wave Equation.   beilina A Hybrid Method for the Wave Equation http://www.math.unibas.ch/ beilina 1 The mathematical model The model problem is the wave equation 2 u t 2 = (a 2 u) + f, x Ω R 3, t > 0, (1) u(x, 0) = 0, x Ω, (2)

More information

Weighted Regularization of Maxwell Equations Computations in Curvilinear Polygons

Weighted Regularization of Maxwell Equations Computations in Curvilinear Polygons Weighted Regularization of Maxwell Equations Computations in Curvilinear Polygons Martin Costabel, Monique Dauge, Daniel Martin and Gregory Vial IRMAR, Université de Rennes, Campus de Beaulieu, Rennes,

More information

Finite Elements. Colin Cotter. January 15, Colin Cotter FEM

Finite Elements. Colin Cotter. January 15, Colin Cotter FEM Finite Elements January 15, 2018 Why Can solve PDEs on complicated domains. Have flexibility to increase order of accuracy and match the numerics to the physics. has an elegant mathematical formulation

More information

MATH 333: Partial Differential Equations

MATH 333: Partial Differential Equations MATH 333: Partial Differential Equations Problem Set 9, Final version Due Date: Tues., Nov. 29, 2011 Relevant sources: Farlow s book: Lessons 9, 37 39 MacCluer s book: Chapter 3 44 Show that the Poisson

More information

A simple FEM solver and its data parallelism

A simple FEM solver and its data parallelism A simple FEM solver and its data parallelism Gundolf Haase Institute for Mathematics and Scientific Computing University of Graz, Austria Chile, Jan. 2015 Partial differential equation Considered Problem

More information

Gypsilab : a MATLAB toolbox for FEM-BEM coupling

Gypsilab : a MATLAB toolbox for FEM-BEM coupling Gypsilab : a MATLAB toolbox for FEM-BEM coupling François Alouges, (joint work with Matthieu Aussal) Workshop on Numerical methods for wave propagation and applications Sept. 1st 2017 Facts New numerical

More information

Domain Decomposition Preconditioners for Spectral Nédélec Elements in Two and Three Dimensions

Domain Decomposition Preconditioners for Spectral Nédélec Elements in Two and Three Dimensions Domain Decomposition Preconditioners for Spectral Nédélec Elements in Two and Three Dimensions Bernhard Hientzsch Courant Institute of Mathematical Sciences, New York University, 51 Mercer Street, New

More information

Higher-Order Compact Finite Element Method

Higher-Order Compact Finite Element Method Higher-Order Compact Finite Element Method Major Qualifying Project Advisor: Professor Marcus Sarkis Amorn Chokchaisiripakdee Worcester Polytechnic Institute Abstract The Finite Element Method (FEM) is

More information

Computational Materials Modeling FHLN05 Computer lab

Computational Materials Modeling FHLN05 Computer lab Motivation Computational Materials Modeling FHLN05 Computer lab In the basic Finite Element (FE) course, the analysis is restricted to materials where the relationship between stress and strain is linear.

More information

Dynamics of Machines and Mechanisms

Dynamics of Machines and Mechanisms Dynamics of Machines and Mechanisms Introduction SPACAR Mechanical Automation (WA) Room: HR Z 2.29 Phone: (053) 489 2557 Email: R.G.K.M.Aarts@utwente.nl Info: http://www.wa.ctw.utwente.nl/lectures/113173/

More information

8 A pseudo-spectral solution to the Stokes Problem

8 A pseudo-spectral solution to the Stokes Problem 8 A pseudo-spectral solution to the Stokes Problem 8.1 The Method 8.1.1 Generalities We are interested in setting up a pseudo-spectral method for the following Stokes Problem u σu p = f in Ω u = 0 in Ω,

More information

Time-dependent variational forms

Time-dependent variational forms Time-dependent variational forms Hans Petter Langtangen 1,2 1 Center for Biomedical Computing, Simula Research Laboratory 2 Department of Informatics, University of Oslo Oct 30, 2015 PRELIMINARY VERSION

More information

AMS 529: Finite Element Methods: Fundamentals, Applications, and New Trends

AMS 529: Finite Element Methods: Fundamentals, Applications, and New Trends AMS 529: Finite Element Methods: Fundamentals, Applications, and New Trends Lecture 3: Finite Elements in 2-D Xiangmin Jiao SUNY Stony Brook Xiangmin Jiao Finite Element Methods 1 / 18 Outline 1 Boundary

More information

Isogeometric Analysis:

Isogeometric Analysis: Isogeometric Analysis: some approximation estimates for NURBS L. Beirao da Veiga, A. Buffa, Judith Rivas, G. Sangalli Euskadi-Kyushu 2011 Workshop on Applied Mathematics BCAM, March t0th, 2011 Outline

More information

Simple Examples on Rectangular Domains

Simple Examples on Rectangular Domains 84 Chapter 5 Simple Examples on Rectangular Domains In this chapter we consider simple elliptic boundary value problems in rectangular domains in R 2 or R 3 ; our prototype example is the Poisson equation

More information

Lecture 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 (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 information

A very short introduction to the Finite Element Method

A very short introduction to the Finite Element Method A very short introduction to the Finite Element Method Till Mathis Wagner Technical University of Munich JASS 2004, St Petersburg May 4, 2004 1 Introduction This is a short introduction to the finite element

More information

ISOGEOMETRIC METHODS IN STRUCTURAL DYNAMICS AND WAVE PROPAGATION

ISOGEOMETRIC METHODS IN STRUCTURAL DYNAMICS AND WAVE PROPAGATION COMPDYN 29 ECCOMAS Thematic Conference on Computational Methods in Structural Dynamics and Earthquake Engineering M. Papadrakakis, N.D. Lagaros, M. Fragiadakis (eds.) Rhodes, Greece, 22-24 June 29 ISOGEOMETRIC

More information

Numerical Solutions to Partial Differential Equations

Numerical Solutions to Partial Differential Equations Numerical Solutions to Partial Differential Equations Zhiping Li LMAM and School of Mathematical Sciences Peking University Numerical Methods for Partial Differential Equations Finite Difference Methods

More information

TMA4220: Programming project - part 1

TMA4220: Programming project - part 1 TMA4220: Programming project - part 1 TMA4220 - Numerical solution of partial differential equations using the finite element method The programming project will be split into two parts. This is the first

More information

ACM/CMS 107 Linear Analysis & Applications Fall 2017 Assignment 2: PDEs and Finite Element Methods Due: 7th November 2017

ACM/CMS 107 Linear Analysis & Applications Fall 2017 Assignment 2: PDEs and Finite Element Methods Due: 7th November 2017 ACM/CMS 17 Linear Analysis & Applications Fall 217 Assignment 2: PDEs and Finite Element Methods Due: 7th November 217 For this assignment the following MATLAB code will be required: Introduction http://wwwmdunloporg/cms17/assignment2zip

More information

Eshan V. Dave, Secretary of M&FGM2006 (Hawaii) Research Assistant and Ph.D. Candidate. Glaucio H. Paulino, Chairman of M&FGM2006 (Hawaii)

Eshan V. Dave, Secretary of M&FGM2006 (Hawaii) Research Assistant and Ph.D. Candidate. Glaucio H. Paulino, Chairman of M&FGM2006 (Hawaii) Asphalt Pavement Aging and Temperature Dependent Properties through a Functionally Graded Viscoelastic Model I: Development, Implementation and Verification Eshan V. Dave, Secretary of M&FGM2006 (Hawaii)

More information

Introduction. Finite and Spectral Element Methods Using MATLAB. Second Edition. C. Pozrikidis. University of Massachusetts Amherst, USA

Introduction. 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 information

Lecture 2. Introduction to FEM. What it is? What we are solving? Potential formulation Why? Boundary conditions

Lecture 2. Introduction to FEM. What it is? What we are solving? Potential formulation Why? Boundary conditions Introduction to FEM What it is? What we are solving? Potential formulation Why? Boundary conditions Lecture 2 Notation Typical notation on the course: Bolded quantities = matrices (A) and vectors (a) Unit

More information

CE-570 Advanced Structural Mechanics - Arun Prakash

CE-570 Advanced Structural Mechanics - Arun Prakash Ch1-Intro Page 1 CE-570 Advanced Structural Mechanics - Arun Prakash The BIG Picture What is Mechanics? Mechanics is study of how things work: how anything works, how the world works! People ask: "Do you

More information

The following syntax is used to describe a typical irreducible continuum element:

The following syntax is used to describe a typical irreducible continuum element: ELEMENT IRREDUCIBLE T7P0 command.. Synopsis The ELEMENT IRREDUCIBLE T7P0 command is used to describe all irreducible 7-node enhanced quadratic triangular continuum elements that are to be used in mechanical

More information

Finite Difference Methods for Boundary Value Problems

Finite Difference Methods for Boundary Value Problems Finite Difference Methods for Boundary Value Problems October 2, 2013 () Finite Differences October 2, 2013 1 / 52 Goals Learn steps to approximate BVPs using the Finite Difference Method Start with two-point

More information

Mathematical Notes for E&M Gradient, Divergence, and Curl

Mathematical Notes for E&M Gradient, Divergence, and Curl Mathematical Notes for E&M Gradient, Divergence, and Curl In these notes I explain the differential operators gradient, divergence, and curl (also known as rotor), the relations between them, the integral

More information

Numerical Solutions to Partial Differential Equations

Numerical Solutions to Partial Differential Equations Numerical Solutions to Partial Differential Equations Zhiping Li LMAM and School of Mathematical Sciences Peking University Variational Problems of the Dirichlet BVP of the Poisson Equation 1 For the homogeneous

More information

Introduction to Electrostatics

Introduction to Electrostatics Chapter 1 Introduction to Electrostatics Problem Set #1: 1.5, 1.7, 1.12 (Due Monday Feb. 11th) 1.1 Electric field Coulomb showed experimentally that for two point charges the force is -proportionaltoeachofthecharges,

More information

Benchmarking high order finite element approximations for one-dimensional boundary layer problems

Benchmarking high order finite element approximations for one-dimensional boundary layer problems Benchmarking high order finite element approximations for one-dimensional boundary layer problems Marcello Malagù,, Elena Benvenuti, Angelo Simone Department of Engineering, University of Ferrara, Italy

More information

Standard Finite Elements and Weighted Regularization

Standard Finite Elements and Weighted Regularization Standard Finite Elements and Weighted Regularization A Rehabilitation Martin COSTABEL & Monique DAUGE Institut de Recherche MAthématique de Rennes http://www.maths.univ-rennes1.fr/~dauge Slides of the

More information

Condition number estimates for matrices arising in the isogeometric discretizations

Condition number estimates for matrices arising in the isogeometric discretizations www.oeaw.ac.at Condition number estimates for matrices arising in the isogeometric discretizations K. Gahalaut, S. Tomar RICAM-Report -3 www.ricam.oeaw.ac.at Condition number estimates for matrices arising

More information

1 Exercise: Linear, incompressible Stokes flow with FE

1 Exercise: Linear, incompressible Stokes flow with FE Figure 1: Pressure and velocity solution for a sinking, fluid slab impinging on viscosity contrast problem. 1 Exercise: Linear, incompressible Stokes flow with FE Reading Hughes (2000), sec. 4.2-4.4 Dabrowski

More information

arxiv: v1 [cs.ce] 27 Dec 2018

arxiv: v1 [cs.ce] 27 Dec 2018 ISOGEOMETRIC MORTAR COUPLING FOR ELECTROMAGNETIC PROBLEMS ANNALISA BUFFA, JACOPO CORNO, CARLO DE FALCO, SEBASTIAN SCHÖPS, AND RAFAEL VÁZQUEZ arxiv:1901.00759v1 [cs.ce] 27 Dec 2018 Abstract. This paper

More information

Mixed Finite Elements Method

Mixed Finite Elements Method Mixed Finite Elements Method A. Ratnani 34, E. Sonnendrücker 34 3 Max-Planck Institut für Plasmaphysik, Garching, Germany 4 Technische Universität München, Garching, Germany Contents Introduction 2. Notations.....................................

More information

Virtual Element Methods for general second order elliptic problems

Virtual Element Methods for general second order elliptic problems Virtual Element Methods for general second order elliptic problems Alessandro Russo Department of Mathematics and Applications University of Milano-Bicocca, Milan, Italy and IMATI-CNR, Pavia, Italy Workshop

More information

Domain Decomposition Preconditioners for Isogeometric Discretizations

Domain Decomposition Preconditioners for Isogeometric Discretizations Domain Decomposition Preconditioners for Isogeometric Discretizations Luca F Pavarino, Università di Milano, Italy Lorenzo Beirao da Veiga, Università di Milano, Italy Durkbin Cho, Dongguk University,

More information

Introduction to the finite element method

Introduction to the finite element method Introduction to the finite element method Instructor: Ramsharan Rangarajan March 23, 2016 One of the key concepts we have learnt in this course is that of the stress intensity factor (SIF). We have come

More information

THE angular momentum of atoms or atom clusters and its

THE angular momentum of atoms or atom clusters and its IEEE TRANSACTIONS ON MAGNETICS, VOL. 51, NO. 12, DECEMBER 2015 7209907 Optimization of a Stern Gerlach Magnet by Magnetic Field Circuit Coupling and Isogeometric Analysis Andreas Pels 1,2, Zeger Bontinck

More information

Electromagnetic wave propagation. ELEC 041-Modeling and design of electromagnetic systems

Electromagnetic wave propagation. ELEC 041-Modeling and design of electromagnetic systems Electromagnetic wave propagation ELEC 041-Modeling and design of electromagnetic systems EM wave propagation In general, open problems with a computation domain extending (in theory) to infinity not bounded

More information

Computational Methods for Engineering Applications II. Homework Problem Sheet 4

Computational Methods for Engineering Applications II. Homework Problem Sheet 4 S. Mishra K. O. Lye L. Scarabosio Autumn Term 2015 Computational Methods for Engineering Applications II ETH Zürich D-MATH Homework Problem Sheet 4 This assignment sheet contains some tasks marked as Core

More information

MAE 323: Chapter 6. Structural Models

MAE 323: Chapter 6. Structural Models Common element types for structural analyis: oplane stress/strain, Axisymmetric obeam, truss,spring oplate/shell elements o3d solid ospecial: Usually used for contact or other constraints What you need

More information

LibMesh Experience and Usage

LibMesh Experience and Usage LibMesh Experience and Usage John W. Peterson peterson@cfdlab.ae.utexas.edu and Roy H. Stogner roystgnr@cfdlab.ae.utexas.edu Univ. of Texas at Austin September 9, 2008 1 Introduction 2 Weighted Residuals

More information

EFFICIENT MULTIGRID BASED SOLVERS FOR ISOGEOMETRIC ANALYSIS

EFFICIENT MULTIGRID BASED SOLVERS FOR ISOGEOMETRIC ANALYSIS 6th European Conference on Computational Mechanics (ECCM 6) 7th European Conference on Computational Fluid Dynamics (ECFD 7) 1115 June 2018, Glasgow, UK EFFICIENT MULTIGRID BASED SOLVERS FOR ISOGEOMETRIC

More information

A FINITE-VOLUME DISCRETIZATION FOR DEFORMATION OF FRACTURED MEDIA

A FINITE-VOLUME DISCRETIZATION FOR DEFORMATION OF FRACTURED MEDIA A FINITE-VOLUME DISCRETIZATION FOR DEFORMATION OF FRACTURED MEDIA Eren Ucar a, Eirik Keilegavlen a, Inga Berre a,b, Jan Martin Nordbotten a,c a Department of Mathematics, University of Bergen, Bergen,

More information

Lecture 8: Boundary Integral Equations

Lecture 8: Boundary Integral Equations CBMS Conference on Fast Direct Solvers Dartmouth College June 23 June 27, 2014 Lecture 8: Boundary Integral Equations Gunnar Martinsson The University of Colorado at Boulder Research support by: Consider

More information

Operations On Networks Of Discrete And Generalized Conductors

Operations On Networks Of Discrete And Generalized Conductors Operations On Networks Of Discrete And Generalized Conductors Kevin Rosema e-mail: bigyouth@hardy.u.washington.edu 8/18/92 1 Introduction The most basic unit of transaction will be the discrete conductor.

More information

Constitutive models. Constitutive model: determines P in terms of deformation

Constitutive models. Constitutive model: determines P in terms of deformation Constitutive models Constitutive model: determines P in terms of deformation Elastic material: P depends only on current F Hyperelastic material: work is independent of path strain energy density function

More information

Divergence-free or curl-free finite elements for solving the curl-div system

Divergence-free or curl-free finite elements for solving the curl-div system Divergence-free or curl-free finite elements for solving the curl-div system Alberto Valli Dipartimento di Matematica, Università di Trento, Italy Joint papers with: Ana Alonso Rodríguez Dipartimento di

More information

Final Ph.D. Progress Report. Integration of hp-adaptivity with a Two Grid Solver: Applications to Electromagnetics. David Pardo

Final Ph.D. Progress Report. Integration of hp-adaptivity with a Two Grid Solver: Applications to Electromagnetics. David Pardo Final Ph.D. Progress Report Integration of hp-adaptivity with a Two Grid Solver: Applications to Electromagnetics. David Pardo Dissertation Committee: I. Babuska, L. Demkowicz, C. Torres-Verdin, R. Van

More information

Partial Differential Equations. Examples of PDEs

Partial Differential Equations. Examples of PDEs Partial Differential Equations Almost all the elementary and numerous advanced parts of theoretical physics are formulated in terms of differential equations (DE). Newton s Laws Maxwell equations Schrodinger

More information

Algorithms for Scientific Computing

Algorithms for Scientific Computing Algorithms for Scientific Computing Finite Element Methods Michael Bader Technical University of Munich Summer 2016 Part I Looking Back: Discrete Models for Heat Transfer and the Poisson Equation Modelling

More information

Wavelet Bi-frames with Uniform Symmetry for Curve Multiresolution Processing

Wavelet Bi-frames with Uniform Symmetry for Curve Multiresolution Processing Wavelet Bi-frames with Uniform Symmetry for Curve Multiresolution Processing Qingtang Jiang Abstract This paper is about the construction of univariate wavelet bi-frames with each framelet being symmetric.

More information

Background. Background. C. T. Kelley NC State University tim C. T. Kelley Background NCSU, Spring / 58

Background. Background. C. T. Kelley NC State University tim C. T. Kelley Background NCSU, Spring / 58 Background C. T. Kelley NC State University tim kelley@ncsu.edu C. T. Kelley Background NCSU, Spring 2012 1 / 58 Notation vectors, matrices, norms l 1 : max col sum... spectral radius scaled integral norms

More information

Lecture 26: Putting it all together #5... Galerkin Finite Element Methods for ODE BVPs

Lecture 26: Putting it all together #5... Galerkin Finite Element Methods for ODE BVPs Lecture 26: Putting it all together #5... Galerkin Finite Element Methods for ODE BVPs Outline 1) : Review 2) A specific Example: Piecewise linear elements 3) Computational Issues and Algorithms A) Calculation

More information

Iterative Methods for Linear Systems

Iterative Methods for Linear Systems Iterative Methods for Linear Systems 1. Introduction: Direct solvers versus iterative solvers In many applications we have to solve a linear system Ax = b with A R n n and b R n given. If n is large the

More information

Elements of Matlab and Simulink Lecture 7

Elements of Matlab and Simulink Lecture 7 Elements of Matlab and Simulink Lecture 7 Emanuele Ruffaldi 12th May 2009 Copyright 2009,Emanuele Ruffaldi. This work is licensed under the Creative Commons Attribution-ShareAlike License. PARTIAL DIFFERENTIAL

More information

Spring 2014: Computational and Variational Methods for Inverse Problems CSE 397/GEO 391/ME 397/ORI 397 Assignment 4 (due 14 April 2014)

Spring 2014: Computational and Variational Methods for Inverse Problems CSE 397/GEO 391/ME 397/ORI 397 Assignment 4 (due 14 April 2014) Spring 2014: Computational and Variational Methods for Inverse Problems CSE 397/GEO 391/ME 397/ORI 397 Assignment 4 (due 14 April 2014) The first problem in this assignment is a paper-and-pencil exercise

More information

Solving PDEs with Multigrid Methods p.1

Solving 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 information

Multi-Point Constraints

Multi-Point Constraints Multi-Point Constraints Multi-Point Constraints Multi-Point Constraints Single point constraint examples Multi-Point constraint examples linear, homogeneous linear, non-homogeneous linear, homogeneous

More information

Basic Principles of Weak Galerkin Finite Element Methods for PDEs

Basic Principles of Weak Galerkin Finite Element Methods for PDEs Basic Principles of Weak Galerkin Finite Element Methods for PDEs Junping Wang Computational Mathematics Division of Mathematical Sciences National Science Foundation Arlington, VA 22230 Polytopal Element

More information

Multilevel and Adaptive Iterative Substructuring Methods. Jan Mandel University of Colorado Denver

Multilevel and Adaptive Iterative Substructuring Methods. Jan Mandel University of Colorado Denver Multilevel and Adaptive Iterative Substructuring Methods Jan Mandel University of Colorado Denver The multilevel BDDC method is joint work with Bedřich Sousedík, Czech Technical University, and Clark Dohrmann,

More information

Physics 202 Laboratory 5. Linear Algebra 1. Laboratory 5. Physics 202 Laboratory

Physics 202 Laboratory 5. Linear Algebra 1. Laboratory 5. Physics 202 Laboratory Physics 202 Laboratory 5 Linear Algebra Laboratory 5 Physics 202 Laboratory We close our whirlwind tour of numerical methods by advertising some elements of (numerical) linear algebra. There are three

More information

Development of discontinuous Galerkin method for linear strain gradient elasticity

Development of discontinuous Galerkin method for linear strain gradient elasticity Development of discontinuous Galerkin method for linear strain gradient elasticity R Bala Chandran Computation for Design and Optimizaton Massachusetts Institute of Technology Cambridge, MA L. Noels* Aerospace

More information

A new method for the solution of scattering problems

A new method for the solution of scattering problems A new method for the solution of scattering problems Thorsten Hohage, Frank Schmidt and Lin Zschiedrich Konrad-Zuse-Zentrum Berlin, hohage@zibde * after February 22: University of Göttingen Abstract We

More information

Overlapping Schwarz preconditioners for Fekete spectral elements

Overlapping Schwarz preconditioners for Fekete spectral elements Overlapping Schwarz preconditioners for Fekete spectral elements R. Pasquetti 1, L. F. Pavarino 2, F. Rapetti 1, and E. Zampieri 2 1 Laboratoire J.-A. Dieudonné, CNRS & Université de Nice et Sophia-Antipolis,

More information

field using second order edge elements in 3D

field using second order edge elements in 3D The current issue and full text archive of this journal is available at http://www.emerald-library.com using second order edge elements in 3D Z. Ren Laboratoire de GeÂnie Electrique de Paris, UniversiteÂs

More information

ngsxfem: Geometrically unfitted discretizations with Netgen/NGSolve (https://github.com/ngsxfem/ngsxfem)

ngsxfem: Geometrically unfitted discretizations with Netgen/NGSolve (https://github.com/ngsxfem/ngsxfem) ngsxfem: Geometrically unfitted discretizations with Netgen/NGSolve (https://github.com/ngsxfem/ngsxfem) Christoph Lehrenfeld (with contributions from F. Heimann, J. Preuß, M. Hochsteger,...) lehrenfeld@math.uni-goettingen.de

More information

LibMesh Experience and Usage

LibMesh Experience and Usage LibMesh Experience and Usage John W. Peterson peterson@cfdlab.ae.utexas.edu Univ. of Texas at Austin January 12, 2007 1 Introduction 2 Weighted Residuals 3 Poisson Equation 4 Other Examples 5 Essential

More information

NUMERICAL SIMULATION OF INTERACTION BETWEEN INCOMPRESSIBLE FLOW AND AN ELASTIC WALL

NUMERICAL SIMULATION OF INTERACTION BETWEEN INCOMPRESSIBLE FLOW AND AN ELASTIC WALL Proceedings of ALGORITMY 212 pp. 29 218 NUMERICAL SIMULATION OF INTERACTION BETWEEN INCOMPRESSIBLE FLOW AND AN ELASTIC WALL MARTIN HADRAVA, MILOSLAV FEISTAUER, AND PETR SVÁČEK Abstract. The present paper

More information

A two-dimensional FE truss program

A two-dimensional FE truss program A two-dimensional FE truss program 4M020: Design Tools Eindhoven University of Technology Introduction The Matlab program fem2d allows to model and analyze two-dimensional truss structures, where trusses

More information

JEPPIAAR ENGINEERING COLLEGE

JEPPIAAR ENGINEERING COLLEGE JEPPIAAR ENGINEERING COLLEGE Jeppiaar Nagar, Rajiv Gandhi Salai 600 119 DEPARTMENT OFMECHANICAL ENGINEERING QUESTION BANK VI SEMESTER ME6603 FINITE ELEMENT ANALYSIS Regulation 013 SUBJECT YEAR /SEM: III

More information

A Nested Dissection Parallel Direct Solver. for Simulations of 3D DC/AC Resistivity. Measurements. Maciej Paszyński (1,2)

A Nested Dissection Parallel Direct Solver. for Simulations of 3D DC/AC Resistivity. Measurements. Maciej Paszyński (1,2) A Nested Dissection Parallel Direct Solver for Simulations of 3D DC/AC Resistivity Measurements Maciej Paszyński (1,2) David Pardo (2), Carlos Torres-Verdín (2) (1) Department of Computer Science, AGH

More information

ADI iterations for. general elliptic problems. John Strain Mathematics Department UC Berkeley July 2013

ADI iterations for. general elliptic problems. John Strain Mathematics Department UC Berkeley July 2013 ADI iterations for general elliptic problems John Strain Mathematics Department UC Berkeley July 2013 1 OVERVIEW Classical alternating direction implicit (ADI) iteration Essentially optimal in simple domains

More information

Soft Bodies. Good approximation for hard ones. approximation breaks when objects break, or deform. Generalization: soft (deformable) bodies

Soft 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 information

Isogeometric Analysis with Geometrically Continuous Functions on Two-Patch Geometries

Isogeometric Analysis with Geometrically Continuous Functions on Two-Patch Geometries Isogeometric Analysis with Geometrically Continuous Functions on Two-Patch Geometries Mario Kapl a Vito Vitrih b Bert Jüttler a Katharina Birner a a Institute of Applied Geometry Johannes Kepler University

More information

The Virtual Element Method: an introduction with focus on fluid flows

The Virtual Element Method: an introduction with focus on fluid flows The Virtual Element Method: an introduction with focus on fluid flows L. Beirão da Veiga Dipartimento di Matematica e Applicazioni Università di Milano-Bicocca VEM people (or group representatives): P.

More information

Finite Element Method in Geotechnical Engineering

Finite 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 information

The variational collocation method

The variational collocation method The variational collocation method Hector Gomez a,, Laura De Lorenzis b a Departamento de Métodos Matemáticos, Universidade da Coruña, Campus de A Coruña, 15071, A Coruña, Spain. b Institut für Angewandte

More information

A Fast Fourier transform based direct solver for the Helmholtz problem. AANMPDE 2017 Palaiochora, Crete, Oct 2, 2017

A Fast Fourier transform based direct solver for the Helmholtz problem. AANMPDE 2017 Palaiochora, Crete, Oct 2, 2017 A Fast Fourier transform based direct solver for the Helmholtz problem Jari Toivanen Monika Wolfmayr AANMPDE 2017 Palaiochora, Crete, Oct 2, 2017 Content 1 Model problem 2 Discretization 3 Fast solver

More information

DHANALAKSHMI COLLEGE OF ENGINEERING, CHENNAI DEPARTMENT OF MECHANICAL ENGINEERING ME 6603 FINITE ELEMENT ANALYSIS PART A (2 MARKS)

DHANALAKSHMI COLLEGE OF ENGINEERING, CHENNAI DEPARTMENT OF MECHANICAL ENGINEERING ME 6603 FINITE ELEMENT ANALYSIS PART A (2 MARKS) DHANALAKSHMI COLLEGE OF ENGINEERING, CHENNAI DEPARTMENT OF MECHANICAL ENGINEERING ME 6603 FINITE ELEMENT ANALYSIS UNIT I : FINITE ELEMENT FORMULATION OF BOUNDARY VALUE PART A (2 MARKS) 1. Write the types

More information

Spline Element Method for Partial Differential Equations

Spline Element Method for Partial Differential Equations for Partial Differential Equations Department of Mathematical Sciences Northern Illinois University 2009 Multivariate Splines Summer School, Summer 2009 Outline 1 Why multivariate splines for PDEs? Motivation

More information

A Comparison of Solving the Poisson Equation Using Several Numerical Methods in Matlab and Octave on the Cluster maya

A Comparison of Solving the Poisson Equation Using Several Numerical Methods in Matlab and Octave on the Cluster maya A Comparison of Solving the Poisson Equation Using Several Numerical Methods in Matlab and Octave on the Cluster maya Sarah Swatski, Samuel Khuvis, and Matthias K. Gobbert (gobbert@umbc.edu) Department

More information

Scientific Computing WS 2018/2019. Lecture 15. Jürgen Fuhrmann Lecture 15 Slide 1

Scientific Computing WS 2018/2019. Lecture 15. Jürgen Fuhrmann Lecture 15 Slide 1 Scientific Computing WS 2018/2019 Lecture 15 Jürgen Fuhrmann juergen.fuhrmann@wias-berlin.de Lecture 15 Slide 1 Lecture 15 Slide 2 Problems with strong formulation Writing the PDE with divergence and gradient

More information

Content. Department of Mathematics University of Oslo

Content. 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 information

Electromagnetic waves in free space

Electromagnetic waves in free space Waveguide notes 018 Electromagnetic waves in free space We start with Maxwell s equations for an LIH medum in the case that the source terms are both zero. = =0 =0 = = Take the curl of Faraday s law, then

More information

FEniCS Course. Lecture 0: Introduction to FEM. Contributors Anders Logg, Kent-Andre Mardal

FEniCS Course. Lecture 0: Introduction to FEM. Contributors Anders Logg, Kent-Andre Mardal FEniCS Course Lecture 0: Introduction to FEM Contributors Anders Logg, Kent-Andre Mardal 1 / 46 What is FEM? The finite element method is a framework and a recipe for discretization of mathematical problems

More information

1 Fundamentals. 1.1 Overview. 1.2 Units: Physics 704 Spring 2018

1 Fundamentals. 1.1 Overview. 1.2 Units: Physics 704 Spring 2018 Physics 704 Spring 2018 1 Fundamentals 1.1 Overview The objective of this course is: to determine and fields in various physical systems and the forces and/or torques resulting from them. The domain of

More information

Lecture 3: Function Spaces I Finite Elements Modeling. Bruno Lévy

Lecture 3: Function Spaces I Finite Elements Modeling. Bruno Lévy Lecture 3: Function Spaces I Finite Elements Modeling Bruno Lévy Overview 1. Motivations 2. Function Spaces 3. Discretizing a PDE 4. Example: Discretizing the Laplacian 5. Eigenfunctions Spectral Mesh

More information

CRITERIA FOR SELECTION OF FEM MODELS.

CRITERIA FOR SELECTION OF FEM MODELS. CRITERIA FOR SELECTION OF FEM MODELS. Prof. P. C.Vasani,Applied Mechanics Department, L. D. College of Engineering,Ahmedabad- 380015 Ph.(079) 7486320 [R] E-mail:pcv-im@eth.net 1. Criteria for Convergence.

More information

RF cavities (Lecture 25)

RF cavities (Lecture 25) RF cavities (Lecture 25 February 2, 2016 319/441 Lecture outline A good conductor has a property to guide and trap electromagnetic field in a confined region. In this lecture we will consider an example

More information