ASCL.net

Astrophysics Source Code Library

Making codes discoverable since 1999

Searching for codes credited to 'Feng, Yu'

Tip: Author search checks name variants (e.g., Smith, John, Smith J). Last names are still best when results are broad.

Found 5 codes.

[ascl:2511.017] kdcount: KDTree for low dimensional spatial indexing
kdcount provides a simple API for brute-force spatial pair-counting in low-dimensional data sets using a KD-tree to prune the search space. For a given distance threshold D, kdcount invokes a user-supplied callback for each pair of points whose separation falls within D, enabling custom counting or correlation statistics. The Python interface additionally supports clustering via a Friend-of-Friend algorithm and can exploit shared-memory parallelism with installation of an optional package. Periodic boundary conditions are supported, making kdcount suitable for analyses in periodic domains. While the implementation admits internal “smarter” algorithms, only the standard brute-force mode is tested and documented; the design emphasizes simplicity and flexibility over asymptotic optimality.
[ascl:2412.005] pmwd: Particle Mesh With Derivatives
pmwd simulates and models cosmological evolutionary history. The code includes reverse time integration in addition to traditional forward simulation, enabling symmetrical dynamics analysis using the adjoint method. The pmwd particle-mesh model supports fully-differentiable analytic, semi-analytics, and deep learning components in parallel. Based on JAX (ascl:2111.002), pmwd is optimized for PU computation.
[ascl:2407.011] bigfile: A reproducible massively parallel IO library for hierarchical data
bigfile stores data from cosmology simulations from HPC systems and beyond. It provides a hierarchical structure of data columns via File, Dataset and Column. A Column stores a two dimensional table. Numerical typed columns are supported; attributes can be attached to a Column and both numerical attributes and string attributes are supported. Type casting is performed on-the-fly if read/write operations request a different data type than the file has stored.
[ascl:2012.010] MADLens: Differentiable lensing simulator
MADLens produces non-Gaussian cosmic shear maps at arbitrary source redshifts. A MADLens simulation with only 256^3 particles produces convergence maps whose power agree with theoretical lensing power spectra up to scales of L=10000. The code is based on a highly parallelizable particle-mesh algorithm and employs a sub-evolution scheme in the lensing projection and a machine-learning inspired sharpening step to achieve these high accuracies.
[ascl:1108.005] Gaepsi: Gadget Visualization Toolkit
Gaepsi is a PYTHON extension for visualizing cosmology simulations produced by Gadget. Visualization is the most important facet of Gaepsi, but it also allows data analysis on GADGET simulations with its growing number of physics related subroutines and constants. Unlike mesh based scheme, SPH simulations are directly visible in the sense that a splatting process is required to produce raster images from the simulations. Gaepsi produces images of 2-dimensional line-of-sight projections of the simulation. Scalar fields and vector fields are both supported.

Besides the traditional way of slicing a simulation, Gaepsi also has built-in support of 'Survey-like' domain transformation proposed by Carlson & White. An improved implementation is used in Gaepsi. Gaepsi both implements an interactive shell for plotting and exposes its API for batch processing. When complied with OpenMP, Gaepsi automatically takes the advantage of the multi-core computers. In interactive mode, Gaepsi is capable of producing images of size up to 32000 x 32000 pixels. The user can zoom, pan and rotate the field with a command in on the finger tip. The interactive mode takes full advantages of matplotlib's rich annotating, labeling and image composition facilities. There are also built-in commands to add objects that are commonly used in cosmology simulations to the figures.