Skip to content

High performance surface density fields using the DTFE method.

License

Notifications You must be signed in to change notification settings

steverangel/SDTFE

Repository files navigation

SDTFE

This code implements the method for computing a surface density field from particle data, as described in the paper: Parallel DTFE Surface Density Field Reconstruction, see author section for details. It was developed for computing gravitational lensing effects using the flat-sky approximation from N-body cosmological simulations.

Installation

These instructions will get a copy of the project up and running on your local machine for development and testing purposes. Tested on macOSX 10.13.3 High Sierra.

Download SDTFE

git clone git@github.com:steverangel/SDTFE.git

Building Using C-Make

CMake will automatically download the Qhull and libtiff dependencies.

Prerequisites:

  • CMake v3.11 or later
  • compiler supporting C++14 (for the python extension)

Python library

The python library can be installed with pip from within the SDTFE folder. The setup.py script will internally call CMake to compile the DTFE library

cd SDTFE
pip install .

Executables

To build the executables, create a build directory and run cmake

cd SDTFE
mkdir build && cd build
cmake ..
make -j4

Building Using Make

Prerequisites:

  • This software uses Qhull for the Delaunay triangulation library.
  • Optional, but recomended, is libtiff for visualization of the resulting field.

Download and install Qhull.

git clone git@github.com:qhull/qhull.git
cd qhull
make

Download and install libtiff.

curl -O http://download.osgeo.org/libtiff/tiff-4.0.9.tar.gz
tar xvfz tiff-4.0.9.tar.gz
cd tiff-4.0.9/
mkdir install
./configure --prefix=/your/local/install
make
make install

Edit the SDTFE Makefile to link Qhull and libtiff.

cd SDTFE
vim Makefile
...
QHULLLIBDIR = ../qhull/lib
QHULLINCDIR = -I../qhull/src/libqhull

TIFFLIBDIR = ../tiff-4.0.9/install/lib
TIFFINCDIR = -I../tiff-4.0.9/libtiff
...

Compile SDTFE using make.

make

Authors

  • Esteban Rangel - Parallel DTFE Surface Density Field Reconstruction - pdf

License

This project is licensed under the GNU License - see the LICENSE file for details.

Acknowledgments

  • The Delaunay Tessellation Field Estimator - pdf
  • Fast Ray–Tetrahedron Intersection using Plücker Coordinates - pdf

About

High performance surface density fields using the DTFE method.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published