# The Schwarzschild Solution

An “easy” solution to the Einstein equation (in free space) is the spherically symmetric Schwarzschild solution. The pdf bellow shows how one can use the diffgeom module in order to get the equations describing this solution.

One starts with the most general spherically symmetrical metric and by using Einstein equation $R_{\mu \nu}=0$ deduces the equations that must be fulfilled by the components of the metric (in the chosen basis).

schwarzschild.pdf

1. #### Aaron Meurer

/  23.07.2012

Nice notebook. Are you going to include it in one of your pull requests?

• #### Stefan Krastanov

/  23.07.2012

It should be in my latest open pull request. It is still a WIP, though, as it is not a self-contained PR.

2. #### Comer Duncan

/  31.07.2012

Can you share the ipython nb, assuming that is what I am seeing? Good to see examples, especially as WIP goes.

3. #### rico fischer

/  12.12.2012

In step 9 is missing the rest of the terminal input, so it is impossible to define diffgeom_simplify.

• #### Stefan Krastanov

/  12.12.2012

The notebook is actually shipped in the example folder of sympy. Or you can get it here http://nbviewer.ipython.org/urls/raw.github.com/sympy/sympy/master/examples/intermediate/schwarzschild.ipynb

The simplify filter itself is: diffgeom_simplify = lambda a: a.subs(zip(cs.coord_functions(), cs._dummies)).simplify().subs(zip(cs._dummies, cs.coord_functions()))

What it does is to substitute the fields with dummy symbols, simplify them and substitute the fields back.