GyotoNeutronStar.h
Go to the documentation of this file.
/*
Copyright (c) 2015 Frederic Vincent, 2017 Thibaut Paumard
This file is part of Gyoto.
Gyoto is free software: you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation, either version 3 of the License, or
(at your option) any later version.
Gyoto is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
GNU General Public License for more details.
You should have received a copy of the GNU General Public License
along with Gyoto. If not, see <http://www.gnu.org/licenses/>.
*/
#ifndef __GyotoNeutronStar_H_
#define __GyotoNeutronStar_H_
#include <GyotoStandardAstrobj.h>
#include <GyotoNumericalMetricLorene.h>
namespace Gyoto{
namespace Astrobj { class NeutronStar; }
}
class Gyoto::Astrobj::NeutronStar : public Astrobj::Standard {
friend class Gyoto::SmartPointer<Gyoto::Astrobj::NeutronStar>;
protected:
SmartPointer<Metric::NumericalMetricLorene> gg_;
public:
GYOTO_OBJECT;
NeutronStar();
NeutronStar(std::string kin);
NeutronStar(const NeutronStar& o);
virtual NeutronStar * clone() const ;
virtual ~NeutronStar() ;
public:
virtual Gyoto::SmartPointer<Metric::Generic> metric() const;
virtual void metric(SmartPointer<Metric::Generic> met);
virtual double operator()(double const coord[4]);
virtual void getVelocity(double const pos[4], double vel[4]) ;
};
#endif
GyotoNumericalMetricLorene.h
Base class for 3+1 numerical metrics computed by LORENE.
GYOTO_OBJECT
#define GYOTO_OBJECT
Declare class::properties and class::getProperties().
Definition GyotoObject.h:84
GyotoStandardAstrobj.h
Astronomical objects defined bya a potential/distance.
Gyoto::Astrobj::NeutronStar
Neutron star defined by its surface ; no emission.
Definition GyotoNeutronStar.h:45
Gyoto::Astrobj::NeutronStar::clone
virtual NeutronStar * clone() const
Cloner.
Gyoto::Astrobj::NeutronStar::metric
virtual Gyoto::SmartPointer< Metric::Generic > metric() const
Get gg_.
Gyoto::Astrobj::NeutronStar::getVelocity
virtual void getVelocity(double const pos[4], double vel[4])
Fluid velocity field.
Gyoto::Astrobj::NeutronStar::NeutronStar
NeutronStar()
Standard constructor.
Gyoto::Astrobj::NeutronStar::gg_
SmartPointer< Metric::NumericalMetricLorene > gg_
Underlying metric.
Definition GyotoNeutronStar.h:49
Gyoto::Astrobj::Standard
Astronomical objects defined bya a potential/distance.
Definition GyotoStandardAstrobj.h:87
Gyoto::SmartPointer
Pointers performing reference counting.
Definition GyotoSmartPointer.h:135
Gyoto::Astrobj
Access to astronomical objects.
Definition GyotoAstrobj.h:49
Gyoto
Namespace for the Gyoto library.
Definition GyotoAstrobj.h:44