kerr-newman module¶
This module contains the basic class for calculating time-like geodesics in Kerr-Newman Space-Time:
-
class
einsteinpy.metric.kerrnewman.
KerrNewman
(bl_coords, q, M, Q, time)[source]¶ Bases:
object
Class for defining Kerr-Newman Goemetry Methods
-
classmethod
from_coords
(coords, M, q, Q, time=<Quantity 0. s>, a=<Quantity 0. m>)[source]¶ Constructor.
- Parameters
coords (BoyerLindquistDifferential) – Initial positions and velocities of particle in BL Coordinates, and spin factor of massive body.
q (Quantity) – Charge per unit mass of test particle
M (Quantity) – Mass of the massive body
Q (Quantity) – Charge on the massive body
a (Quantity) – Spin factor of the massive body(Angular Momentum per unit mass per speed of light)
time (Quantity) – Time of start, defaults to 0 seconds.
-
calculate_trajectory
(start_lambda=0.0, end_lambda=10.0, stop_on_singularity=True, OdeMethodKwargs={'stepsize': 0.001}, return_cartesian=False)[source]¶ Calculate trajectory in manifold according to geodesic equation
- Parameters
start_lambda (float) – Starting lambda(proper time), defaults to 0.0, (lambda ~= t)
end_lamdba (float) – Lambda(proper time) where iteartions will stop, defaults to 100000
stop_on_singularity (bool) – Whether to stop further computation on reaching singularity, defaults to True
OdeMethodKwargs (dict) – Kwargs to be supplied to the ODESolver, defaults to {‘stepsize’: 1e-3} Dictionary with key ‘stepsize’ along with an float value is expected.
return_cartesian (bool) – True if coordinates and velocities are required in cartesian coordinates(SI units), defaults to False
- Returns
~numpy.ndarray – N-element array containing proper time.
~numpy.ndarray – (n,8) shape array of [t, x1, x2, x3, velocity_of_time, v1, v2, v3] for each proper time(lambda).
-
calculate_trajectory_iterator
(start_lambda=0.0, stop_on_singularity=True, OdeMethodKwargs={'stepsize': 0.001}, return_cartesian=False)[source]¶ Calculate trajectory in manifold according to geodesic equation. Yields an iterator.
- Parameters
start_lambda (float) – Starting lambda, defaults to 0.0, (lambda ~= t)
stop_on_singularity (bool) – Whether to stop further computation on reaching singularity, defaults to True
OdeMethodKwargs (dict) – Kwargs to be supplied to the ODESolver, defaults to {‘stepsize’: 1e-3} Dictionary with key ‘stepsize’ along with an float value is expected.
return_cartesian (bool) – True if coordinates and velocities are required in cartesian coordinates(SI units), defaults to Falsed
- Yields
float – proper time
~numpy.ndarray – array of [t, x1, x2, x3, velocity_of_time, v1, v2, v3] for each proper time(lambda).
-
classmethod