File: getting_started.rst

package info (click to toggle)
einsteinpy 0.4.0-4
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 40,712 kB
  • sloc: python: 8,196; makefile: 146
file content (113 lines) | stat: -rw-r--r-- 3,237 bytes parent folder | download | duplicates (3)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
Getting started
===============

Overview
--------

EinsteinPy is a easy-to-use python library which provides a
user-friendly interface for supporting numerical relativity and
relativistic astrophysics research. The library is an attempt to provide
programming and numerical environment for a lot of numerical relativity
problems like geodesics plotter, gravitational lensing and ray tracing,
solving and simulating relativistic hydrodynamical equations, plotting
of black hole event horizons, solving Einstein’s field equations and
simulating various dynamical systems like binary merger etc.


Who can use?
------------

Most of the numerical relativity platforms currently available in the
gravitational physics research community demands a heavy programming
experience in languages like C, C++ or their wrappers on some other non
popular platforms. Many of the people working in the field of
gravitational physics have theoretical background and does not have any
or have little programming experience and they find using these
libraries mind-boggling. EinsteinPy is motivated by this problem and
provide a high level of abstraction that shed away from user all the
programming and algorithmic view of the implemented numerical methods
and enables anyone to simulate complicated system like binary merger
with just 20-25 lines of python code.

Even people who does not know any python programming can also follow up
with the help of tutorials and documentation given for the library. We
aim to provide all steps, from setting up your library environment to
running your first geodesic plotter with example jupyter notebooks.

So now you are motivated enough so let’s first start with installing the
library.


Installation
------------

It’s as easy as running one command!
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

Stable Versions:
~~~~~~~~~~~~~~~~

For installation of the latest ``stable`` version of EinsteinPy:

- Using pip:

  .. code-block:: sh

       $ pip install einsteinpy

- Using conda:

  .. code-block:: sh

       $ conda install -c conda-forge einsteinpy

Latest Versions
~~~~~~~~~~~~~~~

For installing the development version, you can do two things:

- Installation from clone:

  .. code-block:: sh

       $ git clone https://github.com/einsteinpy/einsteinpy.git
       $ cd einsteinpy/
       $ pip install .

- Install using pip:

  .. code-block:: sh

       $ pip install git+https://github.com/einsteinpy/einsteinpy.git

Development Version
~~~~~~~~~~~~~~~~~~~

  .. code-block:: sh

       $ git clone your_account/einsteinpy.git
       $ pip install --editable /path/to/einsteinpy[dev]

Please open an issue `here`_ if you feel any
difficulty in installation!

.. _`here` : https://github.com/einsteinpy/einsteinpy/issues


Running your first code using the library
-----------------------------------------

Various examples can be found in the `examples`_ folder.

.. _`examples` : https://einsteinpy-project.readthedocs.io/en/latest/jupyter.html

Contribute
----------

EinsteinPy is an open source library which is under heavy development.
To contribute kindly do visit :

https://github.com/einsteinpy/einsteinpy/

and also check out current posted issues and help us expand this
awesome library.