Gyoto
GyotoNeutronStar.h
Go to the documentation of this file.
1 
8 /*
9  Copyright (c) 2015 Frederic Vincent, 2017 Thibaut Paumard
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 
27 #ifndef __GyotoNeutronStar_H_
28 #define __GyotoNeutronStar_H_
29 
30 #include <GyotoStandardAstrobj.h>
32 
33 namespace Gyoto{
34  namespace Astrobj { class NeutronStar; }
35 }
36 
47 
48  protected:
49  SmartPointer<Metric::NumericalMetricLorene> gg_;
50 
51  public:
53  NeutronStar();
54  NeutronStar(std::string kin);
55  NeutronStar(const NeutronStar& o);
56  virtual NeutronStar * clone() const ;
57  virtual ~NeutronStar() ;
58 
59  public:
60  virtual Gyoto::SmartPointer<Metric::Generic> metric() const;
61  virtual void metric(SmartPointer<Metric::Generic> met);
62 
63  virtual double operator()(double const coord[4]);
64  virtual void getVelocity(double const pos[4], double vel[4]) ;
65 };
66 
67 #endif
virtual NeutronStar * clone() const
Cloner.
#define GYOTO_OBJECT
Declare class::properties and class::getProperties()
Definition: GyotoObject.h:84
Astronomical objects defined bya a potential/distance.
virtual Gyoto::SmartPointer< Metric::Generic > metric() const
Get gg_.
Neutron star defined by its surface ; no emission.
Definition: GyotoNeutronStar.h:45
virtual void getVelocity(double const pos[4], double vel[4])
Fluid velocity field.
Namespace for the Gyoto library.
Definition: GyotoAstrobj.h:43
Pointers performing reference counting.
Definition: GyotoProperty.h:45
SmartPointer< Metric::NumericalMetricLorene > gg_
Underlying metric.
Definition: GyotoNeutronStar.h:49
Base class for 3+1 numerical metrics computed by LORENE.
Astronomical objects defined bya a potential/distance.
Definition: GyotoStandardAstrobj.h:84