Code Monkey home page Code Monkey logo

genpk's Introduction

==GenPK==

This is GenPK, a program to calculate the 3D matter power spectrum. 

To build, first make sure FFTW3 is installed on your system
and that the headers are in your PATH.

To build, type:

make

For the test suite (requires Boost::Test > 1.34), do: 

make test

To run, do:

 ./gen-pk -i filename -o outputdir

filename can be any Gadget snapshot, with or without the .o, in format I or II.

For the doxygen-generated documentation, do:

make doc

To delete compiler output:

make clean

Further documentation may be found in the doxygen generated files in doc/html/index.html
(type "make doc" to make this file), by typing ./gen-pk --help or in gen-pk.cpp

Powerspectrum output is in Fourier units; to convert to, eg, Mpc/h, you should multiply 
k by 2 \pi / Boxsize and P(k) by (Boxsize/2\pi)^3, 
where Boxsize is the size of the box in Mpc/h.

In addition, CAMB uses a different Fourier convention to FFTW (which GenPK is based on), 
so for comparison to CAMB you need to also multiply P(k) by (2\pi) ^3. 
The total conversion factors are then

k *= 2\pi / Boxsize
P(k) *= Boxsize ^3

If you use this software in a paper, you can cite it via the ASCL:
http://ascl.net/1706.006

genpk's People

Contributors

andreufont avatar sbird avatar slosar avatar

Watchers

 avatar  avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.