- author:楊長茂、蘇唯善、高唯恩
- report url: Canvas link
- date: 2023/1/3
The exact form of the equation motion near a spheical symmetry black hole with no charge and angular momentum is derived in our Project paper
~/GRorbit/Simulation_of_the_Orbit_near_Compact_star.pdf
The classical dynamics (C.D.) and general relativity (G.R.) provided that the effective force are
pluggin the intial value $r_0$ and $v_0$, we have the ODE
npyMain.py
is the python code importing package vpython
and numpy
vpyMain.py
is the python code importing only package vpython
If you don’t already have packages vpython
, you need to go to Windows PowerShell or Mac Terminal. Then type
pip install vpython
or
pip3 install vpython
You may
cd ~/GRorbit
then python3 npyMain.py
or python3 vpyMain.py
python: https://www.python.org vpython: https://www.glowscript.org/docs/VPythonDocs/index.html
We have many buttons to control the scene
The sliders are use to control the intial value, so it would stop updating to reset the intial radius, velocity or mass. ###
The scene coordinate are also given in vpython API