GyotoNeutronStarAnalyticEmission.h
Go to the documentation of this file.
/*
Copyright (c) 2017-2018 Frederic Vincent, 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 __GyotoNeutronStarAnalyticEmission_H_
#define __GyotoNeutronStarAnalyticEmission_H_
#include <GyotoStandardAstrobj.h>
#include <GyotoNumericalMetricLorene.h>
#include <GyotoSpectrum.h>
#include <GyotoNeutronStar.h>
namespace Gyoto{
namespace Astrobj { class NeutronStarAnalyticEmission; }
}
class Gyoto::Astrobj::NeutronStarAnalyticEmission : public Astrobj::NeutronStar {
friend class Gyoto::SmartPointer<Gyoto::Astrobj::NeutronStarAnalyticEmission>;
protected:
SmartPointer<Spectrum::Generic> spectrum_;
public:
GYOTO_OBJECT;
NeutronStarAnalyticEmission();
NeutronStarAnalyticEmission(const NeutronStarAnalyticEmission& o);
virtual NeutronStarAnalyticEmission * clone() const ;
virtual ~NeutronStarAnalyticEmission() ;
public:
virtual void spectrum(SmartPointer<Spectrum::Generic>);
virtual SmartPointer<Spectrum::Generic> spectrum() const;
virtual double emission(double nu_em, double dsem,
state_t const &_ph, double const _obj[8]=NULL) const;
};
#endif
GyotoNeutronStar.h
Neutron star defined by its surface ; no emission.
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
GyotoSpectrum.h
Spectrum of a simple object (e.g. Star).
GyotoStandardAstrobj.h
Astronomical objects defined bya a potential/distance.
Gyoto::Astrobj::NeutronStarAnalyticEmission
Neutron star emitting at its surface an analytic emission, typically blackbody.
Definition GyotoNeutronStarAnalyticEmission.h:49
Gyoto::Astrobj::NeutronStarAnalyticEmission::NeutronStarAnalyticEmission
NeutronStarAnalyticEmission()
Standard constructor.
Gyoto::Astrobj::NeutronStarAnalyticEmission::emission
virtual double emission(double nu_em, double dsem, state_t const &_ph, double const _obj[8]=NULL) const
Specific intensity Iν.
Gyoto::Astrobj::NeutronStarAnalyticEmission::spectrum_
SmartPointer< Spectrum::Generic > spectrum_
Emission spectrum.
Definition GyotoNeutronStarAnalyticEmission.h:53
Gyoto::Astrobj::NeutronStarAnalyticEmission::clone
virtual NeutronStarAnalyticEmission * clone() const
Cloner.
Gyoto::Astrobj::NeutronStar
Neutron star defined by its surface ; no emission.
Definition GyotoNeutronStar.h:45
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