27 #ifndef __GyotoKerrKS_H_
28 #define __GyotoKerrKS_H_
31 namespace Metric {
class KerrKS; }
36 #ifdef GYOTO_USE_XERCES
81 void
spin(const double spin);
87 void horizonSecurity(double drhor);
88 double horizonSecurity() const;
89 void genericIntegrator(bool);
90 bool genericIntegrator() const ;
92 double
gmunu(const double * x,
93 int alpha, int beta) const ;
95 void
gmunu(double g[4][4], const double * pos) const;
100 void
gmunu_up(double gup[4][4], const double * pos) const;
107 void
jacobian(double dst[4][4][4], const double * x) const ;
110 int christoffel(double dst[4][4][4], const double * x) const ;
111 int christoffel(double dst[4][4][4], const double * pos, double gup[4][4], double jac[4][4][4]) const ;
113 void
nullifyCoord(double coord[8], double &tdot2) const;
116 double dir=1.) const ;
118 virtual void
setParameter(std::string, std::string, std::string);
119 #ifdef GYOTO_USE_XERCES
125 void
MakeCst(const double* coord, double* cst) const;
136 int
myrk4(Worldline * line, const double coord[8], double h, double res[8]) const;
145 int
myrk4(const double * coord, const double* cst , double h, double* res) const;
152 int
myrk4_adaptive(Gyoto::Worldline* line, const double * coord, double lastnorm, double normref, double* coord1, double h0, double& h1, double h1max) const;
157 int diff(const double* coord, const double* cst, double* res) const;
bool generic_integrator_
which integrator to use
Definition: GyotoKerrKS.h:69
double rsink_
numerical horizon
Definition: GyotoKerrKS.h:67
Pointers performing reference counting.
Definition: GyotoSmartPointer.h:51
Base class for work in progress.
Definition: GyotoWIP.h:46
Metric around a Kerr black-hole in Kerr-Schild coordinates Warning: this metric is seldom used and ma...
Definition: GyotoKerrKS.h:55
void gmunu_up(double gup[4][4], const double *pos) const
The inverse matrix of gmunu.
Base class for metrics.
Definition: GyotoMetric.h:147
int myrk4(Worldline *line, const double coord[8], double h, double res[8]) const
RK4 integrator.
void setParticleProperties(Worldline *line, const double *coord) const
Set Metric-specific constants of motion. Used e.g. in KerrBL.
void jacobian(double dst[4][4][4], const double *x) const
The derivatives of gmunu.
virtual int isStopCondition(double const *const coord) const
Check whether integration should stop.
double drhor_
horizon security
Definition: GyotoKerrKS.h:68
virtual void fillElement(FactoryMessenger *fmp)
called from Factory
virtual double christoffel(const double coord[8], const int alpha, const int mu, const int nu) const
Chistoffel symbol.
double spin_
Angular momentum parameter.
Definition: GyotoKerrKS.h:65
double gmunu(const double *x, int alpha, int beta) const
Metric coefficients.
Timelike or null geodesics.
Base class for metric description.
Namespace for the Gyoto library.
Definition: GyotoAstrobj.h:42
int myrk4_adaptive(Gyoto::Worldline *line, const double *coord, double lastnorm, double normref, double *coord1, double h0, double &h1, double h1max) const
?
double spin() const
Returns spin.
virtual void setParameter(std::string, std::string, std::string)
Set parameter by name.
void MakeCst(const double *coord, double *cst) const
In Kerr-Schild coordinates [T,x,y,z,Tdot,xdot,ydot,zdot], computes the four constants of the movement...
virtual KerrKS * clone() const
Copy constructor.
virtual void circularVelocity(double const pos[4], double vel[4], double dir=1.) const
Yield circular velocity at a given position.
double a2_
spin_*spin_
Definition: GyotoKerrKS.h:66
virtual int diff(const double y[8], double res[8]) const
F function such as dy/dtau=F(y,cst)
void nullifyCoord(double coord[8], double &tdot2) const
Set tdot (coord[4]) such that coord is light-like and return other possible tdot. ...