Skip to content
Snippets Groups Projects
Commit de9dd088 authored by Orestis Karapiperis's avatar Orestis Karapiperis
Browse files

Fixed mistake in free fall time calculation

parent 87f56a38
No related branches found
No related tags found
No related merge requests found
...@@ -12,9 +12,12 @@ filename = sys.argv[1] ...@@ -12,9 +12,12 @@ filename = sys.argv[1]
data = load(filename) data = load(filename)
center = 0.5 * data.metadata.boxsize center = 0.5 * data.metadata.boxsize
R0 = 0.015 * 3.086e18 * unyt.cm G = 6.6743015e-8 * unyt.cm**3 / unyt.g / unyt.s**2
R0 = 0.015 * unyt.pc
M = 1.0 * unyt.Msun
tff = np.sqrt(2.0 * R0**3 / (G * M))
tff = 3e4 * 3.156e7 * unyt.s
tsim = data.metadata.time tsim = data.metadata.time
tplot = tsim / tff tplot = tsim / tff
print("Showing results at %2f free fall times" % tplot) print("Showing results at %2f free fall times" % tplot)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment