Skip to content

camarman/cosmic

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

77 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Cosmic

Cosmology evolution calculator with graphical user interface (similar to Ned Wright's cosmology calculator).

It's tested for GNU/Linux. However, it should also work in macOS. If you ever encounter with a problem, feel free to create an issue.

Installation

You can install Cosmic by either cloning the repository

git clone https://github.com/camarman/cosmic.git

or downloading as ZIP.

Requirements

Required packages are given in the requirements.txt, and they can be installed via

python3 -m pip install -r requirements.txt

Additionally, tkinter support is required to run Cosmic, and it can be installed by running

in Fedora

sudo dnf install python3-tkinter

in Ubuntu

sudo apt install python3-tk

User Guide

To start the program, run

python3 cosmic.py

in the terminal. The first page will look like this

main_page

where you can enter the cosmological parameters. After you click submit, the program will produce three plots:

Comoving Distance vs Redshift

com_vs_z

Angular Diameter Distance vs Redshift

ad_vs_z

Luminosity Distance vs Redshift

ld_vs_z

and finally, you'll see a page that prints the results

results