28 #ifndef __GyotoNeutronStarModelAtmosphere_H_ 29 #define __GyotoNeutronStarModelAtmosphere_H_ 37 namespace Astrobj {
class NeutronStarModelAtmosphere; }
73 void
fillProperty(Gyoto::FactoryMessenger *fmp, Property const &p) const;
81 void file(std::string const &f);
82 std::string file() const ;
83 void averageOverAngle(bool t);
84 bool averageOverAngle()const;
86 #ifdef GYOTO_USE_CFITSIO 87 virtual void fitsRead(std::string filename_);
91 virtual void fitsWrite(std::string filename_);
103 void surfgrav(double * pattern);
119 virtual void
copyIntensity(double const * const pattern = NULL,
120 size_t const naxes[3] = NULL);
125 virtual void copyGridSurfgrav(double const * const pattern = NULL,
128 virtual void copyGridCosi(double const * const pattern = NULL,
131 virtual void copyGridFreq(double const * const pattern = NULL,
136 void
getIndices(size_t i[3], double const co[4], double cosi, double nu=0.) const ;
141 virtual double
emission(double nu_em, double dsem,
142 state_t const &_ph, double const _obj[8]=NULL) const;
#define GYOTO_OBJECT
Declare class::properties and class::getProperties()
Definition: GyotoObject.h:84
virtual double emission(double nu_em, double dsem, state_t const &_ph, double const _obj[8]=NULL) const
Specific intensity Iν
bool average_over_angle_
true to average over emission angle
Definition: GyotoNeutronStarModelAtmosphere.h:66
virtual double const * getIntensity() const
Get NeutronStarModelAtmosphere::emission_.
void fillProperty(Gyoto::FactoryMessenger *fmp, Property const &p) const
Output a single Property to XML.
virtual double const * getGridSurfgrav() const
Get NeutronStarModelAtmosphere::surfgrav_.
virtual void copyIntensity(double const *const pattern=NULL, size_t const naxes[3]=NULL)
Neutron star defined by its surface ; no emission.
virtual double const * getGridFreq() const
Get NeutronStarModelAtmosphere::freq_.
#define size_t
If not defined in <sys/types.h>.
Definition: GyotoConfig.h:387
virtual void getIntensityNaxes(size_t naxes[3]) const
Get NeutronStarModelAtmosphere::nnu_, NeutronStarModelAtmosphere::ni_, and NeutronStarModelAtmosphere...
virtual double const * getGridCosi() const
Get NeutronStarModelAtmosphere::cosi_.
void getIndices(size_t i[3], double const co[4], double cosi, double nu=0.) const
Get emission_ cell corresponding to position co[4].
size_t nnu_
Number of frequencies provided in NeutronStarModelAtmosphere::emission_.
Definition: GyotoNeutronStarModelAtmosphere.h:62
double * cosi_
Direction cosine vector.
Definition: GyotoNeutronStarModelAtmosphere.h:59
Astronomical objects defined bya a potential/distance.
Neutron star defined by its surface ; no emission.
Definition: GyotoNeutronStar.h:45
void setEmission(double *pattern)
std::string filename_
Optional FITS file name containing the arrays.
Definition: GyotoNeutronStarModelAtmosphere.h:50
Namespace for the Gyoto library.
Definition: GyotoAstrobj.h:43
virtual NeutronStarModelAtmosphere * clone() const
Cloner.
double * emission_
Iν(ν, surfgrav, cosi;)
Definition: GyotoNeutronStarModelAtmosphere.h:56
Pointers performing reference counting.
Definition: GyotoProperty.h:45
Base class for 3+1 numerical metrics computed by LORENE.
size_t nsg_
Number of surfgrav values.
Definition: GyotoNeutronStarModelAtmosphere.h:64
double * freq_
Frequencies vector.
Definition: GyotoNeutronStarModelAtmosphere.h:60
size_t ni_
Number of direction cosine.
Definition: GyotoNeutronStarModelAtmosphere.h:63
Neutron star emitting at its surface an emission provided by a FITS table.
Definition: GyotoNeutronStarModelAtmosphere.h:46
double * surfgrav_
Surface gravity vector.
Definition: GyotoNeutronStarModelAtmosphere.h:58