/usr/include/Gyoto/GyotoPatternDiskBB.h is in libgyoto2-dev 0.2.3-1.
This file is owned by root:root, with mode 0o644.
The actual contents of the file can be viewed below.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 | /**
* \file GyotoPatternDiskBB.h
* \brief A PatternDisk object with possibility to
* compute a black body spectrum when
* PatternDiskBB::emission_ does not yield
* directly I<SUB>ν</SUB> but temperature.
*/
/*
Copyright 2011 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 __GyotoPatternDiskBB_H_
#define __GyotoPatternDiskBB_H_
#include <iostream>
#include <fstream>
#include <iomanip>
namespace Gyoto{
namespace Astrobj { class PatternDiskBB; }
}
//#include <GyotoMetric.h>
#include <GyotoPatternDisk.h>
#include <GyotoBlackBodySpectrum.h>
/**
* \class Gyoto::Astrobj::PatternDiskBB
* \brief Geometrically thin disk read from FITS file with black body
* spectrum
*
* This class describes a disk contained in the z=0 (equatorial)
* plane, extending from r=r_ISCO to r=rmax_. The flux emitted
* at radius r and longitude phi at frequency nu is given in a FITS
* file.
*
*/
class Gyoto::Astrobj::PatternDiskBB : public Astrobj::PatternDisk {
friend class Gyoto::SmartPointer<Gyoto::Astrobj::PatternDiskBB>;
protected:
SmartPointer<Spectrum::BlackBody> spectrumBB_; ///< disk black body
///< emission law
private:
/**
* \brief 1 if spectral emission.
*
* XML: SpectralEmission
*
*/
int SpectralEmission_;
double risco_; ///< ISCO radius (if non-Kerr metric, not computable directly)
// double rmax_; ///< Maximal extension of the disk !!! see Astrobj::rmax_
// Constructors - Destructor
// -------------------------
public:
PatternDiskBB(); ///< Standard constructor
PatternDiskBB(const PatternDiskBB& ) ;///< Copy constructor
virtual PatternDiskBB* clone () const;///< Cloner
virtual ~PatternDiskBB() ; ///< Destructor
// Accessors
// ---------
public:
int setParameter(std::string name, std::string content, std::string unit);
public:
using PatternDisk::emission;
double emission(double nu_em, double dsem,
double c_ph[8], double c_obj[8]) const;
double const * getVelocity() const ;
void getVelocity(double const pos[4], double vel[4]) ;
using Generic::metric;
void metric(SmartPointer<Metric::Generic> gg); ///< Insures metric is KerrBL or alike
public:
#ifdef GYOTO_USE_XERCES
void fillElement(FactoryMessenger *fmp) const ;
#endif
};
#endif
|