Gyoto
GyotoNeutronStarAnalyticEmission.h
Go to the documentation of this file.
1
9/*
10 Copyright (c) 2017-2018 Frederic Vincent, Thibaut Paumard
11 This file is part of Gyoto.
12
13 Gyoto is free software: you can redistribute it and/or modify
14 it under the terms of the GNU General Public License as published by
15 the Free Software Foundation, either version 3 of the License, or
16 (at your option) any later version.
17
18 Gyoto is distributed in the hope that it will be useful,
19 but WITHOUT ANY WARRANTY; without even the implied warranty of
20 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
21 GNU General Public License for more details.
22
23 You should have received a copy of the GNU General Public License
24 along with Gyoto. If not, see <http://www.gnu.org/licenses/>.
25*/
26
27
28#ifndef __GyotoNeutronStarAnalyticEmission_H_
29#define __GyotoNeutronStarAnalyticEmission_H_
30
33#include <GyotoSpectrum.h>
34#include <GyotoNeutronStar.h>
35
36
37namespace Gyoto{
38 namespace Astrobj { class NeutronStarAnalyticEmission; }
39}
40
51
52 protected:
53 SmartPointer<Spectrum::Generic> spectrum_;
54
55 public:
58 NeutronStarAnalyticEmission(const NeutronStarAnalyticEmission& o);
61
62 public:
63 virtual void spectrum(SmartPointer<Spectrum::Generic>);
64 virtual SmartPointer<Spectrum::Generic> spectrum() const;
65
66 virtual double emission(double nu_em, double dsem,
67 state_t const &_ph, double const _obj[8]=NULL) const;
68
69};
70
71#endif
Neutron star defined by its surface ; no emission.
Base class for 3+1 numerical metrics computed by LORENE.
#define GYOTO_OBJECT
Declare class::properties and class::getProperties()
Definition: GyotoObject.h:84
Spectrum of a simple object (e.g. Star)
Astronomical objects defined bya a potential/distance.
Neutron star emitting at its surface an analytic emission, typically blackbody.
Definition: GyotoNeutronStarAnalyticEmission.h:49
virtual double emission(double nu_em, double dsem, state_t const &_ph, double const _obj[8]=NULL) const
Specific intensity Iν
SmartPointer< Spectrum::Generic > spectrum_
Emission spectrum.
Definition: GyotoNeutronStarAnalyticEmission.h:53
virtual NeutronStarAnalyticEmission * clone() const
Cloner.
Neutron star defined by its surface ; no emission.
Definition: GyotoNeutronStar.h:45
Pointers performing reference counting.
Definition: GyotoSmartPointer.h:135
Namespace for the Gyoto library.
Definition: GyotoAstrobj.h:43