Astrophysics Source Code Library

Making codes discoverable since 1999

CGS: Collisionless Galactic Simulator

Discussion topics for individual codes
Ada Coda
ASCL Robot
Posts: 1333
Joined: Thu May 08, 2014 5:37 am

CGS: Collisionless Galactic Simulator

Postby Ada Coda » Wed Apr 10, 2019 9:00 am

CGS: Collisionless Galactic Simulator

Abstract: CGS (Collisionless Galactic Simulator) uses Fourier techniques to solve the Possion equation ∇2Φ = 4πGρ, relating the mean potential Φ of a system to the mass density ρ. The angular dependence of the force is treated exactly in terms of the single-particle Legendre polynomials, which preserves accuracy and avoids systematic errors. The density is assigned to a radial grid by means of a cloud-in-cell scheme with a linear kernel, i.e., a particle contributes to the density of the two closest cells with a weight depending linearly on the distance from the center of the cell considered. The same kernel is then used to assign the force from the grid to the particle. The time step is chosen adaptively in such a way that particles are not allowed to cross more than one radial cell during one step. CGS is based on van Albada's code (1982) and is distributed in the NEMO (ascl:1010.051) Stellar Dynamics Toolbox.

Credit: Trenti, M.; Bertin, G.; van Albada, T. S.

Site: ... trenti/CGS

Bibcode: 2019ascl.soft04003T

ID: ascl:1904.003
Last edited by Ada Coda on Wed Apr 10, 2019 9:03 am, edited 1 time in total.
Reason: Updated code entry.

Return to “Astrophysics Source Code Library”

Who is online

Users browsing this forum: No registered users and 2 guests