Fish - FiberLib for VISH 0.3
Fish - The Fiber Bundle API for the Vish Visualization Shell
Traum::NumericalSpacetime< MetricArray, CoordinateSystem > Struct Template Reference

It conformes to the concept of an Acceleration. More...

#include <NumericalSpacetime.hpp>

Inheritance diagram for Traum::NumericalSpacetime< MetricArray, CoordinateSystem >:

Public Types

enum  { Dims = MetricArray::Dims }
typedef CoordinateSystem CoordinateSystem_t
typedef MetricArray::value_type metric_type
typedef MetricArray::Storage_t MetricStorage_t
typedef CoordinateSystem::Point_t Point_t
typedef CoordinateSystem::Scalar_t Scalar_t
typedef CoordinateSystem::Vector_t Vector_t
typedef CoordinateSystem::Metric_t Metric_t
typedef CubicIpol< metric_type > MetricInterpol
typedef Point_t::Vector_t::value_type CoordinateType
typedef Interpolate< Dims, metric_type, MetricStorage_t, MetricInterpol, CoordinateType > MetricField_t

Public Member Functions

 NumericalSpacetime (const MetricArray &metric)
 Constructor, stores a reference to the metric array.
void getMetric (Metric_t &g_p, const Point_t &P) const
 Get the metric tensor field at the interpolation point P.
Vector_t operator() (const Point_t &q, const Vector_t &dot_q) const
 Compute the coordinate acceleration at point q with velocity dot_q.

Public Attributes

const MetricArray & g

Detailed Description

template<class MetricArray, class CoordinateSystem>
struct Traum::NumericalSpacetime< MetricArray, CoordinateSystem >

It conformes to the concept of an Acceleration.

Examples
NumericalPolarGeodesic2D.cpp, and NumericalPolarSchwarzschild.cpp.