CosmoSim is a simulator for gravitational lensing.
The CosmoSim library provides a range of scripts.
CosmoSim.datagen is the main CLI tool
CosmoSim.dataset
datagen.pyCosmoSim.roulettegen Roulette Resimulation
The following names should be used to specify the source. Other names are defined, but will be deprecated.
"Spherical" : Gaussian light distribution"Ellipsoid" : Ellipsoid source with Gaussian distribution"SersicSphere" : Spherical Source with Sersic profile"SersicEllipsoid" : Ellipsoid source with Sersic profile"Triangle" - a coloured triangle, for better visualisation of
distortion effects"Image (Einstein)" - a portrait of Einstein, for fun| Display name | Lens | Simulation | Sampled | Alias |
| :- | :- | :- | :- | Alias |
"Point Mass (exact)" |
Point Mass | Exact (PM) | No | "p" |
"Point Mass (roulettes)" |
Point Mass | Roulette (PM)1 | No | "r" |
"Sampled Roulette SIS" |
SIS | Roulette | Yes | "ss" |
"Sampled Roulette SIE" |
SIE | Roulette | Yes | "srousie" |
"Sampled Raytrace SIS" |
SIS | Raytrace | Yes | "pss" |
"Sampled Raytrace SIE" |
SIE | Raytrace | Yes | "sraysie" |
"Roulette SIS" |
SIS | Roulette | No | "fs" |
"Roulette SIE" |
SIE | Roulette | No | "rousie" |
"Raytrace SIS" |
SIS | Raytrace | No | "rs" |
"Raytrace SIE" |
SIE | Raytrace | No | "raysie" |
The display names are used in the GUI and should be used whereever spaces do not confuse the parser. The alias can be used in data files where space may cause problems.
Roulette simulation for point mass lenses is implemented as a special case and does not use the generic roulette simulator. ↩