Introduction to Freefem with an Emphasis on Parallel Computing

Total Page:16

File Type:pdf, Size:1020Kb

Introduction to Freefem with an Emphasis on Parallel Computing INTRODUCTION TO FREEFEM WITH AN EMPHASIS ON PARALLEL COMPUTING Pierre Jolivet http://jolivet.perso.enseeiht.fr/FreeFem-tutorial Browser shortcuts: ◦ Ctrl + f fit to width/height ◦ Ctrl + g go to a page # ◦ Ctrl + PgDwn next page ◦ Ctrl + PgUp previous page v2021.08 INTRODUCTION ACKNOWLEDGEMENTS I ◦ University of Tsukuba, Tokyo, Japan ◦ Institute of Mathematics, University of Seville, Spain ◦ CMAP, École Polytechnique, France 1 ACKNOWLEDGEMENTS II ◦ FreeFEM BDFL Frédéric Hecht ◦ HPDDM feedbacks • Pierre-Henri Tournier • Pierre Marchand ◦ PETSc/SLEPc feedbacks • Johann Moulin • Julien Garaud 2 PREREQUISITES (THE MORE THE BETTER) ◦ FreeFEM [Hecht 2012] https://github.com/FreeFem/FreeFem-sources ◦ Gmsh [Geuzaine and Remacle 2009] http://gmsh.info ◦ ParaView https://www.paraview.org ◦ MPI https://www.mpi-forum.org ◦ HPDDM [Jolivet, Hecht, Nataf, et al. 2013] https://github.com/hpddm/hpddm ◦ PETSc [Balay et al. 1997] https://gitlab.com/petsc/petsc ◦ SLEPc [Hernandez et al. 2005] https://gitlab.com/slepc/slepc 3 PROGRAM OF THE LECTURE 1. Introduction 6. Overlapping Schwarz methods 2. Finite elements 7. Substructuring methods 3. FreeFEM 8. PETSc 4. Shared-memory parallelism 9. SLEPc 5. Distributed-memory parallelism 10. Applications FINITE ELEMENTS u = gD on ΓD @nu = gN on ΓN ◦ essential boundary conditions ◦ natural boundary conditions MODEL PROBLEM y −∆u = f in Ω Ω x 5 @nu = gN on ΓN ◦ natural boundary conditions MODEL PROBLEM y −∆u = f in Ω ΓD = Γ u gD on D Ω x ◦ essential boundary conditions 5 MODEL PROBLEM ΓN y −∆u = f in Ω ΓD = Γ u gD on D Ω @nu = gN on ΓN x ◦ essential boundary conditions ◦ natural boundary conditions 5 ◦ unknown function u ◦ test function v VARIATIONAL FORMULATION Green’s theorem Find u 2 H1(Ω) such that Z Z Z r · r = + ; 8 2 1 (Ω) u v f v gN v v HΓD Ω Ω ΓN u = gD on ΓD 6 VARIATIONAL FORMULATION Green’s theorem Find u 2 H1(Ω) such that Z Z Z r · r = + ; 8 2 1 (Ω) u v f v gN v v HΓD Ω Ω ΓN u = gD on ΓD ◦ unknown function u ◦ test function v 6 1 uh 2 H (Ωh) () uh is continuous ◦ f gNh basis functions 'i i=1 MESH AND FINITE ELEMENTS ◦ Ω discretized by Ω with n elements h P h ◦ Nh u discretized by uh = i=1 uh(i)'i, smooth w.r.t. Ωh 7 ◦ f gNh basis functions 'i i=1 MESH AND FINITE ELEMENTS ◦ Ω discretized by Ω with n elements h P h ◦ Nh u discretized by uh = i=1 uh(i)'i, smooth w.r.t. Ωh 1 uh 2 H (Ωh) () uh is continuous 7 MESH AND FINITE ELEMENTS ◦ Ω discretized by Ω with n elements h P h ◦ Nh u discretized by uh = i=1 uh(i)'i, smooth w.r.t. Ωh 1 uh 2 H (Ωh) () uh is continuous ◦ f gNh basis functions 'i i=1 7 Right-hand side Z Z 8 2 J K i 1; Nh ; bi = f 'i + gN 'i h Ωh ΓN =) numerical integration using quadrature rules ASSEMBLY PROCEDURES Matrix Z 8 2 J K2 r · r (i; j) 1; Nh ; Aij = 'j 'i Ωh =) only integrate in the intersection of both supports 8 ASSEMBLY PROCEDURES Matrix Z 8 2 J K2 r · r (i; j) 1; Nh ; Aij = 'j 'i Ωh =) only integrate in the intersection of both supports Right-hand side Z Z 8 2 J K i 1; Nh ; bi = f 'i + gN 'i h Ωh ΓN =) numerical integration using quadrature rules 8 ◦ symmetric elimination " #" # " # A 0 x b − A gD Ax = GDGD GD = GD GDGD 0 IGDGD xGD gD ◦ penalization " #" # " # A A x b Ax = GDGD GDGD GD = GD + 30 30 AGDGD AGDGD 10 IGDGD xGD 10 gD ESSENTIAL BOUNDARY CONDITIONS GD subset of unknowns associated to Dirichlet BC ◦ nonsymmetric elimination " #" # " # A A x b Ax = GDGD GDGD GD = GD 0 IGDGD xGD gD 9 ◦ penalization " #" # " # A A x b Ax = GDGD GDGD GD = GD + 30 30 AGDGD AGDGD 10 IGDGD xGD 10 gD ESSENTIAL BOUNDARY CONDITIONS GD subset of unknowns associated to Dirichlet BC ◦ nonsymmetric elimination " #" # " # A A x b Ax = GDGD GDGD GD = GD 0 IGDGD xGD gD ◦ symmetric elimination " #" # " # A 0 x b − A gD Ax = GDGD GD = GD GDGD 0 IGDGD xGD gD 9 ESSENTIAL BOUNDARY CONDITIONS GD subset of unknowns associated to Dirichlet BC ◦ nonsymmetric elimination " #" # " # A A x b Ax = GDGD GDGD GD = GD 0 IGDGD xGD gD ◦ symmetric elimination " #" # " # A 0 x b − A gD Ax = GDGD GD = GD GDGD 0 IGDGD xGD gD ◦ penalization " #" # " # A A x b = GDGD GDGD GD = GD Ax 30 30 AG G AGDGD + 10 IGDGD xGD 10 gD D D 9 FREEFEM [LINK TO THE EXAMPLES] HISTORY 1987 MacFem/PCFem by Pironneau 1992 FreeFem by Pironneau, Bernardi, Hecht, and Prud’homme 1996 FreeFem+ by Pironneau, Bernardi, and Hecht 1998 FreeFem++ by Hecht, Pironneau, and Ohtsuka 2008 version 3 2014 version 3.34 with distributed-memory parallelism 2018 moving to GitHub 2019 version 4, rebranded as FreeFEM 10 =) https://community.freefem.org INSTALLATION ◦ packages available for most OSes • Windows • macOS • Debian ◦ compilation from the sources for more flexibility • custom PETSc/SLEPc installation • develop branch ◦ on the cloud • https://www.rescale.com • http://qarnot.com 11 INSTALLATION ◦ packages available for most OSes • Windows • macOS • Debian ◦ compilation from the sources for more flexibility • custom PETSc/SLEPc installation • develop branch ◦ on the cloud • https://www.rescale.com • http://qarnot.com =) https://community.freefem.org 11 STANDARD COMPILATION PROCESS I ◦ remove any previous instance of FreeFEM ◦ install gcc/clang and gfortran ◦ make sure you have a working MPI implementation 12 STANDARD COMPILATION PROCESS II > git clone https://github.com/FreeFem/FreeFem-sources > cd FreeFem-sources > git checkout develop > autoreconf -i > ./configure --enable-download --without-hdf5 --prefix=${PWD} > cd 3rdparty/ff-petsc > make petsc-slepc > cd - > ./reconfigure > make 12 BINARIES ◦ FreeFem++ ◦ FreeFem++-mpi ◦ ffglut ◦ ffmedit ◦ ff-c++ Basic parameters ◦ -ns script not printed ◦ -nw/-wg graphical output deactivated ◦ -v 0 level of verbosity 13 mesh AND mesh3 [EXAMPLE2.EDP] Structured meshes ◦ in 2D, square ◦ in 3D, cube Unstructured meshes ◦ buildmesh ◦ interface with Gmsh, TetGen [Si 2013], and MMG Online visualization ◦ mostly for debugging purposes ◦ prefer medit over plot in 3D 14 fespace [EXAMPLE3.EDP] ◦ formal relationship between a mesh and a FE ◦ one accessible member .ndof ◦ may be used to define finite element functions 15 fespace [EXAMPLE3.EDP] ◦ formal relationship between a mesh and a FE ◦ one accessible member .ndof ◦ may be used to define finite element functions 15 varf AND on [EXAMPLE4.EDP] ◦ bilinear forms ◦ linear forms ◦ boundary conditions ◦ dynamic definition ◦ instantiated to assemble matrices or vectors ◦ qforder to change integration rules 16 varf AND on [EXAMPLE4.EDP] ◦ bilinear forms ◦ linear forms ◦ boundary conditions ◦ dynamic definition ◦ instantiated to assemble matrices or vectors ◦ qforder to change integration rules 16 Essential boundary conditions ◦ tgv = -1 for nonsymmetric elimination ◦ tgv = -2 for symm. elim. (careful about the RHS) ◦ tgv = 1e+30 for penalization matrix AND set [EXAMPLE5.EDP] ◦ assemble a varf using a pair of fespaces ◦ variable sym to assemble the upper triangular part ◦ matrix–vector products ◦ specify a solver for linear systems with set 17 matrix AND set [EXAMPLE5.EDP] ◦ assemble a varf using a pair of fespaces ◦ variable sym to assemble the upper triangular part ◦ matrix–vector products ◦ specify a solver for linear systems with set Essential boundary conditions ◦ tgv = -1 for nonsymmetric elimination ◦ tgv = -2 for symm. elim. (careful about the RHS) ◦ tgv = 1e+30 for penalization 17 real[int] AND OTHER ARRAYS [EXAMPLE6.EDP] ◦ real[int,int] ◦ real[int][int] ◦ complex[int] ◦ matrix[int], string[int] ◦ formal array of finite element functions Common members and methods ◦ .n and .m ◦ .resize ◦ =, +=, /= 18 ADDITIONAL PLUGINS [EXAMPLE7.EDP] ◦ keyword load ◦ load "something" =) ff-c++ -auto something.cpp ◦ FreeFEM objects manipulated in C++/Fortran 19 func [EXAMPLE7.EDP] ◦ user-defined functions ◦ may be passed to external codes ◦ useful for matrix-free computations ◦ LinearCG, EigenValue 20 macro [EXAMPLE7.EDP] ◦ evaluated when parsing input files ◦ defined on the command line -DmacroName=value ◦ conditional statements using IFMACRO 21 SUBMESH [EXAMPLE8.EDP] ◦ trunc optional parameter new2old ◦ + restrict to go from one fespace to another ◦ useful to avoid (costly) interpolations ◦ meshes in multiphysics, e.g., solid + fluid domains 22 SHARED-MEMORY PARALLELISM [LINK TO THE EXAMPLES] MOTIVATION 80 60 40 Time (s) 20 0 Linear solve assembly Mesh generationRight-handMatrix side assembly Solution exporting 23 MOTIVATION 80 60 40 Time (s) 20 0 Linear solve assembly Mesh generationRight-handMatrix side assembly Solution exporting Parallelism is key for performance 23 IMPACT ON THE FINITE ELEMENT METHOD [EXAMPLE1.EDP] Shared-memory parallelism (pthreads, OpenMP) ◦ global address space ◦ minimize critical sections ◦ mostly suited to small-scale architectures 24 IMPACT ON THE FINITE ELEMENT METHOD [EXAMPLE1.EDP] Shared-memory parallelism (pthreads, OpenMP) ◦ global address space ◦ minimize critical sections ◦ mostly suited to small-scale architectures 24 IMPACT ON THE FINITE ELEMENT METHOD [EXAMPLE1.EDP] Shared-memory parallelism (pthreads, OpenMP) ◦ global address space ◦ minimize critical sections ◦ mostly suited to small-scale architectures Color #1: 10 triangles 24 IMPACT ON THE FINITE ELEMENT METHOD [EXAMPLE1.EDP] Shared-memory parallelism (pthreads, OpenMP) ◦ global address space ◦ minimize critical sections ◦ mostly suited to small-scale architectures Color #1: 10 triangles Color #2: 11 triangles 24 IMPACT ON THE FINITE ELEMENT METHOD [EXAMPLE1.EDP] Shared-memory parallelism (pthreads, OpenMP) ◦ global address space ◦ minimize critical sections ◦ mostly suited to small-scale architectures Color #1: 10 triangles Color #2: 11 triangles Color #3: 8 triangles 24 IMPACT ON THE FINITE ELEMENT
Recommended publications
  • Arxiv:1911.09220V2 [Cs.MS] 13 Jul 2020
    MFEM: A MODULAR FINITE ELEMENT METHODS LIBRARY ROBERT ANDERSON, JULIAN ANDREJ, ANDREW BARKER, JAMIE BRAMWELL, JEAN- SYLVAIN CAMIER, JAKUB CERVENY, VESELIN DOBREV, YOHANN DUDOUIT, AARON FISHER, TZANIO KOLEV, WILL PAZNER, MARK STOWELL, VLADIMIR TOMOV Lawrence Livermore National Laboratory, Livermore, USA IDO AKKERMAN Delft University of Technology, Netherlands JOHANN DAHM IBM Research { Almaden, Almaden, USA DAVID MEDINA Occalytics, LLC, Houston, USA STEFANO ZAMPINI King Abdullah University of Science and Technology, Thuwal, Saudi Arabia Abstract. MFEM is an open-source, lightweight, flexible and scalable C++ library for modular finite element methods that features arbitrary high-order finite element meshes and spaces, support for a wide variety of dis- cretization approaches and emphasis on usability, portability, and high-performance computing efficiency. MFEM's goal is to provide application scientists with access to cutting-edge algorithms for high-order finite element mesh- ing, discretizations and linear solvers, while enabling researchers to quickly and easily develop and test new algorithms in very general, fully unstructured, high-order, parallel and GPU-accelerated settings. In this paper we describe the underlying algorithms and finite element abstractions provided by MFEM, discuss the software implementation, and illustrate various applications of the library. arXiv:1911.09220v2 [cs.MS] 13 Jul 2020 1. Introduction The Finite Element Method (FEM) is a powerful discretization technique that uses general unstructured grids to approximate the solutions of many partial differential equations (PDEs). It has been exhaustively studied, both theoretically and in practice, in the past several decades [1, 2, 3, 4, 5, 6, 7, 8]. MFEM is an open-source, lightweight, modular and scalable software library for finite elements, featuring arbitrary high-order finite element meshes and spaces, support for a wide variety of discretization approaches and emphasis on usability, portability, and high-performance computing (HPC) efficiency [9].
    [Show full text]
  • Meshing for the Finite Element Method
    Meshing for the Finite Element Method Summer Seminar ISC5939 .......... John Burkardt Department of Scientific Computing Florida State University http://people.sc.fsu.edu/∼jburkardt/presentations/. mesh 2012 fsu.pdf 10/12 July 2012 1 / 119 FEM Meshing Meshing Computer Representations The Delaunay Triangulation TRIANGLE DISTMESH MESH2D Files and Graphics 1 2 2 D Problems 3D Problems Conclusion 2 / 119 MESHING: The finite element method begins by looking at a complicated region, and thinking of it as a mesh of smaller, simpler subregions. The subregions are simple, (perhaps triangles) so we understand their geometry; they are small because when we approximate the differential equations, our errors will be related to the size of the subregions. More, smaller subregions usually mean less total error. After we compute our solution, it is described in terms of the mesh. The simplest description uses piecewise linear functions, which we might expect to be a crude approximation. However, excellent results can be obtained as long as the mesh is small enough in places where the solution changes rapidly. 3 / 119 MESHING: Thus, even though the hard part of the finite element method involves considering abstract approximation spaces, sequences of approximating functions, the issue of boundary conditions, weak forms and so on, ...it all starts with a very simple idea: Given a geometric shape, break it into smaller, simpler shapes; fit the boundary, and be small in some places. Since this is such a simple idea, you might think there's no reason to worry about it much! 4 / 119 MESHING: Indeed, if we start by thinking of a 1D problem, such as modeling the temperature along a thin strand of wire that extends from A to B, our meshing problem is trivial: Choose N, the number of subregions or elements; Insert N-1 equally spaced nodes between A and B; Create N elements, the intervals between successive nodes.
    [Show full text]
  • MFEM: a Modular Finite Element Methods Library
    MFEM: A Modular Finite Element Methods Library Robert Anderson1, Andrew Barker1, Jamie Bramwell1, Jakub Cerveny2, Johann Dahm3, Veselin Dobrev1,YohannDudouit1, Aaron Fisher1,TzanioKolev1,MarkStowell1,and Vladimir Tomov1 1Lawrence Livermore National Laboratory 2University of West Bohemia 3IBM Research July 2, 2018 Abstract MFEM is a free, lightweight, flexible and scalable C++ library for modular finite element methods that features arbitrary high-order finite element meshes and spaces, support for a wide variety of discretization approaches and emphasis on usability, portability, and high-performance computing efficiency. Its mission is to provide application scientists with access to cutting-edge algorithms for high-order finite element meshing, discretizations and linear solvers. MFEM also enables researchers to quickly and easily develop and test new algorithms in very general, fully unstructured, high-order, parallel settings. In this paper we describe the underlying algorithms and finite element abstractions provided by MFEM, discuss the software implementation, and illustrate various applications of the library. Contents 1 Introduction 3 2 Overview of the Finite Element Method 4 3Meshes 9 3.1 Conforming Meshes . 10 3.2 Non-Conforming Meshes . 11 3.3 NURBS Meshes . 12 3.4 Parallel Meshes . 12 3.5 Supported Input and Output Formats . 13 1 4 Finite Element Spaces 13 4.1 FiniteElements....................................... 14 4.2 DiscretedeRhamComplex ................................ 16 4.3 High-OrderSpaces ..................................... 17 4.4 Visualization . 18 5 Finite Element Operators 18 5.1 DiscretizationMethods................................... 18 5.2 FiniteElementLinearSystems . 19 5.3 Operator Decomposition . 23 5.4 High-Order Partial Assembly . 25 6 High-Performance Computing 27 6.1 Parallel Meshes, Spaces, and Operators . 27 6.2 Scalable Linear Solvers .
    [Show full text]
  • New Development in Freefem++
    J. Numer. Math., Vol. 20, No. 3-4, pp. 251–265 (2012) DOI 10.1515/jnum-2012-0013 c de Gruyter 2012 New development in freefem++ F. HECHT∗ Received July 2, 2012 Abstract — This is a short presentation of the freefem++ software. In Section 1, we recall most of the characteristics of the software, In Section 2, we recall how to to build the weak form of a partial differential equation (PDE) from the strong form. In the 3 last sections, we present different examples and tools to illustrated the power of the software. First we deal with mesh adaptation for problems in two and three dimension, second, we solve numerically a problem with phase change and natural convection, and the finally to show the possibilities for HPC we solve a Laplace equation by a Schwarz domain decomposition problem on parallel computer. Keywords: finite element, mesh adaptation, Schwarz domain decomposition, parallel comput- ing, freefem++ 1. Introduction This paper intends to give a small presentation of the software freefem++. A partial differential equation is a relation between a function of several variables and its (partial) derivatives. Many problems in physics, engineering, mathematics and even banking are modeled by one or several partial differen- tial equations. Freefem++ is a software to solve these equations numerically in dimen- sions two or three. As its name implies, it is a free software based on the Finite Element Method; it is not a package, it is an integrated product with its own high level programming language; it runs on most UNIX, WINDOWS and MacOs computers.
    [Show full text]
  • An XFEM Based Fixed-Grid Approach to Fluid-Structure Interaction
    TECHNISCHE UNIVERSITAT¨ MUNCHEN¨ Lehrstuhl fur¨ Numerische Mechanik An XFEM based fixed-grid approach to fluid-structure interaction Axel Gerstenberger Vollstandiger¨ Abdruck der von der Fakultat¨ fur¨ Maschinenwesen der Techni- schen Universitat¨ Munchen¨ zur Erlangung des akademischen Grades eines Doktor-Ingenieurs (Dr.-Ing.) genehmigten Dissertation. Vorsitzender: Univ.-Prof. Dr.-Ing. habil. Nikolaus A. Adams Prufer¨ der Dissertation: 1. Univ.-Prof. Dr.-Ing. Wolfgang A. Wall 2. Prof. Peter Hansbo, Ph.D. University of Gothenburg / Sweden Die Dissertation wurde am 14. 4. 2010 bei der Technischen Universitat¨ Munchen¨ eingereicht und durch die Fakultat¨ fur¨ Maschinenwesen am 21. 6. 2010 ange- nommen. Zusammenfassung Die vorliegende Arbeit behandelt ein Finite Elemente (FE) basiertes Festgit- terverfahren zur Simulation von dreidimensionaler Fluid-Struktur-Interak- tion (FSI) unter Berucksichtigung¨ großer Strukturdeformationen. FSI ist ein oberflachengekoppeltes¨ Mehrfeldproblem, bei welchem Stuktur- und Fluid- gebiete eine gemeinsame Oberflache¨ teilen. In dem vorgeschlagenen Festgit- terverfahren wird die Stromung¨ durch eine Eulersche Betrachtungsweise be- schrieben, wahrend¨ die Struktur wie ublich¨ in Lagrangscher Betrachtungs- weise formuliert wird. Die Fluid-Struktur-Grenzflache¨ kann sich dabei un- abhangig¨ von dem ortsfesten Fluidnetz bewegen, so dass keine Fluidnetzver- formungen auftreten und beliebige Grenzflachenbewegungen¨ moglich¨ sind. Durch die unveranderte¨ Lagrangsche Strukturformulierung liegt der Schwer- punkt der Arbeit
    [Show full text]
  • Open-Source Automatic Nonuniform Mesh Generation for FDTD Simulation
    This is a repository copy of Structured Mesh Generation : Open-source automatic nonuniform mesh generation for FDTD simulation. White Rose Research Online URL for this paper: https://eprints.whiterose.ac.uk/100155/ Version: Accepted Version Article: Berens, Michael, Flintoft, Ian David orcid.org/0000-0003-3153-8447 and Dawson, John Frederick orcid.org/0000-0003-4537-9977 (2016) Structured Mesh Generation : Open- source automatic nonuniform mesh generation for FDTD simulation. IEEE Antennas and Propagation Magazine. pp. 45-55. ISSN 1045-9243 https://doi.org/10.1109/MAP.2016.2541606 Reuse Items deposited in White Rose Research Online are protected by copyright, with all rights reserved unless indicated otherwise. They may be downloaded and/or printed for private study, or other acts as permitted by national copyright laws. The publisher or other rights holders may allow further reproduction and re-use of the full text version. This is indicated by the licence information on the White Rose Research Online record for the item. Takedown If you consider content in White Rose Research Online to be in breach of UK law, please notify us by emailing [email protected] including the URL of the record and the reason for the withdrawal request. [email protected] https://eprints.whiterose.ac.uk/ 1 Open Source Automatic Non-uniform Mesh Generation for FDTD Simulation Michael K. Berens, Ian D. Flintoft, Senior Member, IEEE, and John F. Dawson, Member, IEEE, Abstract—This article describes a cuboid structured mesh generator suitable for 3D numerical modelling using techniques such as finite-difference time-domain (FDTD) and transmission-line matrix (TLM).
    [Show full text]
  • Aparallel Implementation of a Femsolver in Scilab
    powered by A PARALLEL IMPLEMENTATION OF A FEM SOLVER IN SCILAB Author: Massimiliano Margonari Keywords. Scilab; Open source software; Parallel computing; Mesh partitioning, Heat transfer equation. Abstract: In this paper we describe a parallel application in Scilab to solve 3D stationary heat transfer problems using the finite element method. Two benchmarks have been done: we compare the results with reference solutions and we report the speedup to measure the effectiveness of the approach. Contacts [email protected] This work is licensed under a Creative Commons Attribution-NonCommercial-NoDerivs 3.0 Unported License. EnginSoft SpA - Via della Stazione, 27 - 38123 Mattarello di Trento | P.I. e C.F. IT00599320223 A parallel FEM solver in Scilab 1. Introduction Nowadays many simulation software have the possibility to take advantage of multi- processors/cores computers in the attempt to reduce the solution time of a given task. This not only reduces the annoying delays typical in the past, but allows the user to evaluate larger problems and to do more detailed analyses and to analyze a greater number of scenarios. Engineers and scientists who are involved in simulation activities are generally familiar with the terms “high performance computing” (HPC). These terms have been coined to indicate the ability to use a powerful machine to efficiently solve hard computational problems. One of the most important keywords related to the HPC is certainly parallelism. The total execution time can be reduced if the original problem can be divided into a given number of subtasks. Total time is reduced because these subtasks can be tackled concurrently, that means in parallel, by a certain number of machines or cores.
    [Show full text]
  • Understanding the Relationships Between Aesthetic Properties Of
    Understanding the relationships between aesthetic properties of shapes and geometric quantities of free-form curves and surfaces using Machine Learning Techniques Aleksandar Petrov To cite this version: Aleksandar Petrov. Understanding the relationships between aesthetic properties of shapes and ge- ometric quantities of free-form curves and surfaces using Machine Learning Techniques. Mechanical engineering [physics.class-ph]. Ecole nationale supérieure d’arts et métiers - ENSAM, 2016. English. NNT : 2016ENAM0007. tel-01344873 HAL Id: tel-01344873 https://pastel.archives-ouvertes.fr/tel-01344873 Submitted on 12 Jul 2016 HAL is a multi-disciplinary open access L’archive ouverte pluridisciplinaire HAL, est archive for the deposit and dissemination of sci- destinée au dépôt et à la diffusion de documents entific research documents, whether they are pub- scientifiques de niveau recherche, publiés ou non, lished or not. The documents may come from émanant des établissements d’enseignement et de teaching and research institutions in France or recherche français ou étrangers, des laboratoires abroad, or from public or private research centers. publics ou privés. N°: 2009 ENAM XXXX 2016-ENAM-0007 PhD THESIS in cotutelle To obtain the degree of Docteur de l’Arts et Métiers ParisTech Spécialité “Mécanique – Conception” École doctorale n° 432: “Science des Métiers de l’ingénieur” and Dottore di Ricerca della Università degli Studi di Genova Specialità “Ingeneria Meccanica” Scuola di Dottorato: “Scienze e tecnologie per l’ingegneria” ciclo XXVI Presented and defended publicly by Aleksandar PETROV January 25th, 2016 Understanding the relationships between aesthetic properties of shapes and geometric quantities of free-form curves and surfaces using Machine Learning Techniques Director of thesis: Philippe VÉRON Co-director of thesis: Franca GIANNINI T Co-supervisors of the thesis: Jean-Philippe PERNOT, Bianca FALCIDIENO H È Jury M.
    [Show full text]
  • Octave Package, User's Guide
    Octave package, User’s Guide∗ version 0.1.0 François Cuveliery March 24, 2019 Abstract This Octave package make it possible to generate mesh files from .geo files by using gmsh. It’s also possible with the ooGmsh2 and ooGmsh4 classes to read the mesh file (respectively for MSH file format version 2.2 and version 4.x) and to store its contains in more user-friendly form. This package must be regarded as a very simple interface between gmsh files and Octave. So you are free to create any data structures or objects you want from an ooGmsh2 object or an ooGmsh4 object. 0 Contents 1 Introduction 2 2 Installation 3 2.1 Installation automatic, all in one (recommanded) . .3 3 gmsh interface 4 3.1 function fc_oogmsh.gmsh.buildmesh2d ............................4 3.2 function fc_oogmsh.gmsh.buildmesh3d ............................6 3.3 function fc_oogmsh.gmsh.buildmesh3ds ...........................6 3.4 function fc_oogmsh.gmsh.buildpartmesh2d .........................6 3.5 function fc_oogmsh.gmsh.buildpartmesh3d .........................8 3.6 function fc_oogmsh.gmsh.buildpartmesh3ds .........................8 3.7 function fc_oogmsh.gmsh.buildPartRectangle .......................8 4 ooGmsh4 class (version 4.x) 9 4.1 Methods . 10 4.1.1 ooGms4 constructor . 10 4.1.2 info method . 10 ∗LATEX manual, revision 0.1.0.a, compiled with Octave 5.1.0, and packages fc-oogmsh[0.1.0], fc-tools[0.0.27], fc-meshtools[0.1.0], fc-graphics4mesh[0.0.4], and using gmsh 4.2.2 yLAGA, UMR 7539, CNRS, Université Paris 13 - Sorbonne Paris Cité, Université Paris 8, 99 Avenue J-B Clément, F-93430 Villetaneuse, France, [email protected].
    [Show full text]
  • High-Performance High-Order Simulation of Wave and Plasma Phenomena
    High-Performance High-Order Simulation of Wave and Plasma Phenomena by Andreas Klockner¨ Dipl.-Math. techn., Universitat¨ Karlsruhe (TH); Karlsruhe, Germany, 2005 M.S., Brown University; Providence, RI, 2006 A dissertation submitted in partial fulfillment of the requirements for the degree of Doctor of Philosophy in The Division of Applied Mathematics at Brown University PROVIDENCE, RHODE ISLAND May 2010 c Copyright 2010 by Andreas Klockner¨ This dissertation by Andreas Klockner¨ is accepted in its present form by The Division of Applied Mathematics as satisfying the dissertation requirement for the degree of Doctor of Philosophy. Date Jan Sickmann Hesthaven, Ph.D., Advisor Recommended to the Graduate Council Date Johnny Guzman,´ Ph.D., Reader Date Chi-Wang Shu, Ph.D., Reader Approved by the Graduate Council Date Sheila Bonde, Dean of the Graduate School iii Vitae Biographical Information Birth August 5th, 1977 Konstanz, Germany Education 2005 – 2010 Ph.D. in Applied Mathematics (in progress) Division of Applied Mathematics, Brown University, Providence, RI Advisor: Jan Hesthaven 2005 Diplom degree in Applied Mathematics (Technomathematik) Institut fur¨ Angewandte Mathematik, Universitat¨ Karlsruhe, Ger- many Advisor: Willy Dorfler¨ 2001 – 2002 Exchange Student, Department of Mathematics University of North Carolina at Charlotte, Charlotte, NC 2000 Vordiplom in Computer Science, Universitat¨ Karlsruhe, Germany Experience 6/2006 – 9/2006 J. Wallace Givens Research Associate Mathematics and Computer Science Div., Argonne Nat’l Laboratory,
    [Show full text]
  • Quality Tetrahedral Mesh Generation with HXT and the Growing SPR Operation
    Received: Added at production Revised: Added at production Accepted: Added at production DOI: xxx/xxxx ARTICLE TYPE Quality tetrahedral mesh generation with HXT Célestin Marot* | Jean-François Remacle 1 Institute of Mechanics, Materials and Civil Engineering, Université catholique de Summary Louvain, Louvain-la-Neuve, Belgium We proposed, in a recent paper 1, a fast 3D parallel Delaunay kernel for tetrahedral Correspondence mesh generation. This kernel was however incomplete in the sense that it lacked Célestin Marot, Institute of Mechanics, the necessary mesh improvement tools. The present paper builds on that previous Materials and Civil Engineering, Université catholique de Louvain, work and proposes a fast parallel mesh improvement stage that delivers high-quality Avenue Georges Lemaitre 4, bte L4.05.02, tetrahedral meshes compared to alternative open-source mesh generators. Our mesh 1348 Louvain-la-Neuve, Belgium. Email: [email protected] improvement toolkit includes edge removal and improved Laplacian smoothing as well as a brand new operator called the Growing SPR Cavity, which can be regarded Funding Information as the mother of all flips. The paper describes the workflow of the new mesh improve- This research was supported by the ment schedule, as well as the details of the implementation. The result of this research European Union’s Horizon 2020 research is a series of open-source scalable software components, called HXT, whose overall and innovation programme, ERC-2015AdG-694020. efficiency is demonstrated on practical examples by means of a detailed comparative benchmark with two open-source mesh generators: Gmsh and TetGen. KEYWORDS: HXT, Growing SPR Cavity, quality, tetrahedral, mesh, improvement 1 INTRODUCTION Tetrahedral meshes are the geometrical support for most finite element discretizations.
    [Show full text]
  • Scientific Computing WS 2019/2020 Lecture 1 Jürgen Fuhrmann
    Scientific Computing WS 2019/2020 Lecture 1 Jürgen Fuhrmann [email protected] Lecture 1 Slide 1 Me I Name: Dr. Jürgen Fuhrmann (no, not Prof.) I Affiliation: Weierstrass Institute for Applied Analysis and Stochastics, Berlin (WIAS); Deputy Head, Numerical Mathematics and Scientific Computing I Contact: [email protected] I Course homepage: http://www.wias-berlin.de/people/fuhrmann/teach.html I Experience/Field of work: I Numerical solution of partial differential equations (PDEs) I Development, investigation, implementation of finite volume discretizations for nonlinear systems of PDEs I Ph.D. on multigrid methods I Applications: electrochemistry, semiconductor physics, groundwater… I Software development: I WIAS code pdelib (http://pdelib.org) I Languages: C, C++, Python, Lua, Fortran, Julia I Visualization: OpenGL, VTK Lecture 1 Slide 2 Admin stuff I Lectures: Tue 10-12 FH 311, Thu 10-12 MA269 I Consultation: Thu 12-13 MA269, more at WIAS on appointment I There will be coding assignments in Julia I Unix pool I Installation possible for Linux, MacOSX, Windows I Access to examination I Attend ≈ 80% of lectures I Return assignments I Slides and code will be online, a script is being developed from the slides. I See course homepage for literature, specific hints during course Lecture 1 Slide 3 Thursday lectures in MA269 (UNIX Pool) https://www.math.tu-berlin.de/iuk/lehrrechnerbereich/v_menue/ lehrrechnerbereich/ I Working groups of two students per account/computer I Please sign up to the account list provided
    [Show full text]