a piece of code
Posted: April 08 2005
I need an efficient piece of code that would do the following:
given a correlation function or a power spectrum distribute N points in a box so that their distribution corresponds to a gaussian field which is a possible realisation of the given the power spectrum.
This problem must have been solved thousands of years ago for setting up the initial conditions for N-body simulations. So, could someone tell me where to look / what to download.
given a correlation function or a power spectrum distribute N points in a box so that their distribution corresponds to a gaussian field which is a possible realisation of the given the power spectrum.
This problem must have been solved thousands of years ago for setting up the initial conditions for N-body simulations. So, could someone tell me where to look / what to download.