Finite Elements for Fluids Prof. Sheu

Size: px
Start display at page:

Download "Finite Elements for Fluids Prof. Sheu"

Transcription

1 Finite Elements for Fluids Prof. Sheu Yannick Deleuze Taipei, April 28, 26 Homework from April 7, 26 Use the code from the exercices. Write a small report with comments and discussion on the results and provide the code used. Convection-diffusion equation with u = ( u max, u max ). (uφ) (ν φ) = in [, ] [, ], φ = on Γ Γ 4 () φ = on Γ 2 Γ 3. Write the variational formulation of the convection-diffusion equation. 2. Plot the solution for different value of h = N K K h k of the convection-diffusion equation using the non-stabilized method, the artificial viscosity method and the SUPG methods in the case P e = max K (P e K ) < and P e >. 3. In the case, P e <, compare the solutions from each stabilized method with the non-stabilized method using the H norm. Stokes equation. Write the variational formulation of the Stokes equations Re 2 u + p = f in [, L] [, ], u + εp =, u = (y( y), ) on Γ, u = (, ) on Γ 2 4, (2) Re u n + p n = (, ) on Γ Analytical validation in the square [, ] [, ] with the V norm according to the analytical solution u = y( y), u 2 =, p = 2 ( x), f =. Re Plot the error for different values of h = max K h K for the P2-P, Pb-P, and P-P elements. 3. Solve the Stokes equation in the domain of your choice with the boundary condition of your choice. Give the variational formulation and a plot of the solution. Department of Engineering Science and Ocean Engineering, National Taiwan University ydeleuze@ntu.edu.tw

2 2 Correction 2. Convection-diffusion equation Let V ϕ = {w H () w = ϕ on Γ Γ 4, w = on Γ 2 Γ 3 }. One multiplies () by a test function v V and integrate over the entire domain. The variational formulation of the convection-diffusion problem becomes find φ V such that v V : a(φ, v) = (3) where the bilinear form 2.. Solutions for P e < and P e > Let ν = and U inf = 5. a(φ, v) = φ u v + ν φ v. Solutions for P e = The usual Galerkin method (non-stabilized) solution features a oscillations. From figure, one can observe that the artificial viscosity and SUPG method can give stabilized solutions without oscillation. From the cuts along the x and y directions in figure (e)-(f), one can see that the SUPG (2) method give the better approximation. Solutions for P e = 2483 The usual Galerkin method (non-stabilized) solution give the best approximation. From the cuts along the x and y directions in figure 2 (e)-(f), one can see that the SUPG (2) method give the approximation with less artificial viscosity Error for SUPG and artificial methods when P e < Please see figure 2 for the comparison of the solution obtained by the different methods. The error between the artificial and SUPG methods and the the Galerkin (non-stabilized) is given in figure 3. The difference methods are of order when using P finite elements. One can see that the SUPG (2) method give the approximation with less artificial viscosity FreeFem++ code / Generating Mesh / 2 r e a l L=; 3 border b ( t =,) {x=; y=t ; l a b e l =4;} 4 border b2 ( t =,L) {x=t ; y=; l a b e l =;} 5 border b3 ( t =,) {x=l ; y=t ; l a b e l =2;} 6 border b4 ( t=l, ) {x=t ; y=; l a b e l =3;} 7 r e a l Dx=., Dy=.; 8 mesh Th= buildmesh ( b ( c e i l (. /Dy) )+b2 ( c e i l (L/Dx) )+b3 ( c e i l (. /Dy) )+b4 ( c e i l (L/Dx) ) ) ; 9 p l o t (Th, wait =) ; / F i n i t e Element Spaces / 2 f e s p a c e Vh(Th, P) ; 3 f e s p a c e Xh(Th, P) ; 4 5 / Problem parameters / 6 r e a l nu =.; 7 Vh u=, v= ; 8 r e a l Uinf = max( u [ ]. l i n f t y, v [ ]. l i n f t y ) ; 9 r e a l U2 = s q r t ( uˆ2+v ˆ2) ; 2 p l o t ( [ u, v ], wait =, cmm= flow f i e l d [ u, v ], U i n f= +Uinf, c o e f =.) ; 2 r e a l [ i n t ] v i s o (. 3 :. :. ) ; //define fixed isolines / Macros / 24 macro a ( phih, vh ) int2d (Th) ( nu ( dx ( phih ) dx ( vh ) + dy ( phih ) dy ( vh ) ) + ( u dx ( phih ) + v dy ( phih ) ) vh ) //eom / Defining t h e v a r i a t i o n a l problem / 27 v a r f CD ( phi,w) = 28 a ( phi,w) 29 +on (, 4, phi =)+on ( 2, 3, phi =) ; 3 2

3 3 v a r f CDstab ( phi,w) = 32 a ( phi,w) 33 + int2d (Th) ( Uinf htriangle ( dx ( phi ) dx (w) + dy ( phi ) dy (w) ) ) //artifical viscosity 34 + on (, 4, phi =)+on ( 2, 3, phi =) ; r e a l d e l t a =. ; 37 Xh tau = htriangle /U2 ; 38 v a r f CDsupg( phi,w) = 39 a ( phi,w) 4 + int2d (Th) ( d e l t a ( nu ( dxx ( phi )+dyy ( phi ) )+u dx ( phi )+v dy ( phi ) ) //SUPG 4 tau ( u dx (w) + v dy (w) ) ) 42 +on (, 4, phi =)+on ( 2, 3, phi =) ; / P e c l e t Number / 45 Xh hk = htriangle ; 46 Xh PeK = Uinf hk / 2. / nu ; 47 r e a l Pe = PeK [ ]. max ; 48 cout << Pe = + Pe << endl ; 49 p l o t (PeK, wait =, f i l l =, value =,cmm= P e c l e t number : Pe= +Pe, ps= PeK +Pe+. eps ) ; 5 5 / S o l v i n g t h e problems / 52 Vh phi ; 53 matrix A = CD(Vh, Vh, s o l v e r = UMFPACK, f a c t o r i z e =) ; // assemble the FE matrix 54 r e a l [ i n t ] b = CD(,Vh) ; // Dirichlet boundary condition 55 phi [ ] = Aˆ b ; //solve the problem 56 p l o t ( phi, wait =, f i l l =, cmm= phi, v i s o=viso, ps= phi +Pe+. eps ) ; Vh p h i s t a b ; 59 A = CDstab (Vh, Vh, s o l v e r = UMFPACK, f a c t o r i z e =) ; // assemble the FE matrix 6 b = CDstab (, Vh) ; // Dirichlet boundary condition 6 p h i s tab [ ] = Aˆ b ; //solve the problem 62 p l o t ( phistab, wait =, f i l l =, cmm= phi + a r t i f i c i a l v i s c o s i t y, v i s o=viso, ps= a r t i f i c i a l v i s c o s i t y +Pe+. eps ) ; Vh phisupg ; 65 A = CDsupg (Vh, Vh, s o l v e r = UMFPACK, f a c t o r i z e =) ; // assemble the FE matrix 66 b = CDsupg (, Vh) ; // Dirichlet boundary condition 67 phisupg [ ] = Aˆ b ; //solve the problem 68 p l o t ( phisupg, wait =, f i l l =, cmm= phi + SUPG, v i s o=viso, ps= SUPG +Pe+. eps ) ; 69 7 tau = htriangle nu / 2. /U2 ; 7 Vh phisupg2 ; 72 A = CDsupg (Vh, Vh, s o l v e r = UMFPACK, f a c t o r i z e =) ; // assemble the FE matrix 73 b = CDsupg (, Vh) ; // Dirichlet boundary condition 74 phisupg2 [ ] = Aˆ b ; //solve the problem 75 p l o t ( phisupg2, wait =, f i l l =, cmm= phi + SUPG ( 2 ), v i s o=viso, ps= SUPG2 +Pe+. eps ) ; / Compare t h e d i f f e r e n t s o l u t i o n s / 79 //h errors 8 macro HNorm( u ) ( s q r t ( int2d (Th) ( uˆ2 + ( dx ( u ) ) ˆ2 + ( dy ( u ) ) ˆ2 ) ) ) //eom 8 { 82 Vh e r r s t a b = phi p h i s t ab ; 83 r e a l errstabh = HNorm( e r r s t a b ) ; 84 Vh errsupg = phi phisupg ; 85 r e a l errsupgh = HNorm( errsupg ) ; 86 Vh errsupg2 = phi phisupg2 ; 87 r e a l errsupg2h = HNorm( errsupg2 ) ; 88 ofstream f f ( e r r. s o l, append ) ; 89 f f << hk [ ]. max << << Pe << << er rs ta bh << << errsupgh << << errsupg2h << endl ; 9 } 9 92 // Plot the solution along two cuts parallel to the OX and OY axis 93 i n t Npts =; 94 r e a l [ i n t ] ox ( Npts ), ox2 ( Npts ) ; 95 r e a l [ i n t ] oy ( Npts ), oy2 ( Npts ) ; 3

4 96 f o r ( i n t j =; j<npts ; j++) { 97 // to obtain a OY-axis 98 oy [ j ] =. ; 99 oy2 [ j ]=.+.5 j ; } ; f o r ( i n t j =; j <; j++) { 2 // to obtain a OX-axis 3 ox [ j ]=.+ j. 5 ; 4 ox2 [ j ] =. ; 5 } ; 6 7 //solution along x=.5 8 { 9 r e a l xx =. 5 ; Npts = c e i l (. /Dy) ; ofstream f f ( xcut +Pe+. s o l ) ; 2 r e a l [ i n t ] phiv ( Npts ), phiy ( Npts ) ; 3 r e a l [ i n t ] phistabv ( Npts ), phistaby ( Npts ) ; 4 r e a l [ i n t ] phisupgv ( Npts ), phisupgy ( Npts ) ; 5 r e a l [ i n t ] phisupg2v ( Npts ), phisupg2y ( Npts ) ; 6 f o r ( i n t j =; j<npts ; j++) { 7 phiy [ j ]=Dy j ; 8 phiv [ j ]= phi ( xx, phiy [ j ] ) ; 9 phistabv [ j ]= p h i s t ab ( xx, phiy [ j ] ) ; 2 phisupgv [ j ]= phisupg ( xx, phiy [ j ] ) ; 2 phisupg2v [ j ]= phisupg2 ( xx, phiy [ j ] ) ; 22 f f << phiy [ j ] << << phiv [ j ] << << phistabv [ j ] << << phisupgv [ j ] << << phisupg2v [ j ] << endl ; 23 } ; 24 p l o t ( [ phisupg2y, phisupg2v ], [ phisupgy, phisupgv ], [ phistaby, phistabv ], [ phiy, phiv ], [ ox, ox2 ], [ oy, oy2 ], wait =, cmm = s o l u t i o n s along x=.5 ) ; 25 } //solution along y=.5 29 { 3 r e a l yy =. 5 ; 3 Npts = c e i l (. /Dx) ; 32 ofstream f f ( ycut +Pe+. s o l ) ; 33 r e a l [ i n t ] phiv ( Npts ), phix ( Npts ) ; 34 r e a l [ i n t ] phistabv ( Npts ), phistaby ( Npts ) ; 35 r e a l [ i n t ] phisupgv ( Npts ), phisupgy ( Npts ) ; 36 r e a l [ i n t ] phisupg2v ( Npts ), phisupg2y ( Npts ) ; 37 f o r ( i n t j =; j<npts ; j++) { 38 phix [ j ]=Dx j ; 39 phiv [ j ]= phi ( phix [ j ], yy ) ; 4 phistabv [ j ]= p h i s t ab ( phix [ j ], yy ) ; 4 phisupgv [ j ]= phisupg ( phix [ j ], yy ) ; 42 phisupg2v [ j ]= phisupg2 ( phix [ j ], yy ) ; 43 f f << phix [ j ] << << phiv [ j ] << << phistabv [ j ] << << phisupgv [ j ] << << phisupg2v [ j ] << endl ; 44 } ; 45 p l o t ( [ phisupg2y, phisupg2v ], [ phisupgy, phisupgv ], [ phistaby, phistabv ], [ phix, phiv ], [ ox, ox2 ], [ oy, oy2 ], wait =, cmm = s o l u t i o n s along y=.5 ) ; 46 } 4

5 phi phi + artificial viscosity (a) Non-stabilized (b) Artificial viscosity phi + SUPG phi + SUPG (2) (c) SUP G() (d) SUP G(2) non-stabilized Artificial viscosity non-stabilized Artificial viscosity SUPG- SUPG-2 SUPG- SUPG-2 Phi.4 Phi y x (e) Solutions along x =.5 (f) Solutions along y =.5 Figure : P e =

6 phi + artificial viscosity phi (a) Non-stabilized (b) Artificial viscosity phi + SUPG phi + SUPG (2) (c) SU P G() (d) SU P G(2) non-stabilized Artificial viscosity SUPG- SUPG-2 Phi Phi non-stabilized Artificial viscosity SUPG- SUPG y.7.9. (e) Solutions along x = x.7 (f) Solutions along y =.5 Figure 2: P e =

7 Artificial viscosity SUPG- SUPG-2 x u-uh H h Figure 3: Error u non stabilized u i with i =artificial viscosity, SUPG(), SUPG(2) 7

8 2.2 Stokes equations 2.2. Variational formulation Let the space V φ = { (w, r) [H ()] 2 L 2 () w Γ = φ, w Γ2 4 = }. Then the variational formulation of problem (2) is find (u, p) V g such that for all (v, q) V Re with g(x, y) = (y( y), ) Analytic validation ( u v + u 2 v 2 ) p( x v + y v 2 ) + ( x u + y u 2 ) q + εpq = (f v + f 2 v 2 ), From the figures 4 and 5, one can see that the solution improves with h and ε. In figure 4, the approximation of the solution given by the P 2 -P method is limited by the choice of ε. n figure 5, the approximations of the solution given by the P b-p and P -P methods are limited by the choice of h. (4) P2-P Pb-P P-P order.. (uh-u,ph-p) V e-6 e-8 e- e-2 e-4... h Figure 4: Error (u h u, p h p) V with respect to the mesh size h with ε = 3. P2-P Pb-P P-P order. e-6 e-8 (uh-u,ph-p) V e- e-2 e-4 e-6 e-8 e-2 e-2 e-8 e-6 e-4 e-2 e- e-8 e-6.. h Figure 5: Error (u h u, p h p) V with respect to the parameter ε with h =

9 2.2.3 FreeFem++ code / Generating Mesh / 2 r e a l L=; 3 border b ( t =,) {x=; y=t ; l a b e l =;} //Gamma 4 border b2 ( t =,L) {x=t ; y=; l a b e l =2;} //Gamma2 5 border b3 ( t =,) {x=l ; y=t ; l a b e l =3;} //Gamma3 6 border b4 ( t=l, ) {x=t ; y=; l a b e l =4;} //Gamma4 7 r e a l Dx=., Dy=.; 8 mesh Th= buildmesh ( b ( c e i l (. /Dy) )+b2 ( c e i l (L/Dx) )+b3 ( c e i l (. /Dy) )+b4 ( c e i l (L/Dx) ) ) ; 9 p l o t (Th, wait =) ; / F i n i t e Element Spaces / 2 f e s p a c e Vh(Th, [ P2, P2, P ] ) ; 3 f e s p a c e Vhb(Th, [ Pb, Pb, P ] ) ; 4 f e s p a c e VhStab (Th, [ P, P, P ] ) ; 5 f e s p a c e P2h (Th, P2) ; // for plots 6 f e s p a c e Ph(Th, P) ; // for plots 7 f e s p a c e Pbh(Th, Pb ) ; // for plots 8 f e s p a c e Xh(Th, P) ; 9 2 / macros / 2 macro grad ( u ) [ dx ( u ), dy ( u ) ] //eom - IMPORTANT : macro ends with a comments / Defining t h e v a r i a t i o n a l problem / 24 func g=y ( y ) ; 25 r e a l f =., f 2 =.; 26 r e a l Re = ; 27 r e a l nu =. / Re ; 28 r e a l e p s i l o n = e 3; 29 v a r f b i l i n e a r ( [ u, u2, p ], [ v, v2, q ] ) = //P2-P or Pb-P fomulation 3 int2d (Th) ( nu ( dx ( u ) dx ( v ) + dy ( u ) dy ( v ) 3 + dx ( u2 ) dx ( v2 ) + dy ( u2 ) dy ( v2 ) ) 32 p q e p s i l o n 33 p dx ( v ) p dy ( v2 ) 34 dx ( u ) q dy ( u2 ) q 35 ) 36 + on (, u=g, u2=) // boundary conditions 37 + on ( 2, 4, u=,u2=) 38 ; 39 4 r e a l d e l t a =.; 4 Xh hk2 = htriangle htriangle ; 42 v a r f b i l i n e a r S t a b ( [ u, u2, p ], [ v, v2, q ] ) = //Stabilized P-P formulation 43 int2d (Th) ( nu ( dx ( u ) dx ( v ) + dy ( u ) dy ( v ) 44 + dx ( u2 ) dx ( v2 ) + dy ( u2 ) dy ( v2 ) ) 45 + p q e p s i l o n 46 + d e l t a hk2 ( dx ( p ) dx ( q )+dy ( p ) dy ( q ) ) 47 p dx ( v ) p dy ( v2 ) 48 + dx ( u ) q+ dy ( u2 ) q 49 ) 5 + on (, u=g, u2=) // boundary conditions 5 + on ( 2, 4, u=,u2=) 52 ; v a r f l i n e a r ( [ u, u2, p ], [ v, v2, q ] ) = int2d (Th) ( f v+f 2 v2 ) ; / S o l v i n g t h e problem / 57 r e a l time=c l o c k ( ) ; 58 Vh [ u, v, p ] ; 59 matrix A = b i l i n e a r (Vh, Vh, s o l v e r=umfpack) ; // assemble the FE matrix 6 r e a l [ i n t ] bc = b i l i n e a r (,Vh) ; // Dirichlet boundary condition 6 r e a l [ i n t ] b = l i n e a r (,Vh) ; // assemble the right hand side vector 62 b += bc ; // modifying the entires for the Dirichlet BC. 63 u [ ] = Aˆ b ; //solve the problem 64 time = c l o c k ( ) time ; 65 cout << Mixed f o r m u l a t i o n P2 P : S o l v e r time = + time << endl ; 9

10 66 67 r e a l timeb=c l o c k ( ) ; 68 Vhb [ ub, vb, pb ] ; 69 matrix Ab = b i l i n e a r (Vhb, Vhb, s o l v e r=umfpack) ; // assemble the FE matrix 7 r e a l [ i n t ] bcb = b i l i n e a r (,Vhb) ; // Dirichlet boundary condition 7 r e a l [ i n t ] bb = l i n e a r (,Vhb) ; // assemble the right hand side vector 72 bb += bcb ; // modifying the entires for the Dirichlet BC. 73 ub [ ] = Abˆ bb ; //solve the problem 74 timeb = c l o c k ( ) timeb ; 75 cout << Mixed f o r m u l a t i o n Pb P : S o l v e r time = + timeb << endl ; r e a l times=c l o c k ( ) ; 78 VhStab [ uss, vss, pss ] ; 79 matrix As = b i l i n e a r S t a b ( VhStab, VhStab, s o l v e r = UMFPACK, f a c t o r i z e =) ; // assemble the FE matrix 8 r e a l [ i n t ] bcs = b i l i n e a r S t a b (, VhStab ) ; // Dirichlet boundary condition 8 r e a l [ i n t ] bs = l i n e a r (, VhStab ) ; // assemble the right hand side vector 82 bs += bcs ; // modifying the entires for the Dirichlet BC. 83 uss [ ] = Asˆ bs ; //solve the problem 84 times = c l o c k ( ) times ; 85 cout << S t a b i l i z e d P P f o r m u l a t i o n : S o l v e r time = + times << endl ; / V i s u a l i z e t h e s o l u t i o n / 88 p l o t ( c o e f =.3,cmm= Mixed f o r m u l a t i o n P2 P : Flow f i e l d [ u, v ], [ u, v ], value =, wait =) ; 89 p l o t (cmm= Mixed f o r m u l a t i o n P2 P : P r e s s u r e p, p, value =, f i l l =, wait =) ; 9 P2h V = s q r t ( u u+v v ) ; 9 p l o t (cmm= Mixed f o r m u l a t i o n P2 P : Fluid v e l o c i t y magnitude V,V, value =, f i l l =, wait =) ; p l o t ( c o e f =.3,cmm= Mixed f o r m u l a t i o n Pb P : Flow f i e l d [ u, v ], [ ub, ub ], value =, wait =) ; 94 p l o t (cmm= Mixed f o r m u l a t i o n Pb P : P r e s s u r e p, pb, value =, f i l l =, wait =) ; 95 Pbh Vb = s q r t ( ub ub+vb vb ) ; 96 p l o t (cmm= Mixed f o r m u l a t i o n Pb P : Fluid v e l o c i t y magnitude V,Vb, value =, f i l l =, wait =) ; p l o t ( c o e f =.3,cmm= S t a b i l i z e d P P f o r m u l a t i o n : Flow f i e l d [ u, v ], [ uss, vss ], value =, wait =) ; 99 p l o t (cmm= S t a b i l i z e d P P f o r m u l a t i o n : P r e s s u r e p, pss, value =, f i l l =, wait =) ; Ph Vs = s q r t ( uss uss+vss vss ) ; p l o t (cmm= S t a b i l i z e d P P f o r m u l a t i o n : Fluid v e l o c i t y magnitude V, Vs, value =, f i l l =, wait =) ; 2 3 / C o m p a t i b i l i t y c o n d i t i o n / 4 r e a l uin = intd (Th, ) ( g N. x ) ; 5 r e a l uout = intd (Th, 3 ) ( u N. x+v N. y ) ; 6 r e a l erru = s q r t ( ( uin+uout) ( uin+uout) ) ; 7 cout << endl << uin ( uout) L2 = + erru << endl << endl ; 8 9 / A n a l y t i c a l v a l i d a t i o n / func ue = y ( y ) ; 2 func dyue = 2 y ; 3 func ve =. ; 4 func pe = 2. / Re ( x ) ; 5 6 macro NuH( u ) ( s q r t ( int2d (Th) ( ( u ue ) (u ue ) + dx ( u ) dx ( u )+ ( dy ( u ) dyue ) ( dy ( u ) dyue ) ) ) ) //eom 7 macro NvH( v ) ( s q r t ( int2d (Th) ( v v + dx ( v ) dx ( v )+ dy ( v ) dy ( v ) ) ) ) //eom 8 macro NpL2( p ) ( s q r t ( int2d (Th) ( ( p pe ) (p pe ) ) ) ) //eom 9 macro NV(u, v, p ) ( s q r t ( u u + v v + p p ) ) //eom 2 2 //Mixed formulation 22 r e a l errunormh = NuH( u ) ; 23 r e a l errvnormh = NvH( v ) ; 24 r e a l errpnorml2 = NpL2( p ) ; 25 r e a l errnormv = NV( errunormh, errvnormh, errpnorml2 ) ; 26 cout << endl << Mixed f o r m u l a t i o n P2 P << endl ;

11 27 cout << uh u H = + errunormh << endl ; 28 cout << u2h u2 H = + errvnormh << endl ; 29 cout << ph p L2 = + errpnorml2 << endl ; 3 cout << ( uh u, ph p ) V = + errnormv << endl << endl ; 3 32 r e a l errubnormh = NuH( ub ) ; 33 r e a l errvbnormh = NvH( vb ) ; 34 r e a l errpbnorml2 = NpL2( pb ) ; 35 r e a l errnormvb = NV( errubnormh, errvbnormh, errpbnorml2 ) ; 36 cout << endl << Mixed f o r m u l a t i o n Pb P << endl ; 37 cout << uh u H = + errubnormh << endl ; 38 cout << u2h u2 H = + errvbnormh << endl ; 39 cout << ph p L2 = + errpbnorml2 << endl ; 4 cout << ( uh u, ph p ) V = + errnormvb << endl << endl ; 4 42 r e a l errusnormh = NuH( uss ) ; 43 r e a l errvsnormh = NvH( vss ) ; 44 r e a l errpsnorml2 = NpL2( pss ) ; 45 r e a l errnormvs = NV( errusnormh, errvsnormh, errpsnorml2 ) ; 46 cout << endl << S t a b i l i z e d P P f o r m u l a t i o n << endl ; 47 cout << uh u H = + errusnormh << endl ; 48 cout << u2h u2 H = + errvsnormh << endl ; 49 cout << ph p L2 = + errpsnorml2 << endl ; 5 cout << ( uh u, ph p ) V = + errnormvs << endl << endl ;

phenomena during acupuncture Yannick Deleuze Yannick Deleuze

phenomena during acupuncture Yannick Deleuze Yannick Deleuze Modeling FreeFem++, and a PDEs simulation solver : Basic on Tutorial transport phenomena during acupuncture Yannick Deleuze Yannick Deleuze Laboratoire Jacques-Louis Lions, Sorbonne Universités, UPMC Univ

More information

An (incomplete) Introduction to FreeFem++

An (incomplete) Introduction to FreeFem++ An (incomplete) Introduction to FreeFem++ Nathaniel Mays Wheeling Jesuit University November 12, 2011 Nathaniel Mays (Wheeling Jesuit University)An (incomplete) Introduction to FreeFem++ November 12, 2011

More information

Lecture of FreeFEM Update:2015/7/29

Lecture of FreeFEM Update:2015/7/29 Lecture of FreeFEM++ 2015.8.2 Update:2015/7/29 About this lecture The goal of this lecture is: At the first, 3~4 participants are grouped, They understand how to use throughout total 10 problems, They

More information

A short introduction to FreeFem++

A short introduction to FreeFem++ A short introduction to FreeFem++ M. Ersoy Basque Center for Applied Mathematics 12 November 2010 Outline of the talk Outline of the talk 1 Introduction 2 HOW TO solve steady pdes : e.g. Laplace equation

More information

A Multiscale DG Method for Convection Diffusion Problems

A Multiscale DG Method for Convection Diffusion Problems A Multiscale DG Method for Convection Diffusion Problems Annalisa Buffa Istituto di Matematica Applicata e ecnologie Informatiche - Pavia National Research Council Italy Joint project with h. J.R. Hughes,

More information

An Introduction to FreeFem++ UPMC, December 2011 O. Pantz. CMAP, Ecole Polytechnique.

An Introduction to FreeFem++ UPMC, December 2011 O. Pantz. CMAP, Ecole Polytechnique. An Introduction to FreeFem++ UPMC, December 2011 O. Pantz CMAP, Ecole Polytechnique. FreeFem++ What is it? FreeFEM++ is a Free software to solve PDE using the Finite Element Method. It runs on Windows,

More information

Locally chosen grad-div stabilization parameters for finite element discretizations of incompressible flow problems

Locally chosen grad-div stabilization parameters for finite element discretizations of incompressible flow problems Locally chosen grad-div stabilization parameters for finite element discretizations of incompressible flow problems Nathan D. Heavner Sponsor: Leo G. Rebholz Abstract Grad-div stabilization has recently

More information

MATH 412 Fourier Series and PDE- Spring 2010 SOLUTIONS to HOMEWORK 5

MATH 412 Fourier Series and PDE- Spring 2010 SOLUTIONS to HOMEWORK 5 MATH 4 Fourier Series PDE- Spring SOLUTIONS to HOMEWORK 5 Problem (a: Solve the following Sturm-Liouville problem { (xu + λ x u = < x < e u( = u (e = (b: Show directly that the eigenfunctions are orthogonal

More information

Discontinuous Galerkin Methods

Discontinuous Galerkin Methods Discontinuous Galerkin Methods Joachim Schöberl May 20, 206 Discontinuous Galerkin (DG) methods approximate the solution with piecewise functions (polynomials), which are discontinuous across element interfaces.

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

Numerical simulations and mesh adaptation : exercise sessions Charles Dapogny 1, Pascal Frey 2, Yannick Privat 2

Numerical simulations and mesh adaptation : exercise sessions Charles Dapogny 1, Pascal Frey 2, Yannick Privat 2 Numerical simulations and mesh adaptation : exercise sessions Charles Dapogny Pascal Frey 2 Yannick Privat 2 The purpose of this exercise session is to give an overview of several aspects of scientific

More information

FEniCS Course. Lecture 6: Incompressible Navier Stokes. Contributors Anders Logg André Massing

FEniCS Course. Lecture 6: Incompressible Navier Stokes. Contributors Anders Logg André Massing FEniCS Course Lecture 6: Incompressible Navier Stokes Contributors Anders Logg André Massing 1 / 11 The incompressible Navier Stokes equations u + u u ν u + p = f in Ω (0, T ] u = 0 in Ω (0, T ] u = g

More information

Suitability of LPS for Laminar and Turbulent Flow

Suitability of LPS for Laminar and Turbulent Flow Suitability of LPS for Laminar and Turbulent Flow Daniel Arndt Helene Dallmann Georg-August-Universität Göttingen Institute for Numerical and Applied Mathematics VMS 2015 10th International Workshop on

More information

Chapter 2. General concepts. 2.1 The Navier-Stokes equations

Chapter 2. General concepts. 2.1 The Navier-Stokes equations Chapter 2 General concepts 2.1 The Navier-Stokes equations The Navier-Stokes equations model the fluid mechanics. This set of differential equations describes the motion of a fluid. In the present work

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

In Proc. of the V European Conf. on Computational Fluid Dynamics (ECFD), Preprint

In Proc. of the V European Conf. on Computational Fluid Dynamics (ECFD), Preprint V European Conference on Computational Fluid Dynamics ECCOMAS CFD 2010 J. C. F. Pereira and A. Sequeira (Eds) Lisbon, Portugal, 14 17 June 2010 THE HIGH ORDER FINITE ELEMENT METHOD FOR STEADY CONVECTION-DIFFUSION-REACTION

More information

Study of Temperature Distribution Along the Fin Length

Study of Temperature Distribution Along the Fin Length Heat Transfer Experiment No. 2 Study of Temperature Distribution Along the Fin Length Name of the Student: Roll No: Department of Mechanical Engineering for Women, Pune. Aim: ˆ Measuring the temperature

More information

TRANSPORT IN POROUS MEDIA

TRANSPORT IN POROUS MEDIA 1 TRANSPORT IN POROUS MEDIA G. ALLAIRE CMAP, Ecole Polytechnique 1. Introduction 2. Main result in an unbounded domain 3. Asymptotic expansions with drift 4. Two-scale convergence with drift 5. The case

More information

LOWELL JOURNAL NEWS FROM HAWAII.

LOWELL JOURNAL NEWS FROM HAWAII. U # 2 3 Z7 B 2 898 X G V ; U» VU UU U z z 5U G 75 G } 2 B G G G G X G U 8 Y 22 U B B B G G G Y «j / U q 89 G 9 j YB 8 U z U - V - 2 z j _ ( UU 9 -! V G - U GB 8 j - G () V B V Y 6 G B j U U q - U z «B

More information

Question 9: PDEs Given the function f(x, y), consider the problem: = f(x, y) 2 y2 for 0 < x < 1 and 0 < x < 1. x 2 u. u(x, 0) = u(x, 1) = 0 for 0 x 1

Question 9: PDEs Given the function f(x, y), consider the problem: = f(x, y) 2 y2 for 0 < x < 1 and 0 < x < 1. x 2 u. u(x, 0) = u(x, 1) = 0 for 0 x 1 Question 9: PDEs Given the function f(x, y), consider the problem: 2 u x 2 u = f(x, y) 2 y2 for 0 < x < 1 and 0 < x < 1 u(x, 0) = u(x, 1) = 0 for 0 x 1 u(0, y) = u(1, y) = 0 for 0 y 1. a. Discuss how you

More information

New DPG techniques for designing numerical schemes

New DPG techniques for designing numerical schemes New DPG techniques for designing numerical schemes Jay Gopalakrishnan University of Florida Collaborator: Leszek Demkowicz October 2009 Massachusetts Institute of Technology, Boston Thanks: NSF Jay Gopalakrishnan

More information

Boundary conditions and estimates for the linearized Navier-Stokes equations on staggered grids

Boundary conditions and estimates for the linearized Navier-Stokes equations on staggered grids Boundary conditions and estimates for the linearized Navier-Stokes equations on staggered grids Wendy Kress and Jonas Nilsson Department of Scientific Computing Uppsala University Box S-75 4 Uppsala Sweden

More information

Due Tuesday, November 23 nd, 12:00 midnight

Due Tuesday, November 23 nd, 12:00 midnight Due Tuesday, November 23 nd, 12:00 midnight This challenging but very rewarding homework is considering the finite element analysis of advection-diffusion and incompressible fluid flow problems. Problem

More information

Alexei F. Cheviakov. University of Saskatchewan, Saskatoon, Canada. INPL seminar June 09, 2011

Alexei F. Cheviakov. University of Saskatchewan, Saskatoon, Canada. INPL seminar June 09, 2011 Direct Method of Construction of Conservation Laws for Nonlinear Differential Equations, its Relation with Noether s Theorem, Applications, and Symbolic Software Alexei F. Cheviakov University of Saskatchewan,

More information

A Finite Element Approximation of a Coupled Model for Two Turbulent Fluids

A Finite Element Approximation of a Coupled Model for Two Turbulent Fluids A Finite Element Approximation of a Coupled Model for Two Turbulent Fluids Driss Yakoubi: GIREF, Université Laval, Québec. Canada joint works with Tomas Chacon Rebollo: Laboratoire Jacques-Louis Lions,

More information

Céf o p Ram. Solving the 3D steady Radiative Transfer Equation with FreeFem++ D. Le Hardy, Y. Favennec, B. Rousseau. 16 th December 2015

Céf o p Ram. Solving the 3D steady Radiative Transfer Equation with FreeFem++ D. Le Hardy, Y. Favennec, B. Rousseau. 16 th December 2015 Solving the 3D steady Radiative Transfer Equation with FreeFem++ D. Le Hardy, Y. Favennec, B. Rousseau 16 th December 2015 Céf o p Ram 1 D. Le Hardy, Y. Favennec, B. Rousseau FreeFem 16 th December 2015

More information

Lecture Notes on PDEs

Lecture Notes on PDEs Lecture Notes on PDEs Alberto Bressan February 26, 2012 1 Elliptic equations Let IR n be a bounded open set Given measurable functions a ij, b i, c : IR, consider the linear, second order differential

More information

Solving PDEs with freefem++

Solving PDEs with freefem++ Solving PDEs with freefem++ Tutorials at Basque Center BCA Olivier Pironneau 1 with Frederic Hecht, LJLL-University of Paris VI 1 March 13, 2011 Do not forget That everything about freefem++ is at www.freefem.org

More information

Robust exponential convergence of hp-fem for singularly perturbed systems of reaction-diffusion equations

Robust exponential convergence of hp-fem for singularly perturbed systems of reaction-diffusion equations Robust exponential convergence of hp-fem for singularly perturbed systems of reaction-diffusion equations Christos Xenophontos Department of Mathematics and Statistics University of Cyprus joint work with

More information

N e w S t u d e n t. C o u n c i l M e n

N e w S t u d e n t. C o u n c i l M e n ZV. XX L GG L 3 942. 25 J b D b v D G... j z U 6 b Y DY. j b D.. L......&. v b v. z " 6 D". " v b b bv D v.... v z b.. k."... 92... G b 92. b v v b v b D ( 6) z v 27 b b v " z". v b L G. b. v.. v v. D

More information

Space time finite and boundary element methods

Space time finite and boundary element methods Space time finite and boundary element methods Olaf Steinbach Institut für Numerische Mathematik, TU Graz http://www.numerik.math.tu-graz.ac.at based on joint work with M. Neumüller, H. Yang, M. Fleischhacker,

More information

Hybrid Discontinuous Galerkin methods for incompressible flow problems

Hybrid Discontinuous Galerkin methods for incompressible flow problems Hybrid Discontinuous Galerkin methods incompressible flow problems Christoph Lehrenfeld, Joachim Schöberl MathCCES Computational Mathematics in Engineering Workshop Linz, May 31 - June 1, 2010 Contents

More information

Grand Bapids Business Directory.

Grand Bapids Business Directory. G 2 by U- b 5 y VU W HG WY UGU 2787 U 8 W UH VY Y G W Y- H W H G F U: yy 7 x V by 75 F VQ ) > q Fy y bb - W? G W W : 8 $8 6 2 8 8 36 5 35 8 5 7 bq U / Yy U qu b b b } GU H 7 W b U 8HUH Q F U y y? 8 x Q

More information

Une méthode de pénalisation par face pour l approximation des équations de Navier-Stokes à nombre de Reynolds élevé

Une méthode de pénalisation par face pour l approximation des équations de Navier-Stokes à nombre de Reynolds élevé Une méthode de pénalisation par face pour l approximation des équations de Navier-Stokes à nombre de Reynolds élevé CMCS/IACS Ecole Polytechnique Federale de Lausanne Erik.Burman@epfl.ch Méthodes Numériques

More information

Scientific Computing I

Scientific Computing I Scientific Computing I Module 8: An Introduction to Finite Element Methods Tobias Neckel Winter 2013/2014 Module 8: An Introduction to Finite Element Methods, Winter 2013/2014 1 Part I: Introduction to

More information

Proper Orthogonal Decomposition (POD) for Nonlinear Dynamical Systems. Stefan Volkwein

Proper Orthogonal Decomposition (POD) for Nonlinear Dynamical Systems. Stefan Volkwein Proper Orthogonal Decomposition (POD) for Nonlinear Dynamical Systems Institute for Mathematics and Scientific Computing, Austria DISC Summerschool 5 Outline of the talk POD and singular value decomposition

More information

Candidates must show on each answer book the type of calculator used. Log Tables, Statistical Tables and Graph Paper are available on request.

Candidates must show on each answer book the type of calculator used. Log Tables, Statistical Tables and Graph Paper are available on request. UNIVERSITY OF EAST ANGLIA School of Mathematics Spring Semester Examination 2004 FLUID DYNAMICS Time allowed: 3 hours Attempt Question 1 and FOUR other questions. Candidates must show on each answer book

More information

Fast solvers for steady incompressible flow

Fast solvers for steady incompressible flow ICFD 25 p.1/21 Fast solvers for steady incompressible flow Andy Wathen Oxford University wathen@comlab.ox.ac.uk http://web.comlab.ox.ac.uk/~wathen/ Joint work with: Howard Elman (University of Maryland,

More information

On finite element methods for 3D time dependent convection diffusion reaction equations with small diffusion

On finite element methods for 3D time dependent convection diffusion reaction equations with small diffusion On finite element methods for 3D time dependent convection diffusion reaction equations with small diffusion Volker John and Ellen Schmeyer FR 6.1 Mathematik, Universität des Saarlandes, Postfach 15 11

More information

13 Congruent Circles in a Circle

13 Congruent Circles in a Circle B - g zu Agb u G bu B Agb Gy g z u Agb u G Vu B ä bu g zu Agb u Agb G N hyh Gy bu D kg Agb Gy Vu gu Vu N N - F F Fhvz u IV h D kg H hyh Sz D Hugy kg gu Ab kg gu kw qu gu I h F F x gu hw gu Fhvz u Kvz qugh

More information

Generalized Fourier Analyses of Semi-Discretizations of the Advection-Diffusion Equation

Generalized Fourier Analyses of Semi-Discretizations of the Advection-Diffusion Equation Generalized Fourier Analyses of Semi-Discretizations of the Advection-Diffusion Equation Sponsored by: ASCI Algorithms - Advanced Spatial Discretization Project Mark A. Christon, homas E. Voth Computational

More information

On spurious oscillations at layers diminishing (SOLD) methods for convection-diffusion equations: Part II - Analysis for P1 and Q1 finite elements

On spurious oscillations at layers diminishing (SOLD) methods for convection-diffusion equations: Part II - Analysis for P1 and Q1 finite elements Volker John, Petr Knobloch On spurious oscillations at layers diminishing (SOLD) methods for convection-diffusion equations: Part II - Analysis for P and Q finite elements Preprint No. MATH-knm-27/4 27.

More information

Basic hydrodynamics. David Gurarie. 1 Newtonian fluids: Euler and Navier-Stokes equations

Basic hydrodynamics. David Gurarie. 1 Newtonian fluids: Euler and Navier-Stokes equations Basic hydrodynamics David Gurarie 1 Newtonian fluids: Euler and Navier-Stokes equations The basic hydrodynamic equations in the Eulerian form consist of conservation of mass, momentum and energy. We denote

More information

LEAST-SQUARES FINITE ELEMENT MODELS

LEAST-SQUARES FINITE ELEMENT MODELS LEAST-SQUARES FINITE ELEMENT MODELS General idea of the least-squares formulation applied to an abstract boundary-value problem Works of our group Application to Poisson s equation Application to flows

More information

Finite Elements. Colin Cotter. February 22, Colin Cotter FEM

Finite Elements. Colin Cotter. February 22, Colin Cotter FEM Finite Elements February 22, 2019 In the previous sections, we introduced the concept of finite element spaces, which contain certain functions defined on a domain. Finite element spaces are examples of

More information

Introduction to Aspects of Multiscale Modeling as Applied to Porous Media

Introduction to Aspects of Multiscale Modeling as Applied to Porous Media Introduction to Aspects of Multiscale Modeling as Applied to Porous Media Part III Todd Arbogast Department of Mathematics and Center for Subsurface Modeling, Institute for Computational Engineering and

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

On the relationship of local projection stabilization to other stabilized methods for one-dimensional advection-diffusion equations

On the relationship of local projection stabilization to other stabilized methods for one-dimensional advection-diffusion equations On the relationship of local projection stabilization to other stabilized methods for one-dimensional advection-diffusion equations Lutz Tobiska Institut für Analysis und Numerik Otto-von-Guericke-Universität

More information

Practical Exercises 7

Practical Exercises 7 Numerical Simulations with the Finite Element Method March 22, 2018 DAAD Summer School, Universidad de la Habana Practical Exercises 7 Before you start please introduce following changes: change Matrix

More information

Oddn ENTRIES. Two New Buildings For County 4-H Fair

Oddn ENTRIES. Two New Buildings For County 4-H Fair D G N H V G NNG \VH FYXH Y N $40000 b U v v 000 v b vv v vb v v b b x b z b v b b b & K b K G DH F H H /\U F b 80 K b z b bb v $40000 b v x v b bb 8 v b 30 K b b v v b v b b? x v z v b H D N G N H H Fz

More information

HYDROMETRIC NETWORK REQUIREMENTS OKANAGAN BASIN FOR THE. Prepared for. Photo: Belgo Creek at Highway 33

HYDROMETRIC NETWORK REQUIREMENTS OKANAGAN BASIN FOR THE. Prepared for. Photo: Belgo Creek at Highway 33 YD QU F G f : g g 33 b g g G g 8 f g f g Dv, f v b g g G g 8 : b, f v b-b g g, ://.v.gv.b.// f g b f g. 1. 1 2. g.. 4 3. f F. 4. 11 5... 13 6... b b 1... 11 b 2. F.. x.. f f x.. b x... f g f g 1. b g f.

More information

Some recent developments on ROMs in computational fluid dynamics

Some recent developments on ROMs in computational fluid dynamics Some recent developments on ROMs in computational fluid dynamics F. Ballarin 1, S. Ali 1, E. Delgado 2, D. Torlo 1,3, T. Chacón 2, M. Gómez 2, G. Rozza 1 1 mathlab, Mathematics Area, SISSA, Trieste, Italy

More information

IMPROVED LEAST-SQUARES ERROR ESTIMATES FOR SCALAR HYPERBOLIC PROBLEMS, 1

IMPROVED LEAST-SQUARES ERROR ESTIMATES FOR SCALAR HYPERBOLIC PROBLEMS, 1 Computational Methods in Applied Mathematics Vol. 1, No. 1(2001) 1 8 c Institute of Mathematics IMPROVED LEAST-SQUARES ERROR ESTIMATES FOR SCALAR HYPERBOLIC PROBLEMS, 1 P.B. BOCHEV E-mail: bochev@uta.edu

More information

Projection Methods for Rotating Flow

Projection Methods for Rotating Flow Projection Methods for Rotating Flow Daniel Arndt Gert Lube Georg-August-Universität Göttingen Institute for Numerical and Applied Mathematics IACM - ECCOMAS 2014 Computational Modeling of Turbulent and

More information

1 The Stokes System. ρ + (ρv) = ρ g(x), and the conservation of momentum has the form. ρ v (λ 1 + µ 1 ) ( v) µ 1 v + p = ρ f(x) in Ω.

1 The Stokes System. ρ + (ρv) = ρ g(x), and the conservation of momentum has the form. ρ v (λ 1 + µ 1 ) ( v) µ 1 v + p = ρ f(x) in Ω. 1 The Stokes System The motion of a (possibly compressible) homogeneous fluid is described by its density ρ(x, t), pressure p(x, t) and velocity v(x, t). Assume that the fluid is barotropic, i.e., the

More information

Discretization of PDEs and Tools for the Parallel Solution of the Resulting Systems

Discretization of PDEs and Tools for the Parallel Solution of the Resulting Systems Discretization of PDEs and Tools for the Parallel Solution of the Resulting Systems Stan Tomov Innovative Computing Laboratory Computer Science Department The University of Tennessee Wednesday April 4,

More information

LECTURE # 0 BASIC NOTATIONS AND CONCEPTS IN THE THEORY OF PARTIAL DIFFERENTIAL EQUATIONS (PDES)

LECTURE # 0 BASIC NOTATIONS AND CONCEPTS IN THE THEORY OF PARTIAL DIFFERENTIAL EQUATIONS (PDES) LECTURE # 0 BASIC NOTATIONS AND CONCEPTS IN THE THEORY OF PARTIAL DIFFERENTIAL EQUATIONS (PDES) RAYTCHO LAZAROV 1 Notations and Basic Functional Spaces Scalar function in R d, d 1 will be denoted by u,

More information

Graphing Square Roots - Class Work Graph the following equations by hand. State the domain and range of each using interval notation.

Graphing Square Roots - Class Work Graph the following equations by hand. State the domain and range of each using interval notation. Graphing quare Roots - lass Work Graph the following equations by hand. tate the domain and range of each using interval notation. 1. y = x + 2 2. f x = x 1. y = x + 4. g x = 2 x 1 5. y = x + 2 + 4 6.

More information

Relaxation methods and finite element schemes for the equations of visco-elastodynamics. Chiara Simeoni

Relaxation methods and finite element schemes for the equations of visco-elastodynamics. Chiara Simeoni Relaxation methods and finite element schemes for the equations of visco-elastodynamics Chiara Simeoni Department of Information Engineering, Computer Science and Mathematics University of L Aquila (Italy)

More information

Optimal control in fluid mechanics by finite elements with symmetric stabilization

Optimal control in fluid mechanics by finite elements with symmetric stabilization Computational Sciences Center Optimal control in fluid mechanics by finite elements with symmetric stabilization Malte Braack Mathematisches Seminar Christian-Albrechts-Universität zu Kiel VMS Worshop

More information

Excerpt from the Proceedings of the COMSOL Users Conference 2006 Boston

Excerpt from the Proceedings of the COMSOL Users Conference 2006 Boston Using Comsol Multiphysics to Model Viscoelastic Fluid Flow Bruce A. Finlayson, Professor Emeritus Department of Chemical Engineering University of Washington, Seattle, WA 98195-1750 finlayson@cheme.washington.edu

More information

Lehrstuhl Informatik V. Lehrstuhl Informatik V. 1. solve weak form of PDE to reduce regularity properties. Lehrstuhl Informatik V

Lehrstuhl Informatik V. Lehrstuhl Informatik V. 1. solve weak form of PDE to reduce regularity properties. Lehrstuhl Informatik V Part I: Introduction to Finite Element Methods Scientific Computing I Module 8: An Introduction to Finite Element Methods Tobias Necel Winter 4/5 The Model Problem FEM Main Ingredients Wea Forms and Wea

More information

Universität des Saarlandes. Fachrichtung 6.1 Mathematik

Universität des Saarlandes. Fachrichtung 6.1 Mathematik Universität des Saarlandes U N I V E R S I T A S S A R A V I E N I S S Fachrichtung 6.1 Mathematik Preprint Nr. 219 On finite element methods for 3D time dependent convection diffusion reaction equations

More information

Analysis of Hybrid Discontinuous Galerkin Methods for Incompressible Flow Problems

Analysis of Hybrid Discontinuous Galerkin Methods for Incompressible Flow Problems Analysis of Hybrid Discontinuous Galerkin Methods for Incompressible Flow Problems Christian Waluga 1 advised by Prof. Herbert Egger 2 Prof. Wolfgang Dahmen 3 1 Aachen Institute for Advanced Study in Computational

More information

Lecture 2: Fundamentals 2/3: Navier-Stokes Equation + Basics of Discretization

Lecture 2: Fundamentals 2/3: Navier-Stokes Equation + Basics of Discretization Lecture 2: Fundamentals 2/3: Navier-Stokes Equation Basics of Discretization V.Vuorinen Aalto University School of Engineering CFD Course, Spring 2018 January 15th 2018, Otaniemi ville.vuorinen@aalto.fi

More information

In honor of Prof. Hokee Minn

In honor of Prof. Hokee Minn In honor of Prof. Hokee Minn It is my greatest honor to be here today to deliver the nd Minn Hokee memorial lecture. I would like to thank the Prof. Ha for the nomination and the selecting committee for

More information

Yongdeok Kim and Seki Kim

Yongdeok Kim and Seki Kim J. Korean Math. Soc. 39 (00), No. 3, pp. 363 376 STABLE LOW ORDER NONCONFORMING QUADRILATERAL FINITE ELEMENTS FOR THE STOKES PROBLEM Yongdeok Kim and Seki Kim Abstract. Stability result is obtained for

More information

A Two-Grid Stabilization Method for Solving the Steady-State Navier-Stokes Equations

A Two-Grid Stabilization Method for Solving the Steady-State Navier-Stokes Equations A Two-Grid Stabilization Method for Solving the Steady-State Navier-Stokes Equations Songul Kaya and Béatrice Rivière Abstract We formulate a subgrid eddy viscosity method for solving the steady-state

More information

Some remarks on grad-div stabilization of incompressible flow simulations

Some remarks on grad-div stabilization of incompressible flow simulations Some remarks on grad-div stabilization of incompressible flow simulations Gert Lube Institute for Numerical and Applied Mathematics Georg-August-University Göttingen M. Stynes Workshop Numerical Analysis

More information

STABILIZED GALERKIN FINITE ELEMENT METHODS FOR CONVECTION DOMINATED AND INCOMPRESSIBLE FLOW PROBLEMS

STABILIZED GALERKIN FINITE ELEMENT METHODS FOR CONVECTION DOMINATED AND INCOMPRESSIBLE FLOW PROBLEMS NUMERICAL ANALYSIS AND MATHEMATICAL MODELLING BANACH CENTER PUBLICATIONS, VOLUME 29 INSTITUTE OF MATHEMATICS POLISH ACADEMY OF SCIENCES WARSZAWA 1994 STABILIZED GALERIN FINITE ELEMENT METHODS FOR CONVECTION

More information

DG Methods for Aerodynamic Flows: Higher Order, Error Estimation and Adaptive Mesh Refinement

DG Methods for Aerodynamic Flows: Higher Order, Error Estimation and Adaptive Mesh Refinement HONOM 2011 in Trento DG Methods for Aerodynamic Flows: Higher Order, Error Estimation and Adaptive Mesh Refinement Institute of Aerodynamics and Flow Technology DLR Braunschweig 11. April 2011 1 / 35 Research

More information

INTRODUCTION TO PDEs

INTRODUCTION TO PDEs INTRODUCTION TO PDEs In this course we are interested in the numerical approximation of PDEs using finite difference methods (FDM). We will use some simple prototype boundary value problems (BVP) and initial

More information

Brownian Motion and Stochastic Calculus

Brownian Motion and Stochastic Calculus ETHZ, Spring 17 D-MATH Prof Dr Martin Larsson Coordinator A Sepúlveda Brownian Motion and Stochastic Calculus Exercise sheet 6 Please hand in your solutions during exercise class or in your assistant s

More information

CH 61 USING THE GCF IN EQUATIONS AND FORMULAS

CH 61 USING THE GCF IN EQUATIONS AND FORMULAS CH 61 USING THE GCF IN EQUATIONS AND FORMULAS Introduction A while back we studied the Quadratic Formula and used it to solve quadratic equations such as x 5x + 6 = 0; we were also able to solve rectangle

More information

Recent advances in HPC with FreeFem++

Recent advances in HPC with FreeFem++ Recent advances in HPC with FreeFem++ Pierre Jolivet Laboratoire Jacques-Louis Lions Laboratoire Jean Kuntzmann Fourth workshop on FreeFem++ December 6, 2012 With F. Hecht, F. Nataf, C. Prud homme. Outline

More information

The two-dimensional streamline upwind scheme for the convection reaction equation

The two-dimensional streamline upwind scheme for the convection reaction equation INTERNATIONAL JOURNAL FOR NUMERICAL METHODS IN FLUIDS Int. J. Numer. Meth. Fluids 2001; 35: 575 591 The two-dimensional streamline upwind scheme for the convection reaction equation Tony W. H. Sheu*,1

More information

Space time finite element methods in biomedical applications

Space time finite element methods in biomedical applications Space time finite element methods in biomedical applications Olaf Steinbach Institut für Angewandte Mathematik, TU Graz http://www.applied.math.tugraz.at SFB Mathematical Optimization and Applications

More information

DG Methods for Aerodynamic Flows: Higher Order, Error Estimation and Adaptive Mesh Refinement

DG Methods for Aerodynamic Flows: Higher Order, Error Estimation and Adaptive Mesh Refinement 16th International Conference on Finite Elements in Flow Problems DG Methods for Aerodynamic Flows: Higher Order, Error Estimation and Adaptive Mesh Refinement Institute of Aerodynamics and Flow Technology

More information

Singularly Perturbed Partial Differential Equations

Singularly Perturbed Partial Differential Equations WDS'9 Proceedings of Contributed Papers, Part I, 54 59, 29. ISN 978-8-7378--9 MTFYZPRESS Singularly Perturbed Partial Differential Equations J. Lamač Charles University, Faculty of Mathematics and Physics,

More information

PDEs, part 1: Introduction and elliptic PDEs

PDEs, part 1: Introduction and elliptic PDEs PDEs, part 1: Introduction and elliptic PDEs Anna-Karin Tornberg Mathematical Models, Analysis and Simulation Fall semester, 2013 Partial di erential equations The solution depends on several variables,

More information

National Laboratory for Scientific Computation - LNCC

National Laboratory for Scientific Computation - LNCC p. 1/6 National Laboratory for Scientific Computation - LNCC Theory of Optimal Control Applied to Problems of Ambiental Pollution Santina de Fátima Arantes Jaime Edilberto Muñoz Rivera Supported by FAPERJ/Brazil

More information

Magnetic Equations with freefem: the Grad-Shafranov equation & The Current Hole

Magnetic Equations with freefem: the Grad-Shafranov equation & The Current Hole Magnetic Equations with freefem: the Grad-Shafranov equation & The Current Hole Erwan Deriaz, Bruno Despres, Gloria Faccanoni, Kirill Pichon Gostaf, Lise-Marie Imbert-Gérard, Georges Sadaka, Remy Sart

More information

Method of Finite Elements I

Method of Finite Elements I Method of Finite Elements I PhD Candidate - Charilaos Mylonas HIL H33.1 and Boundary Conditions, 26 March, 2018 Institute of Structural Engineering Method of Finite Elements I 1 Outline 1 2 Penalty method

More information

Math 5588 Final Exam Solutions

Math 5588 Final Exam Solutions Math 5588 Final Exam Solutions Prof. Jeff Calder May 9, 2017 1. Find the function u : [0, 1] R that minimizes I(u) = subject to u(0) = 0 and u(1) = 1. 1 0 e u(x) u (x) + u (x) 2 dx, Solution. Since the

More information

An asymptotic preserving scheme in the drift limit for the Euler-Lorentz system. Stéphane Brull, Pierre Degond, Fabrice Deluzet, Marie-Hélène Vignal

An asymptotic preserving scheme in the drift limit for the Euler-Lorentz system. Stéphane Brull, Pierre Degond, Fabrice Deluzet, Marie-Hélène Vignal 1 An asymptotic preserving scheme in the drift limit for the Euler-Lorentz system. Stéphane Brull, Pierre Degond, Fabrice Deluzet, Marie-Hélène Vignal IMT: Institut de Mathématiques de Toulouse 1. Introduction.

More information

Uniform inf-sup condition for the Brinkman problem in highly heterogeneous media

Uniform inf-sup condition for the Brinkman problem in highly heterogeneous media Uniform inf-sup condition for the Brinkman problem in highly heterogeneous media Raytcho Lazarov & Aziz Takhirov Texas A&M May 3-4, 2016 R. Lazarov & A.T. (Texas A&M) Brinkman May 3-4, 2016 1 / 30 Outline

More information

The Dirichlet boundary problems for second order parabolic operators satisfying a Carleson condition

The Dirichlet boundary problems for second order parabolic operators satisfying a Carleson condition The Dirichlet boundary problems for second order parabolic operators satisfying a Martin Dindos Sukjung Hwang University of Edinburgh Satellite Conference in Harmonic Analysis Chosun University, Gwangju,

More information

On a multiphase multicomponent model of biofilm growth

On a multiphase multicomponent model of biofilm growth Archive for Rational Mechanics and Analysis manuscript No. will be inserted by the editor Avner Friedman Bei Hu Chuan Xue On a multiphase multicomponent model of biofilm growth Abstract Biofilms are formed

More information

Boundary conditions. Diffusion 2: Boundary conditions, long time behavior

Boundary conditions. Diffusion 2: Boundary conditions, long time behavior Boundary conditions In a domain Ω one has to add boundary conditions to the heat (or diffusion) equation: 1. u(x, t) = φ for x Ω. Temperature given at the boundary. Also density given at the boundary.

More information

Errata Applied Analysis

Errata Applied Analysis Errata Applied Analysis p. 9: line 2 from the bottom: 2 instead of 2. p. 10: Last sentence should read: The lim sup of a sequence whose terms are bounded from above is finite or, and the lim inf of a sequence

More information

Applied Math Qualifying Exam 11 October Instructions: Work 2 out of 3 problems in each of the 3 parts for a total of 6 problems.

Applied Math Qualifying Exam 11 October Instructions: Work 2 out of 3 problems in each of the 3 parts for a total of 6 problems. Printed Name: Signature: Applied Math Qualifying Exam 11 October 2014 Instructions: Work 2 out of 3 problems in each of the 3 parts for a total of 6 problems. 2 Part 1 (1) Let Ω be an open subset of R

More information

Hybridized Discontinuous Galerkin Methods

Hybridized Discontinuous Galerkin Methods Hybridized Discontinuous Galerkin Methods Theory and Christian Waluga Joint work with Herbert Egger (Uni Graz) 1st DUNE User Meeting, Stuttgart Christian Waluga (AICES) HDG Methods October 6-8, 2010 1

More information

MATHEMATICAL MODELING AND NUMERICAL SOLUTION OF 3D ATMOSPHERIC BOUNDARY LAYER

MATHEMATICAL MODELING AND NUMERICAL SOLUTION OF 3D ATMOSPHERIC BOUNDARY LAYER , Vol, Pt, Special Issue Proceedings of International Conference RDAMM 585 MATHEMATICAL MODELING AND NUMERICAL SOLUTION OF D ATMOSPHERIC BOUNDARY LAYER L. Beneš, K. Kozel Department of Technical Mathematics,

More information

LESSON 23: EXTREMA OF FUNCTIONS OF 2 VARIABLES OCTOBER 25, 2017

LESSON 23: EXTREMA OF FUNCTIONS OF 2 VARIABLES OCTOBER 25, 2017 LESSON : EXTREMA OF FUNCTIONS OF VARIABLES OCTOBER 5, 017 Just like with functions of a single variable, we want to find the minima (plural of minimum) and maxima (plural of maximum) of functions of several

More information

Some recent results on positivity-preserving discretisations for the convection-diffusion equation

Some recent results on positivity-preserving discretisations for the convection-diffusion equation Some recent results on positivity-preserving discretisations for the convection-diffusion equation Gabriel R. Barrenechea 1, Volker John 2 & Petr Knobloch 3 1 Department of Mathematics and Statistics,

More information

Implementation of 3D Incompressible N-S Equations. Mikhail Sekachev

Implementation of 3D Incompressible N-S Equations. Mikhail Sekachev Implementation of 3D Incompressible N-S Equations Mikhail Sekachev Navier-Stokes Equations The motion of a viscous incompressible fluid is governed by the Navier-Stokes equations u + t u = ( u ) 0 Quick

More information

Quantum Mechanics for Scientists and Engineers. David Miller

Quantum Mechanics for Scientists and Engineers. David Miller Quantum Mechanics for Scientists and Engineers David Miller Vector spaces, operators and matrices Vector spaces, operators and matrices Vector space Vector space We need a space in which our vectors exist

More information

Dissection sparse direct solver for indefinite finite element matrices and application to a semi-conductor problem

Dissection sparse direct solver for indefinite finite element matrices and application to a semi-conductor problem 10th FreeFem++ days 2018, 13 Dec. Dissection sparse direct solver for indefinite finite element matrices and application to a semi-conductor problem Atsushi Suzuki 1 1 Cybermedia Center, Osaka University

More information

2) Let X be a compact space. Prove that the space C(X) of continuous real-valued functions is a complete metric space.

2) Let X be a compact space. Prove that the space C(X) of continuous real-valued functions is a complete metric space. University of Bergen General Functional Analysis Problems with solutions 6 ) Prove that is unique in any normed space. Solution of ) Let us suppose that there are 2 zeros and 2. Then = + 2 = 2 + = 2. 2)

More information

S6880 #7. Generate Non-uniform Random Number #1

S6880 #7. Generate Non-uniform Random Number #1 S6880 #7 Generate Non-uniform Random Number #1 Outline 1 Inversion Method Inversion Method Examples Application to Discrete Distributions Using Inversion Method 2 Composition Method Composition Method

More information