Skip to article frontmatterSkip to article content
Site not loading correctly?

This may be due to an incorrect BASE_URL configuration. See the MyST Documentation for reference.

Software Model

CosmoSim consists of a backend written in C++ and multiple frontends written in Python.
These components are documented separately.

  1. The simulator library, simlib, implements the mathematical models and makes up the backend.

  2. GUI control flow

  3. The API.

  4. The command line interface

  5. CosmoSim.Roulettes makes symbolic calculation of roulette amplitudes.

The mathematical model is implemented in simlib, which is consequently the most important part to document properly.

Calculation of roulette amplitudes

For the SIS and SIE lenses, we have analytic formulas for the roulette amplitudes. The python scripts under the python directory compute these formulas by symbolic algebra, and produce the files sie05.txt and sis50.txt which are included in the distribution.

These formulas are imported by the C++ library (simlib) to compute amplitudes during simulation.

More information