GyotoWorldline.h File Reference

Timelike or null geodesics. More...

#include <iostream>
#include <fstream>
#include <string>
#include <vector>
#include <GyotoDefs.h>
#include <functional>
#include <array>
#include <boost/numeric/odeint/stepper/controlled_step_result.hpp>
#include <GyotoSmartPointer.h>
#include <GyotoMetric.h>
#include <GyotoScreen.h>
#include <GyotoHooks.h>

Go to the source code of this file.

Classes

class  Gyoto::Worldline
 Timelike or null geodesics. More...
class  Gyoto::Worldline::IntegState
class  Gyoto::Worldline::IntegState::Generic
 Current state of a geodesic integration. More...
class  Gyoto::Worldline::IntegState::Legacy
 Obsolete: Home-brewed integrator. More...
class  Gyoto::Worldline::IntegState::Boost
 Boost integrator. More...

Namespaces

namespace  Gyoto
 

Namespace for the Gyoto library.


Defines

#define GYOTO_WORLDLINE_PROPERTIES(c)
 Define the bunch of Properties that make up the Worldline interface.
#define GYOTO_WORLDLINE_ACCESSORS(c)
 Define the wrapper accessors used in GYOTO_WORLDLINE_PROPERTIES(class).
#define GYOTO_WORLDLINE_PROPERTY_END(c, a)
 Drop-in replacement for GYOTO_PROPERTY_END(), which adds the Worldline interface.
#define GYOTO_WORLDLINE
 Declare the Worldline interface wrappers.

Detailed Description

Timelike or null geodesics.


Define Documentation

#define GYOTO_WORLDLINE

Declare the Worldline interface wrappers.

This macro must be called in the class declaration (.h file), in a public section. Its sibling GYOTO_WORLDLINE_ACCESSORS(c) must be called with the class method definition (.C file). Note that GYOTO_WORLDLINE_PROPERTY_END(c, a) calls GYOTO_WORLDLINE_ACCESSORS(c).

#define GYOTO_WORLDLINE_ACCESSORS (  ) 

Define the wrapper accessors used in GYOTO_WORLDLINE_PROPERTIES(class).

This macro, which is called automatically by GYOTO_WORLDLINE_PROPERTY_END(c, a), must be called once with the definition of the methods (.C file) of any class that derives from Worldline. The corresponding macro GYOTO_WORLDLINE must be called in the corresponding class declaration (.h file).

This is made necessary by how multiple inheritence works: directly using the accessors in the Worldline API leads to segfault at runtime (unless too much extra care is taken) and may go unnoticed.

These accessors must be declared in the class declaration using the GYOTO_WORLDLINE macro.

#define GYOTO_WORLDLINE_PROPERTIES (  ) 
Value:
Gyoto::Property("Gyoto::Worldline", "Time-like or null geodesic."),     \
    GYOTO_PROPERTY_BOOL(c, HighOrderImages, PrimaryOnly, _secondary,    \
                        "Whether to stop Photon integration at 180° deflection.") \
    GYOTO_PROPERTY_BOOL(c, ParallelTransport, NoParallelTransport, _parallelTransport,  \
                        "Whether to perform parallel transport of a local triad (used for polarization).") \
    GYOTO_PROPERTY_DOUBLE(c, RelTol, _relTol,                           \
                          "Relative tolerance for the adaptive step integrators.") \
    GYOTO_PROPERTY_DOUBLE(c, AbsTol, _absTol,                           \
                          "Absolute tolerance for the adaptive step integrators.") \
    GYOTO_PROPERTY_DOUBLE(c, DeltaMaxOverR, _deltaMaxOverR,             \
                          "Maximum value of step/distance from center of mass.") \
    GYOTO_PROPERTY_DOUBLE(c, DeltaMax, _deltaMax, "Maximum step (geometrical units).")  \
    GYOTO_PROPERTY_DOUBLE(c, DeltaMin, _deltaMin, "Minimum step (geometrical units).")  \
    GYOTO_PROPERTY_STRING(c, Integrator, _integrator,                   \
                          "Name of integrator (\"runge_kutta_fehlberg78\").")                   \
    GYOTO_PROPERTY_SIZE_T(c, MaxIter, _maxiter,                         \
                          "Maximum number of integration steps.")       \
    GYOTO_PROPERTY_BOOL(c, Adaptive, NonAdaptive, _adaptive,            \
                        "Whether to use an adaptive step.")             \
    GYOTO_PROPERTY_DOUBLE_UNIT(c, MinimumTime, _tMin,                   \
                               "Do not integrate earlier than this date (geometrical_time).") \
    GYOTO_PROPERTY_DOUBLE_UNIT(c, Delta, _delta,                        \
                               "Initial integration step (geometrical units).")         \
    GYOTO_PROPERTY_VECTOR_DOUBLE(c, InitCoord, _initCoord,              \
                                 "Initial 8-coordinate.")               \
    GYOTO_PROPERTY_METRIC(c, Metric, _metric,                           \
                          "The geometry of space-time at this end of the Universe.")

Define the bunch of Properties that make up the Worldline interface.

This macro, which is called automatically by GYOTO_WORLDLINE_PROPERTY_END(c, a), must be inserted in the definition of the Property list for any class derived from Worldline.

#define GYOTO_WORLDLINE_PROPERTY_END ( c,
 ) 
Value:

Drop-in replacement for GYOTO_PROPERTY_END(), which adds the Worldline interface.

This macro replaces GYOTO_PROPERTY_END(c, a) for classes that derive from Worldline. It calls GYOTO_WORLDLINE_PROPERTIES(a) and GYOTO_WORLDLINE_ACCESSORS(c). If this macro is used, GYOTO_WORLDLINE must be called in the class declaration (.h file).


Generated on 23 Oct 2019 for Gyoto by  doxygen 1.6.1