Gyoto
GyotoChernSimons.h
Go to the documentation of this file.
1 
7 /*
8  Copyright 2013 Frederic Vincent
9 
10  This file is part of Gyoto.
11 
12  Gyoto is free software: you can redistribute it and/or modify
13  it under the terms of the GNU General Public License as published by
14  the Free Software Foundation, either version 3 of the License, or
15  (at your option) any later version.
16 
17  Gyoto is distributed in the hope that it will be useful,
18  but WITHOUT ANY WARRANTY; without even the implied warranty of
19  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
20  GNU General Public License for more details.
21 
22  You should have received a copy of the GNU General Public License
23  along with Gyoto. If not, see <http://www.gnu.org/licenses/>.
24  */
25 
26 #ifndef __GyotoChernSimons_h
27 #define __GyotoChernSimons_h
28 
29 #include <GyotoKerrBL.h>
30 
31 namespace Gyoto {
32  namespace Metric {
33  class ChernSimons;
34  };
35 };
36 
38 : public Gyoto::Metric::KerrBL {
40  protected:
41  double dzetaCS_;
42  public:
44  ChernSimons();
45  ChernSimons(const ChernSimons &o);
46  virtual ~ChernSimons();
47  virtual ChernSimons * clone() const ;
48 
49  void dzetaCS(double d);
50  double dzetaCS() const;
51 
52  double gmunu(const double * const x, int mu, int nu) const ;
53  double gmunu_up(const double * const x, int mu, int nu) const ;
54  int diff(const double y[8], const double cst[5], double res[8]) const ;
55  void circularVelocity(double const pos[4], double vel [4],
56  double dir=1.) const ;
57 };
58 #endif
Gyoto::Metric::ChernSimons::clone
virtual ChernSimons * clone() const
Virtual copy constructor.
GYOTO_OBJECT
#define GYOTO_OBJECT
Declare class::properties and class::getProperties()
Definition: GyotoObject.h:84
Gyoto::Metric::ChernSimons::circularVelocity
void circularVelocity(double const pos[4], double vel[4], double dir=1.) const
Yield circular velocity at a given position.
Gyoto::Metric::KerrBL
Metric around a Kerr black-hole in Boyer-Lindquist coordinates.
Definition: GyotoKerrBL.h:48
GyotoKerrBL.h
KerrBL metric.
Gyoto::Metric::ChernSimons
Definition: GyotoChernSimons.h:38
Gyoto
Namespace for the Gyoto library.
Definition: GyotoAstrobj.h:43
Gyoto::SmartPointer
Pointers performing reference counting.
Definition: GyotoProperty.h:45
Gyoto::Metric::ChernSimons::diff
int diff(const double y[8], const double cst[5], double res[8]) const
Used in RK4 proxies.
Gyoto::Metric::ChernSimons::dzetaCS_
double dzetaCS_
Chern-Simons coupling constant.
Definition: GyotoChernSimons.h:41