An exact general remeshing scheme applied to physically conservative voxelization
arXiv:1412.4941 · doi:10.1016/j.jcp.2015.05.022
Abstract
We present an exact general remeshing scheme to compute analytic integrals of polynomial functions over the intersections between convex polyhedral cells of old and new meshes. In physics applications this allows one to ensure global mass, momentum, and energy conservation while applying higher-order polynomial interpolation. We elaborate on applications of our algorithm arising in the analysis of cosmological N-body data, computer graphics, and continuum mechanics problems. We focus on the particular case of remeshing tetrahedral cells onto a Cartesian grid such that the volume integral of the polynomial density function given on the input mesh is guaranteed to equal the corresponding integral over the output mesh. We refer to this as "physically conservative voxelization". At the core of our method is an algorithm for intersecting two convex polyhedra by successively clipping one against the faces of the other. This algorithm is an implementation of the ideas presented abstractly by Sugihara (1994), who suggests using the planar graph representations of convex polyhedra to ensure topological consistency of the output. This makes our implementation robust to geometric degeneracy in the input. We employ a simplicial decomposition to calculate moment integrals up to quadratic order over the resulting intersection domain. We also address practical issues arising in a software implementation, including numerical stability in geometric calculations, management of cancellation errors, and extension to two dimensions. In a comparison to recent work, we show substantial performance gains. We provide a C implementation intended to be a fast, accurate, and robust tool for geometric calculations on polyhedral mesh elements.
Code implementation available at https://github.com/devonmpowell/r3d
References in corpus (16)
- The cosmological simulation code GADGET-2
- E pur si muove: Galiliean-invariant cosmological hydrodynamical simulations on a moving mesh
- Cosmological Hydrodynamics with Adaptive Mesh Refinement: a new high resolution code called RAMSES
- Enzo: An Adaptive Mesh Refinement Code for Astrophysics
- Adaptive Refinement Tree - a new high-resolution N-body code for cosmological simulations
- Dark matter substructure and gamma-ray annihilation in the Milky Way halo
- ZOBOV: a parameter-free void-finding algorithm
- Nyx: A Massively Parallel AMR Code for Computational Cosmology
- Tracing the Dark Matter Sheet in Phase Space
- The Properties of Cosmic Velocity Fields
- A new approach to simulating collisionless dark matter fluids
- An adaptively refined phase-space element method for cosmological simulations and collisionless dynamics
- Particle hydrodynamics with tessellation techniques
- 2HOT: An Improved Parallel Hashed Oct-Tree N-Body Algorithm for Cosmological Simulation
- A Novel Approach to Visualizing Dark Matter Simulations
- Noiseless Gravitational Lensing Simulations
Cited by in corpus (13)
- Large-scale dark matter simulations
- An adaptively refined phase-space element method for cosmological simulations and collisionless dynamics
- Reducing Noise in Cosmological N-body Simulations with Neutrinos
- Voids in cosmological simulations over cosmic time
- Large-Scale Velocity Dispersion and the Cosmic Web
- Geometrical discretisations for unfitted finite elements on explicit boundary representations
- Constrained cosmological simulations of the Local Group using Bayesian hierarchical field-level inference
- Is Flat Fielding Safe for Precision CCD Astronomy?
- The features of the Cosmic Web unveiled by the flip-flop field
- Massively Parallel Computation of Accurate Densities for N-body Dark Matter Simulations using the Phase-Space-Element Method
- Simplex-in-Cell Technique for Collisionless Plasma Simulations
- The mass distribution in and around the Local Group
- An Efficient Second-Order Adaptive Procedure for Inserting CAD Geometries into Hexahedral Meshes using Volume Fractions