Closed egourgoulhon closed 5 years ago
Branch: public/manifolds/periodic_coords
Commit: 1d658e0
Description changed:
---
+++
@@ -1,5 +1,5 @@
This ticket introduces periodic coordinates on manifolds for more flexibility.
-In particular, this fixes an issue with the azimuthal angle phi being limited limited to the interval (0,2*pi). For instance, the numerical computation of a geodesic that is winding around the center in Schwarzschild spacetime fails:
+In particular, this fixes an issue with the azimuthal angle phi being limited to the interval (0,2*pi). For instance, the numerical computation of a geodesic that is winding around the center in Schwarzschild spacetime fails:
sage: M = Manifold(4, 'M', structure='Lorentzian') @@ -28,7 +28,7 @@
to allow for the full integration of the geodesic.
-The periodicity of the coordinate is taken into account in the point comparison:
+The periodicity of the coordinate is taken into account in point comparisons:
sage: M((0, 8, pi/2, pi)) == M((0, 8, pi/2, 3*pi))
Branch pushed to git repo; I updated commit sha1. New commits:
1718b1d | Fix two pyflakes errors in src/sage/manifolds/differentiable |
Reviewer: Travis Scrimshaw
LGTM.
Thanks for the review!
Changed branch from public/manifolds/periodic_coords to 1718b1d
This ticket introduces periodic coordinates on manifolds for more flexibility. In particular, this fixes an issue with the azimuthal angle phi being limited to the interval (0,2*pi). For instance, the numerical computation of a geodesic that is winding around the center in Schwarzschild spacetime fails:
This is because phi reaches 2*pi at some point in the integration.
With the branch in this ticket, it suffices to declare phi to be a periodic coordinate, by adding the keyword
periodic
in the chart definitionto allow for the full integration of the geodesic.
The periodicity of the coordinate is taken into account in point comparisons:
CC: @tscrim
Component: geometry
Keywords: coordinate chart
Author: Eric Gourgoulhon
Branch/Commit:
1718b1d
Reviewer: Travis Scrimshaw
Issue created by migration from https://trac.sagemath.org/ticket/27548