Fish - FiberLib for VISH 0.3
Fish - The Fiber Bundle API for the Vish Visualization Shell
CurvedSpaceIntegrator Class Referenceabstract

Classes

struct  pt

Public Member Functions

void setMass (long double M) const
 Set the mass of the black hole.
void setCenter (const pt &Center) const
 Set the coordinate location of the black hole's center.
int integrate (double time, const pt &O, const pt &d, double dist=-1, int maxsteps=5000)
 Call the integrate() function to compute line segments along a geodesic path.
virtual int straight_ray (const pt &O, const pt &d)=0
 Virtual callback function if ray is straight, i.e.
virtual int segment_intersect (const pt &where, const pt &dir, double segment_length)=0
 Core function, which is called for each geodesic segment.
virtual int at_singularity ()=0
 Virtual function which is called when the central singularity is reached.

Member Function Documentation

◆ integrate()

int CurvedSpaceIntegrator::integrate ( double time,
const pt & O,
const pt & d,
double dist = -1,
int maxsteps = 5000 )

Call the integrate() function to compute line segments along a geodesic path.

Parameters
ORay origin
dRay direction
distMaximally allowed distance in coordinate space (not used currently)
maxstepsThe maximal number of step sizes, avoids infinite loops if finite.

◆ segment_intersect()

virtual int CurvedSpaceIntegrator::segment_intersect ( const pt & where,
const pt & dir,
double segment_length )
pure virtual

Core function, which is called for each geodesic segment.

If it returns non-zero, integration is terminated and the return value is forward to the integrate() function.

◆ setCenter()

void CurvedSpaceIntegrator::setCenter ( const pt & Center) const

Set the coordinate location of the black hole's center.

Note
Not tested!

◆ straight_ray()

virtual int CurvedSpaceIntegrator::straight_ray ( const pt & O,
const pt & d )
pure virtual

Virtual callback function if ray is straight, i.e.

in the flat space region far from the black hole and pointing to infinity.