Tetgen a Quality Tetrahedral Mesh Generator and Three-Dimensional Delaunay Triangulator

Total Page:16

File Type:pdf, Size:1020Kb

Tetgen a Quality Tetrahedral Mesh Generator and Three-Dimensional Delaunay Triangulator TetGen A Quality Tetrahedral Mesh Generator and Three-Dimensional Delaunay Triangulator Version 1.4 User’s Manual January 18, 2006 Hang Si [email protected] http://tetgen.berlios.de c 2002, 2004, 2005, 2006 Abstract TetGen generates tetrahedral meshes and Delaunay tetrahedral- izations. The tetrahedral meshes are suitable for finite element and finite volume methods. The algorithms implemented are the state of the art. This documents briefly explains the problems solved by TetGen and is a detailed user’s guide. Readers will learn how to create tetra- hedral meshes using input files from the command line. Furthermore, the programming interface for calling TetGen from other programs is explained. keywords: tetrahedral mesh, Delaunay tetrahedralization, con- strained Delaunay tetrahedralization, mesh quality, mesh generation 2 Contents 1 Introduction 5 1.1DelaunayTriangulationandTheConvexHull......... 5 1.2ConstrainedDelaunayTetrahedralization............ 8 1.2.1 Piecewise Linear Complex . ............. 12 1.3QualityTetrahedralMesh.................... 13 1.3.1 TheRadius-EdgeRatioQualityMeasure........ 14 2 Getting Started 16 2.1Compilation............................ 16 2.1.1 Unix/Linux........................ 16 2.1.2 Windows 9x/NT/2000/XP . ............. 17 2.2Testing............................... 17 2.3Visualization........................... 20 2.3.1 TetView.......................... 20 2.3.2 OtherMeshViewers................... 21 3UsingTetGen 22 3.1CommandLineSyntax...................... 22 3.2CommandLineSwitches..................... 22 3.2.1 -pTetrahedralizesaPLC................. 24 3.2.2 -qQualitymeshgeneration............... 24 3.2.3 -aImposesvolumeconstraints.............. 25 3.2.4 -A Assigns region attributes . ............. 25 3.2.5 -rReconstructs/refinesamesh.............. 25 3.2.6 -iInsertsadditionalpoints................ 26 3.2.7 -TSetsatolerance.................... 27 3.2.8 -Y Prohibit Steiner Points on Boundary ........ 27 3.2.9 OtherSwitches...................... 27 3.3CommandLineExamples.................... 28 3.3.1 GenerateDelaunaytetrahedralizations......... 28 3.3.2 Generate Constrained Delaunay tetrahedralizations . 28 3.3.3 MeshQuality,MeshSizeControl............ 29 4 File Formats 31 4.1TetGenFileFormats....................... 31 4.1.1 .nodefiles......................... 31 4.1.2 .polyfiles......................... 32 4.1.3 .smeshfiles........................ 36 4.1.4 .elefiles.......................... 37 3 4.1.5 .facefiles.......................... 38 4.1.6 .edgefiles......................... 38 4.1.7 .volfiles.......................... 39 4.1.8 .varfiles.......................... 39 4.1.9 .neighfiles......................... 40 4.2 Supported File Formats ..................... 40 4.2.1 .offfiles.......................... 41 4.2.2 .plyfiles.......................... 41 4.2.3 .stlfiles.......................... 41 4.2.4 .meshfiles......................... 42 4.3FileFormatExamples...................... 42 4.3.1 A PLC with Two Boundary Markers .......... 42 4.3.2 APLCwithTwoRegions................ 45 5 Calling TetGen from Another Program 48 5.1TheHeaderFile.......................... 48 5.2 The Calling Convention ..................... 48 5.3The“tetgenio”DataType.................... 49 5.4DescriptionofArrays....................... 50 5.4.1 MemoryManagement................... 51 5.4.2 The“facet”DataStructure............... 52 5.5AnExample............................ 54 A Some Combinatorial Topology 58 References 59 4 1 Introduction The TetGen program generates tetrahedral meshes from three-dimensional domains. The goal is to generate suitable tetrahedral meshes for numerical simulation using finite element and finite volume methods. Besides, as a tetrahedral mesh generator, it can be used as a meshing component in many scientific and engineering applications. For a three-dimensional domain, defined by its boundary (such as a sur- face mesh), TetGen generates the boundary constrained (Delaunay) tetra- hedralization, conforming (Delaunay) tetrahedralization, quality (Delaunay) mesh. The latter is nicely graded and the tetrahedra have circumradius-to- shortest-edge ratio bounded. For a three-dimensional point set, the Delaunay tetrahedralization and convex hull are generated. The code, written in C++, may be compiled into an executable program or a library for integrating into other applications. All major operating systems, e.g. Unix/Linux, MacOS, Windows, etc, are supported. The algorithms used in TetGen are of Delaunay type. The remainder of this section is to give a brief description of the mesh problems that TetGen solves. The algorithms implemented in TetGen are described. References are given for people who are particularly interesting in these approaches. However, this information is not really crucial for all users. Most of the sections can be skipped but Section 1.2.1 and 1.3.1, which contain some important points to get a solvable problem. 1.1 Delaunay Triangulation and The Convex Hull The Delaunay triangulation of a vertex set, introduced by Delaunay [1] in 1934, has many favorable properties which make it be a useful geometric structure. It has been used extensively both in the design of efficient algo- rithms and in practical applications. The language of combinatorial topology will be used to describe Delaunay triangulations. Understanding of some basic notions is necessary, such as convex hull, simplex, simplical complex. A brief explanation of these notions is provided in Appendix A. Let V be a set of vertices, s be a k-simplex (0 ≤ k ≤ n)formedfrom vertices of V .Thecircumsphere of s is a sphere that passes through all vertices of s.Ifk = d, s has a unique circumsphere, otherwise, there are infinitely many circumspheres of s.Thesimplexs is Delaunay if there exists a circumsphere of s such that no vertex of V lies inside it. Figure 1 (a) shows Delaunay simplices in a set of two-dimensional vertices. 5 a a c c b b d d e e (a) (b) Figure 1: The Delaunay criterion and Delaunay triangulation in two dimen- sions. (a) Both the 2-simplex abc and the 1-simplex de are Delaunay. (b) The corresponding Delaunay triangulation of the point set shown in (a). The Delaunay triangulation D of V is a simplical complex consisting of Delaunay simplices, and the set of all simplices of D covers the convex hull of V . A two-dimensional Delaunay triangulation is illustrated in Figure 1 (b). In three dimensions, it is also called Delaunay tetrahedralization. A Delaunay triangulation in Rd corresponds to a convex hull in Rd+1.For d + point p =(p1,p2, ···,pd) ∈ R , define itslift point p =(p1,p2, ··· ,pd,pd+1) ∈ d+1 d 2 d + + R ,wherepd+1 = i=1 pi . For a point set V ⊂ R , define V = {p | p ∈ V }. V + is the set of points “lifted” from points of V in Rd and on a paraboloid in Rd+1 (see Figure 2 (a)). Then the convex hull con(V +)is a d + 1-dimensional convex polytope. The Delaunay triangulation of V can be produced by projecting con(V +)intod dimensions. Figure 2 illustrates the relationship when d = 2. For this reason, convex hull algorithms [18, 13] can be used to generate Delaunay triangulations. In fact, a Delaunay triangulation is one of regular triangulations,orequiv- alently weighted Delaunay triangulations [23]. Such triangulations are related to convex polytopes [20] which makes them interesting in three or higher di- mensional combinatorial structures [39]. Recent research shows that they’re effective in removing slivers in quality mesh generation [33, 34]. The Delaunay triangulation has many optimal properties. For example, among all triangulations of a set of points in R2, it maximizes the min- imum angle, and also minimizes the maximum circumradii; optimal time complexity algorithms (divide-and-conquer and plane-sweep) are known. A discussion on some optimal properties of the Delaunay triangulation in three or higher dimensions can be found in [16]. In the following, we introduce two properties which are both useful in numerical methods and the design of efficient algorithms. 6 z p+ y/1.0e-01 x/1.0e-01 p (a) (b) Figure 2: The relation between Delaunay triangulation in Rd and convex hull in Rd+1 (here d =2). (a) Some 2D points and their corresponding 3D lift points. (b) The Delaunay triangulation of a set of 2D points and the lower convex hull of its 3D lifted points. The dual of the Delaunay triangulation is the Voronoi diagram defined on the same vertex set. For any vertex a ∈ V ,theVoronoi cell of a is the set of points with distance to a not greater than to any other vertex of V , i.e. it is the set {x ∈ Rn ||x − a|≤|x − b|, ∀b ∈ V },where|·| stands for the Euclidean distance. The Voronoi diagram of V is a subdivision of space Rn into Voronoi cells (some of which may be unbounded). Delaunay triangulation and Voronoi diagram are geometrically dual. For example, in two dimensions, Voronoi polygons correspond to Delaunay vertices, Voronoi edges correspond to Delaunay edges, and Voronoi vertices correspond to De- launay triangles (illustrated in Figure 3 (a)). Another useful property is the localization of the Delaunay property. Let T be an arbitrary triangulation of V ,ands be a simplex of T .LetK be asubcomplexofT formed by simplices containing s. s is locally Delaunay if there exists a circumsphere of s enclosing no vertices from the vertex set of K in its interior. Figure 3 (b) illustrates the property in two dimensions. Evidently, if every simplex of T is locally Delaunay, then T is Delaunay triangulation. It is well known that the Delaunay triangulations can be constructed by “flips”. A flip is an operation to transform a set of
Recommended publications
  • 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]
  • An Approach of Using Delaunay Refinement to Mesh Continuous Height Fields
    DEGREE PROJECT IN TECHNOLOGY, FIRST CYCLE, 15 CREDITS STOCKHOLM, SWEDEN 2017 An approach of using Delaunay refinement to mesh continuous height fields NOAH TELL ANTON THUN KTH ROYAL INSTITUTE OF TECHNOLOGY SCHOOL OF COMPUTER SCIENCE AND COMMUNICATION An approach of using Delaunay refinement to mesh continuous height fields NOAH TELL ANTON THUN Degree Programme in Computer Science Date: June 5, 2017 Supervisor: Alexander Kozlov Examiner: Örjan Ekeberg Swedish title: En metod att använda Delaunay-raffinemang för att skapa polygonytor av kontinuerliga höjdfält School of Computer Science and Communication Abstract Delaunay refinement is a mesh triangulation method with the goal of generating well-shaped triangles to obtain a valid Delaunay triangulation. In this thesis, an approach of using this method for meshing continuous height field terrains is presented using Perlin noise as the height field. The Delaunay approach is compared to grid-based meshing to verify that the theoretical time complexity O(n log n) holds and how accurately and deterministically the Delaunay approach can represent the height field. However, even though grid-based mesh generation is faster due to an O(n) time complexity, the focus of the report is to find out if De- launay refinement can be used to generate meshes quick enough for real-time applications. As the available memory for rendering the meshes is limited, a solution for providing a co- hesive mesh surface is presented using a hole filling algorithm since the Delaunay approach ends up leaving gaps in the mesh when a chunk division is used to limit the total mesh count present in the application.
    [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]
  • 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]
  • Computing Three-Dimensional Constrained Delaunay Refinement Using the GPU
    Computing Three-dimensional Constrained Delaunay Refinement Using the GPU Zhenghai Chen Tiow-Seng Tan School of Computing School of Computing National University of Singapore National University of Singapore [email protected] [email protected] ABSTRACT collectively called elements, are split in this order in many rounds We propose the first GPU algorithm for the 3D triangulation refine- until there are no more bad tetrahedra. Each round, the splitting ment problem. For an input of a piecewise linear complex G and is done to many elements in parallel with many GPU threads. The a constant B, it produces, by adding Steiner points, a constrained algorithm first calculates the so-called splitting points that can split Delaunay triangulation conforming to G and containing tetrahedra elements into smaller ones, then decides on a subset of them to mostly of radius-edge ratios smaller than B. Our implementation of be Steiner points for actual insertions into the triangulation T . the algorithm shows that it can be an order of magnitude faster than Note first that a splitting point is calculated by a GPU threadas the best CPU algorithm while using a similar amount of Steiner the midpoint of a subsegment, the circumcenter of the circumcircle points to produce triangulations of comparable quality. of the subface, and the circumcenter of the circumsphere of the tetrahedron. Note second that not all splitting points calculated CCS CONCEPTS can be inserted as Steiner points in a same round as they together can potentially create undesirable short edges in T to cause non- • Theory of computation → Computational geometry; • Com- termination of the algorithm.
    [Show full text]
  • Freefem++ Is a Open Source Program of the Finite Element Method to Solve
    □ What is FreeFem++ ? FreeFEM++ is a open source program of the finite element method to solve the partial differential equation developed by the staff of "Pierre et Marie Curie university" of France. The user only describes , 1) Shape of boundary, 2) Boundary condition, and 3) Partial differential equation in the language of the Pascal style that is called "Gfem". FreeFEM++ does the all of the work, automatic mesh generation and obtaining numerical solutions. A wide-ranging problem can be solved extremely easily compared with other programs. FreeFem++ is one of the most popular simulation tools in the field of engineering and science. FreeFem++ example code for 2D Poisson equation: real NX=20, NY=20 ; mesh T0h=square(NX,NY,[1.0*x,1.0*y]); plot (T0h,wait=true); fespace V0h(T0h,P1); V0h u0,v0; solve eq(u0,v0) =int2d(T0h)(dx(u0)*dx(v0)+dy(u0)*dy(v0)) -int2d(T0h)(1.0*v0) +on(2,3,u0=1.0); // boundary condition plot(u0,wait=true); FreeFem++ is written in C++ and the FreeFem++ language is a C++ idiom. It runs on any Unix-like OS (with g++ version 3 or higher, X11R6 or OpenGL with GLUT) Linux, FreeBSD, Solaris 10, Microsoft Windows (95, 98, 2000, NT, XP, Vista) and MacOS X (native version using OpenGL). FreeFem++ replaces the older freefem and freefem+. 2D and 3D analysis is now available supporting popular pre/post tools. FreeFem++ is freely downloaded from FreeFem++ home page (http://www/freefem.org) under the GNU public license, GPL. □ How to run FreeFem++ To run FreeFem++ program, click FreeFem++ program file icon and FreeFem++ starts automatically.
    [Show full text]
  • Evaluation of Gmsh Meshing Algorithms in Preparation of High-Resolution Wind Speed Simulations in Urban Areas
    The International Archives of the Photogrammetry, Remote Sensing and Spatial Information Sciences, Volume XLII-2, 2018 ISPRS TC II Mid-term Symposium “Towards Photogrammetry 2020”, 4–7 June 2018, Riva del Garda, Italy EVALUATION OF GMSH MESHING ALGORITHMS IN PREPARATION OF HIGH-RESOLUTION WIND SPEED SIMULATIONS IN URBAN AREAS M. Langheinrich*1 1 German Aerospace Center, Weßling, Germany Remote Sensing Technology Institute Department of Photogrammetry and Image Analysis [email protected] Commission II, WG II/4 KEY WORDS: CFD, meshing, 3D, computational fluid dynamics, spatial data, evaluation, wind speed ABSTRACT: This paper aims to evaluate the applicability of automatically generated meshes produced within the gmsh meshing framework in preparation for high resolution wind speed and atmospheric pressure simulations for detailed urban environments. The process of creating a skeleton geometry for the meshing process based on level of detail (LOD) 2 CityGML data is described. Gmsh itself offers several approaches for the 2D and 3D meshing process respectively. The different algorithms are shortly introduced and preliminary rated in regard to the mesh quality that is to be expected, as they differ inversely in terms of robustness and resulting mesh element quality. A test area was chosen to simulate the turbulent flow of wind around an urban environment to evaluate the different mesh incarnations by means of a relative comparison of the residuals resulting from the finite-element computational fluid dynamics (CFD) calculations. The applied mesh cases are assessed regarding their convergence evolution as well as final residual values, showing that gmsh 2D and 3D algorithm combinations utilizing the Frontal meshing approach are the preferable choice for the kind of underlying geometry as used in the on hand experiments.
    [Show full text]
  • Pipenightdreams Osgcal-Doc Mumudvb Mpg123-Alsa Tbb
    pipenightdreams osgcal-doc mumudvb mpg123-alsa tbb-examples libgammu4-dbg gcc-4.1-doc snort-rules-default davical cutmp3 libevolution5.0-cil aspell-am python-gobject-doc openoffice.org-l10n-mn libc6-xen xserver-xorg trophy-data t38modem pioneers-console libnb-platform10-java libgtkglext1-ruby libboost-wave1.39-dev drgenius bfbtester libchromexvmcpro1 isdnutils-xtools ubuntuone-client openoffice.org2-math openoffice.org-l10n-lt lsb-cxx-ia32 kdeartwork-emoticons-kde4 wmpuzzle trafshow python-plplot lx-gdb link-monitor-applet libscm-dev liblog-agent-logger-perl libccrtp-doc libclass-throwable-perl kde-i18n-csb jack-jconv hamradio-menus coinor-libvol-doc msx-emulator bitbake nabi language-pack-gnome-zh libpaperg popularity-contest xracer-tools xfont-nexus opendrim-lmp-baseserver libvorbisfile-ruby liblinebreak-doc libgfcui-2.0-0c2a-dbg libblacs-mpi-dev dict-freedict-spa-eng blender-ogrexml aspell-da x11-apps openoffice.org-l10n-lv openoffice.org-l10n-nl pnmtopng libodbcinstq1 libhsqldb-java-doc libmono-addins-gui0.2-cil sg3-utils linux-backports-modules-alsa-2.6.31-19-generic yorick-yeti-gsl python-pymssql plasma-widget-cpuload mcpp gpsim-lcd cl-csv libhtml-clean-perl asterisk-dbg apt-dater-dbg libgnome-mag1-dev language-pack-gnome-yo python-crypto svn-autoreleasedeb sugar-terminal-activity mii-diag maria-doc libplexus-component-api-java-doc libhugs-hgl-bundled libchipcard-libgwenhywfar47-plugins libghc6-random-dev freefem3d ezmlm cakephp-scripts aspell-ar ara-byte not+sparc openoffice.org-l10n-nn linux-backports-modules-karmic-generic-pae
    [Show full text]
  • Contents 1. Preface 2. Introduction
    Technical University Berlin Scientific Computing WS 2017/2018 Script Version November 28, 2017 Jürgen Fuhrmann Contents 1 Preface 1 2 Introduction 1 2.1 Motivation .................................................. 1 2.2 Sequential Hardware............................................ 7 2.3 Computer Languages............................................ 10 3 Introduction to C++ 12 3.1 C++ basics .................................................. 12 3.2 C++ – the hard stuff............................................. 18 3.3 C++ – some code examples......................................... 27 4 Direct solution of linear systems of equations 29 4.1 Recapitulation from Numerical Analysis ................................ 29 4.2 Dense matrix problems – direct solvers................................. 32 4.3 Sparse matrix problems – direct solvers................................. 39 5 Iterative solution of linear systems of equations 43 5.1 Definition and convergence criteria ................................... 43 5.2 Iterative methods for diagonally dominant and M-Matrices..................... 53 5.3 Orthogonalization methods ........................................ 64 6 Mesh generation 73 A Working with compilers and source code 78 B The numcxx library 80 C Visualization tools 83 D List of slides 87 1. Preface This script is composed from the lecture slides with possible additional text. In order to relate to the slides, the slide titles are retained in the skript and printed in bold face blue color aligned to the right. 2. Introduction 2.1. Motivation 1 2.1 Motivation 2 There was a time when “computers” were humans Harvard Computers, circa 1890 It was about science – astronomy By Harvard College Observatory - Public Domain https://commons.wikimedia.org/w/index.php?curid=10392913 Computations of course have been performed since ancient times. One can trace back the termin “computer” applied to humans at least until 1613. The “Harvard computers” became very famous in this context.
    [Show full text]
  • Fast Tetrahedral Mesh Generation and Segmentation of an Atlas-Based Heart Model Using a Periodic Uniform Grid
    pp. 1–11 (2018) Fast tetrahedral mesh generation and segmentation of an atlas-based heart model using a periodic uniform grid E. Vasilev∗, D. Lachinov∗, A. Grishin∗, and V. Turlapov∗ Abstract — A fast procedure for generation of regular tetrahedral finite element mesh for objects with complex shape cavities is proposed. The procedure like LBIE-Mesher can generate tetrahedral meshes for the volume interior to a polygonal surface, or for an interval volume between two surfaces having a complex shape and defined in STL-format. This procedure consists of several stages: generation of a regular tetrahedral mesh that fills the volume of the required object; generation of clipping for the uniform grid parts by a boundary surface; shifting vertices of the boundary layer to align onto the surface. We present a sequential and parallel implementation of the algorithm and compare their performance with existing generators of tetrahedral grids such as TetGen, NETGEN, and CGAL. The current version of the algorithm using the mobile GPU is about 5 times faster than NETGEN. The source code of the developed software is available on GitHub. Keywords: FE-mesh generation, tetrahedral mesh, regular mesh, segmentation, human heart model- ling, fast generation MSC 2010: 65M50 This research addresses the problem of fast generation of regular three-dimensional tetrahedral mesh with complex shape cavities. Current existing open-source soft- ware packages do not have such capabilities. For digital medicine, an important example of objects with cavities having a complex shape is the human heart. For a qualitative simulation of the electrical activity of the human heart and obtaining reliable results, a reasonably detailed model of the heart should be used, which will accurately approximate the real heart.
    [Show full text]
  • Efficient Mesh Optimization Schemes Based on Optimal Delaunay
    Comput. Methods Appl. Mech. Engrg. 200 (2011) 967–984 Contents lists available at ScienceDirect Comput. Methods Appl. Mech. Engrg. journal homepage: www.elsevier.com/locate/cma Efficient mesh optimization schemes based on Optimal Delaunay Triangulations q ⇑ Long Chen a, , Michael Holst b a Department of Mathematics, University of California at Irvine, Irvine, CA 92697, USA b Department of Mathematics, University of California at San Diego, La Jolla, CA 92093, USA article info abstract Article history: In this paper, several mesh optimization schemes based on Optimal Delaunay Triangulations are devel- Received 15 April 2010 oped. High-quality meshes are obtained by minimizing the interpolation error in the weighted L1 norm. Received in revised form 2 November 2010 Our schemes are divided into classes of local and global schemes. For local schemes, several old and new Accepted 10 November 2010 schemes, known as mesh smoothing, are derived from our approach. For global schemes, a graph Lapla- Available online 16 November 2010 cian is used in a modified Newton iteration to speed up the local approach. Our work provides a math- ematical foundation for a number of mesh smoothing schemes often used in practice, and leads to a new Keywords: global mesh optimization scheme. Numerical experiments indicate that our methods can produce well- Mesh smoothing shaped triangulations in a robust and efficient way. Mesh optimization Mesh generation Ó 2010 Elsevier B.V. All rights reserved. Delaunay triangulation Optimal Delaunay Triangulation 1. Introduction widely used harmonic energy in moving mesh methods [8–10], summation of weighted edge lengths [11,12], and the distortion We shall develop fast and efficient mesh optimization schemes energy used in the approach of Centroid Voronoi Tessellation based on Optimal Delaunay Triangulations (ODTs) [1–3].
    [Show full text]