Skip to content
/ pyFFTps Public

Fast and user-friendly power spectrum calculation Python package for N-body simulations.

License

Notifications You must be signed in to change notification settings

czymh/pyFFTps

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

14 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

pyFFTps

pyFFTps can be used to do mass assign for simulation particles and calculate the power spectrum. The basic code is from the Pylians3. We modified the code to support the interlacing technology and do the shotnoise substration from the density field. Therefore, the calculated power spectrum is accurate toward even $\bold{Nyquist}$ frequency! For more details, please read the Wang & Yu 2024.

Installation

You can just modify the python path in the build.sh and run

./build.sh

This package is dependent only on the pyFFTW which provide the thread-parallel FFT algorithm.

Usage

Please view the test directory.

Reference

Please cite the Wang & Yu 2024 if you find this code useful in your research.

Contributions

We welcome all contributions to pyFFTps via Pull Requests. Let us know about any issues or questions about pyFFTps.

About

Fast and user-friendly power spectrum calculation Python package for N-body simulations.

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published