plotting

package
v0.0.0-...-26f07cf Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Nov 4, 2025 License: MIT Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func PlotEffectivePotential

func PlotEffectivePotential(mass float64, L float64, outputPath string) error

PlotEffectivePotential creates a plot of the effective potential for photon orbits. V_eff(r) = (1 - 2M/r) * L²/r²

Parameters:

mass: Black hole mass
L: Angular momentum (impact parameter b)
outputPath: Where to save the PNG

func PlotGeodesicTrajectory

func PlotGeodesicTrajectory(mass float64, impactParameter float64, outputPath string) error

PlotGeodesicTrajectory plots a photon geodesic in the (x, y) plane. This shows the actual path of light around a black hole.

func PlotMetricFunction

func PlotMetricFunction(mass float64, outputPath string) error

PlotMetricFunction plots the metric function f(r) = 1 - 2M/r

func PlotMultipleGeodesics

func PlotMultipleGeodesics(mass float64, impactParams []float64, outputPath string) error

PlotMultipleGeodesics plots several photon paths with different impact parameters.

func PlotMultiplePotentials

func PlotMultiplePotentials(mass float64, impactParams []float64, outputPath string) error

PlotMultiplePotentials plots effective potentials for different impact parameters.

func PlotRadialGeodesic

func PlotRadialGeodesic(mass float64, impactParameter float64, outputPath string) error

PlotRadialGeodesic plots r vs proper time for a photon.

func PlotTimeDilation

func PlotTimeDilation(mass float64, outputPath string) error

PlotTimeDilation creates a plot of gravitational time dilation vs radius.

Types

This section is empty.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL