1 Data Structures for Scientific Computing Orion Sky Lawlor charm.cs.uiuc.edu 2003/12/17.

Slides:



Advertisements
Similar presentations
CHAPTER 1: COMPUTATIONAL MODELLING
Advertisements

Fast Adaptive Hybrid Mesh Generation Based on Quad-tree Decomposition
Continuum Simulation Monday, 9/30/2002. Class Progress Visualization: abstract concept (stress,2D, 3D), mechanical field Stochastic simulations: random.
1 Lecture 7 - Meshing Applied Computational Fluid Dynamics Instructor: André Bakker © André Bakker ( ) © Fluent Inc. (2002)
Parallelizing stencil computations Based on slides from David Culler, Jim Demmel, Bob Lucas, Horst Simon, Kathy Yelick, et al., UCB CS267.
Efficient Storage and Processing of Adaptive Triangular Grids using Sierpinski Curves Csaba Attila Vigh Department of Informatics, TU München JASS 2006,
MATHIEU GAUTHIER PIERRE POULIN LIGUM, DEPT. I.R.O. UNIVERSITÉ DE MONTRÉAL GRAPHICS INTERFACE 2009 Preserving Sharp Edges in Geometry Images.
Coupling Continuum Model and Smoothed Particle Hydrodynamics Methods for Reactive Transport Yilin Fang, Timothy D Scheibe and Alexandre M Tartakovsky Pacific.
1 Computer Graphics Chapter 7 3D Object Modeling.
CS447/ Realistic Rendering -- Solids Modeling -- Introduction to 2D and 3D Computer Graphics.
A Bezier Based Approach to Unstructured Moving Meshes ALADDIN and Sangria Gary Miller David Cardoze Todd Phillips Noel Walkington Mark Olah Miklos Bergou.
A Bezier Based Approach to Unstructured Moving Meshes ALADDIN and Sangria Gary Miller David Cardoze Todd Phillips Noel Walkington Mark Olah Miklos Bergou.
1cs542g-term Notes. 2 Meshing goals  Robust: doesn’t fail on reasonable geometry  Efficient: as few triangles as possible Easy to refine later.
1 Internal Seminar, November 14 th Effects of non conformal mesh on LES S. Rolfo The University of Manchester, M60 1QD, UK School of Mechanical,
GATE D Object Representations (GATE-540) Dr.Çağatay ÜNDEĞER Instructor Middle East Technical University, GameTechnologies & General Manager SimBT.
CSE351/ IT351 Modeling And Simulation Choosing a Mesh Model Dr. Jim Holten.
CSE351/ IT351 Modeling and Simulation
I/O Optimization for ENZO Cosmology Simulation Using MPI-IO Jianwei Li12/06/2001.
CS267 L12 Sources of Parallelism(3).1 Demmel Sp 1999 CS 267 Applications of Parallel Computers Lecture 12: Sources of Parallelism and Locality (Part 3)
Efficient Parallelization for AMR MHD Multiphysics Calculations Implementation in AstroBEAR.
Haptic Cloth Rendering 6th Dutch-Belgian Haptics Meeting TUDelft, 21 st June 2006 Lode Vanacken Expertise centre for Digital Media (EDM) Hasselt University.
Scientific Visualization Data and Geometry Processing for Scientific Visualization CS 5630 / 6630 August 28, 2007.
CS267 L24 Solving PDEs.1 Demmel Sp 1999 CS 267 Applications of Parallel Computers Lecture 24: Solving Linear Systems arising from PDEs - I James Demmel.
Quadtrees and Mesh Generation Student Lecture in course MATH/CSC 870 Philipp Richter Thursday, April 19 th, 2007.
Module on Computational Astrophysics Jim Stone Department of Astrophysical Sciences 125 Peyton Hall : ph :
Scientific Data Representation and Mapping
© 2011 Autodesk Freely licensed for use by educational institutions. Reuse and changes require a note indicating that content has been modified from the.
1 Finite-Volume Formulation. 2 Review of the Integral Equation The integral equation for the conservation statement is: Equation applies for a control.
Parallel Adaptive Mesh Refinement Combined With Multigrid for a Poisson Equation CRTI RD Project Review Meeting Canadian Meteorological Centre August.
ParFUM Parallel Mesh Adaptivity Nilesh Choudhury, Terry Wilmarth Parallel Programming Lab Computer Science Department University of Illinois, Urbana Champaign.
Grid Generation.
Graphics Graphics Korea University cgvr.korea.ac.kr Creating Virtual World I 김 창 헌 Department of Computer Science Korea University
Parallelization Of The Spacetime Discontinuous Galerkin Method Using The Charm++ FEM Framework (ParFUM) Mark Hills, Hari Govind, Sayantan Chakravorty,
Scalable Algorithms for Structured Adaptive Mesh Refinement Akhil Langer, Jonathan Lifflander, Phil Miller, Laxmikant Kale Parallel Programming Laboratory.
Computer Aided Thermal Fluid Analysis Lecture 3 Dr. Ming-Jyh Chern ME NTUST.
Kansas State University Department of Computing and Information Sciences CIS 736: Computer Graphics Wednesday, February 23, 2000 William H. Hsu Department.
High Performance Computing 1 Load-Balancing. High Performance Computing 1 Load-Balancing What is load-balancing? –Dividing up the total work between processes.
Mesh Generation 58:110 Computer-Aided Engineering Reference: Lecture Notes on Delaunay Mesh Generation, J. Shewchuk (1999)
Computation on meshes, sparse matrices, and graphs Some slides are from David Culler, Jim Demmel, Bob Lucas, Horst Simon, Kathy Yelick, et al., UCB CS267.
Discontinuous Galerkin Methods and Strand Mesh Generation
Adaptive Mesh Modification in Parallel Framework Application of parFUM Sandhya Mangala (MIE) Prof. Philippe H. Geubelle (AE) University of Illinois, Urbana-Champaign.
Application Paradigms: Unstructured Grids CS433 Spring 2001 Laxmikant Kale.
Polynomial Preserving Gradient Recovery in Finite Element Methods Zhimin Zhang Department of Mathematics Wayne State University Detroit, MI 48202
Parametric Surfaces Define points on the surface in terms of two parameters Simplest case: bilinear interpolation s t s x(s,t)x(s,t) P 0,0 P 1,0 P 1,1.
Solid Modeling. Solid Modeling - Polyhedron A polyhedron is a connected mesh of simple planar polygons that encloses a finite amount of space. A polyhedron.
1996 Eurographics Workshop Mathieu Desbrun, Marie-Paule Gascuel
Ale with Mixed Elements 10 – 14 September 2007 Ale with Mixed Elements Ale with Mixed Elements C. Aymard, J. Flament, J.P. Perlat.
1 1  Capabilities: Building blocks for block-structured AMR codes for solving time-dependent PDE’s Functionality for [1…6]D, mixed-dimension building.
1 Multi-resolution Tetrahedral Meshes Leila De Floriani Department of Computer and Information Sciences University of Genova, Genova (Italy)
Data Structures and Algorithms in Parallel Computing Lecture 7.
Partial Derivatives Example: Find If solution: Partial Derivatives Example: Find If solution: gradient grad(u) = gradient.
1 Data Structures for Scientific Computing Orion Sky Lawlor /04/14.
1 Rocket Science using Charm++ at CSAR Orion Sky Lawlor 2003/10/21.
Scientific Computing Lab Outlook / State of Research Dr. Miriam Mehl Institut für Informatik Scientific Computing in Computer Science.
1 Overview (Part 1) Background notions A reference framework for multiresolution meshes Classification of multiresolution meshes An introduction to LOD.
Fifth International Conference on Curves and Surfaces Incremental Selective Refinement in Hierarchical Tetrahedral Meshes Leila De Floriani University.
CSE 872 Dr. Charles B. Owen Advanced Computer Graphics1 Water Computational Fluid Dynamics Volumes Lagrangian vs. Eulerian modelling Navier-Stokes equations.
An Introduction to Computational Fluids Dynamics Prapared by: Chudasama Gulambhai H ( ) Azhar Damani ( ) Dave Aman ( )
3D Object Representations 2009, Fall. Introduction What is CG?  Imaging : Representing 2D images  Modeling : Representing 3D objects  Rendering : Constructing.
Smoothed Particle Hydrodynamics For Deformable Vessel Dynamics Progress Report Van Jones 2008/01/30.
1 ChaNGa: The Charm N-Body GrAvity Solver Filippo Gioachin¹ Pritish Jetley¹ Celso Mendes¹ Laxmikant Kale¹ Thomas Quinn² ¹ University of Illinois at Urbana-Champaign.
2D AFEAPI Overview Goals, Design Space Filling Curves Code Structure
Lecture 7 - Meshing Applied Computational Fluid Dynamics
Data Structures for Efficient and Integrated Simulation of Multi-Physics Processes in Complex Geometries A.Smirnov MulPhys LLC github/mulphys
Paul P.H. Wilson UW-Madison Fusion Technology Institute
3D Object Representations
Materials Science & Engineering University of Michigan
Component Frameworks:
Visualization CSE 694L Roger Crawfis The Ohio State University.
Presentation transcript:

1 Data Structures for Scientific Computing Orion Sky Lawlor charm.cs.uiuc.edu 2003/12/17

2 Overview Introduction and Motivation Structured Grids Adaptive structured grids Unstructured Grids Adaptive unstructured grids Particles and Spatial Search Regular grids Trees

3 Introduction / Motivation There are only a few ways to represent the problem domain: Structured Grids Unstructured Grids Particles This set covers all our grants! Knowing the basic terms helps you talk to application folks, and understand their stuff

4 Grids in General

5 So you’re trying to represent some physical situation, like heat flow You decide to divide up space into a bunch of little pieces: Grids: Introduction Element, Cell, Volume Node, Vertex, Point

6 Element Centered Data Fluid Dynamics, most PDEs Grids: Location of Data Node Centered Data Structural dynamics/FEM “Shape function” interpolates between nodes Data values constant (or simple) in a cell

7 Eulerian: non-moving grid E.g., pressure waves move through the grid in CFD Grids: Motion of Grid and Data Lagrangian: moving grid E.g., grid deformation follows the structure deformation in FEM

8 Structured Grids

9 AKA “Regular Grid”, since grid cells lie in regular rows and columns Cells are stored in a 3D array Cells can lie along axes (“rectilinear grid”); or curve through space Structured Grids: Introduction X Y

10 “Stencil” of source cells to compute a destination cell Common in fluid dynamics Also found in PDE solvers Structured Grids: Terminology i j i j x Read-only “Ghost” or “Dummy” cells around boundary

11 Fluid Dynamics CSAR’s Rocflo (Jiri Blazek) Jacobi and other PDE solvers “Finite Difference” formulation Level set methods CPSD (Danzig) Image processing Just a 2D pixel array! Charm++ Multiblock Framework Structured Grids: Applications

12 Adaptive Structured Grids

13 “Adaptive Mesh Refinement”/AMR Cells are stored in small 3D arrays, linked together with pointers For regular refinement, use quadtree (2D) or octree (3D); can be irregular “block structured AMR” Adaptive Structured Grids: Intro from LLNL SC98 SAMRAI flier

14 “Refinement” and “Coarsening” criteria control evolution of mesh Basically simulation error estimates “Hanging Node Constraint” Neighbors must have similar (±1) refinement level Adaptive Structured Grids: Terms bad!

15 Adaptive physics solvers CPSD Dendritic Growth (Danzig) Octree-based 3D fluids code LLNL SAMRAI C++ Framework NASA GSFC PARAMESH AMRITA (James Quirk) Charm++ AMR Framework (Narula, Jyothi) Adaptive Structured Grids: Apps

16 Unstructured Grids

17 Unstructured Grids: Introduction AKA “Mesh” Cells are stored in 1D array Vertices (“nodes”) of cells (“elements”) listed explicitly Mesh consists of triangles and/or quadrilaterals (2D); tetrahedra, cubes/hexahedra, prisms, pyramids (3D)

18 “Ghosts”, like structured grids “Shared nodes” along partition boundaries--see FEM manual “Conformality” Nodes never land in middle of element Unstructured Grids: Terms bad!

19 Structural Mechanics CSAR’s Fractography (Geubelle) Fluid Dynamics CSAR’s Rocflu (Haselbacher) Even Adaptive Meshes! CPSD Dendritic Growth (Danzig) Charm++ FEM Framework (Lawlor) Unstructured Grids: Applications

20 Adaptive Unstructured Grids

21 Adaptive Unstructured Grids: Intro AKA “Mesh Refinement”, shades into from-scratch “Mesh Generation” Cells still stored in 1D arrays, but the cells can now change Must respect conformality Must ensure element “quality” Must work in parallel

22 “Delaunay” mesh and “flip” “Edge bisection”: cut edge in middle Adaptive Meshes: Terminology

23 Every unstructured mesh program wants to be adaptive CSAR, CPSD, etc... Charm++ Triangle Mesh Refinement (Wilmarth) Charm++ PMAF3D (Wilmarth) Charm++ Tet Data Transfer Library (Lawlor) Adaptive Meshes: Applications

24 Particle Methods and Spatial Search

25 Particles and Spatial Search To work on a particle, you need nearby particles E.g., all particles within cutoff r Used by NAMD or, all k nearest particles Used by SPH methods Search for neighboring particles is spatial, so need a spatial search structure Can use: structured grid, adaptive search tree, unstructured grid,...

26... using Structured Grids E.g., NAMD molecular dynamics Particles are Atoms Search structure is based on “Patches” of space in regular, rectilinear grid E.g., Charm++ Collision Library Search structure is based on regular rectilinear voxel grid atoms over here......never talk to atoms over here

27... using Search Trees E.g., Cosmology simulations Particles are stars, galaxies Search structure is a spatial octree SPH: “Smoothed particle hydrodynamics” Barnes-Hut gravity “Tree walk”

28 Conclusions

29 Conclusions There are only a few ways to represent the problem domain: Structured Grids Unstructured Grids Particles There are a lot of specialized terms, but very few concepts