/usr/include/Gyoto/GyotoPageThorneDisk.h is in libgyoto1-dev 0.1.0-2.
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 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 | /**
* \file GyotoPageThorneDisk.h
* \brief A geometrically thin, optically thick disk
*
* This class describes a disk contained in the z=0 (equatorial)
* plane, extending from r=r_ISCO to r=infinity. The flux emitted
* at radius r is given by Page & Thorne (1974, ApJ 191:499,
* Eqs. 11b, 14, 15).
*
* Only bolometric flux is implemented (as quantity User4), no
* spectral resolution.
*/
/*
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 __GyotoPageThorneDisk_H_
#define __GyotoPageThorneDisk_H_
#include <iostream>
#include <fstream>
#include <iomanip>
namespace Gyoto{
namespace Astrobj { class PageThorneDisk; }
}
//#include <GyotoMetric.h>
#include <GyotoThinDisk.h>
/**
* \class Gyoto::Astrobj::PageThorneDisk
* \brief Geometrically thin disk in Kerr metric
*
* This class describes a disk contained in the z=0 (equatorial)
* plane, extending from r=r_ISCO to r=infinity. The flux emitted
* at radius r is given by Page & Thorne (1974, ApJ 191:499,
* Eqs. 11b, 14, 15).
*
* The metric must be either KerrBL or KerrKS. Emission, Spectrum
* and BinSpectrum are <STRONG>not</STRONG> provide, the only
* intensity provided is provided, as quantity User4 and it is the
* default quantity returned if nothing is requested. The other
* quantities implemented in ThinDisk are also provided.
*
*/
class Gyoto::Astrobj::PageThorneDisk
: public Astrobj::ThinDisk,
public Hook::Listener
{
friend class Gyoto::SmartPointer<Gyoto::Astrobj::PageThorneDisk>;
private:
double aa_; ///< Generic::gg_ spin parameter, monitored by tell()
double aa2_; ///< aa_<SUP>2</SUP>
double x0_; ///< Value cached for bolometricEmission()
double x1_; ///< Value cached for bolometricEmission()
double x2_; ///< Value cached for bolometricEmission()
double x3_; ///< Value cached for bolometricEmission()
int rednoise_; ///< Flag for rednoise-like flux
int uniflux_; ///< Flag for uniform flux = 1
// Constructors - Destructor
// -------------------------
public:
PageThorneDisk(); ///< Standard constructor
PageThorneDisk(const PageThorneDisk& ) ;///< Copy constructor
virtual PageThorneDisk* clone () const; ///< Cloner
virtual ~PageThorneDisk() ; ///< Destructor
// Accessors
// ---------
public:
virtual void setMetric(SmartPointer<Metric::Generic>);
///< Set metric, checking that it is either KerrBL or KerrKS
virtual void updateSpin() ;
///< Get spin from metric, which must be KerrBL or KerrKS
public:
using ThinDisk::emission;
/**
* \brief Not implemented
* Throws a Gyoto::Error
*/
virtual double emission(double nu_em, double dsem,
double c_ph[8], double c_obj[8]) const;
/**
* \brief Bolometric emission
*
* Similar to Generic::emission(), but bolometric.
*/
virtual double bolometricEmission(double dsem,
double c_obj[8]) const;
/**
* \brief
* processHitQuantities fills the requested data in Impact. For
* PageThorneDisk, only fill User4, which corresponds to bolometric
* intensity.
*/
virtual void processHitQuantities(Photon* ph, double* coord_ph_hit,
double* coord_obj_hit, double dt,
Astrobj::Properties* data) const;
int setParameter(std::string name,
std::string content,
std::string unit);
Quantity_t getDefaultQuantities();
// Hook::Listener API //
public:
/**
* \brief Update PageThorneDisk::aa_
*
* Calls updateSpin().
*
* See Hook::Listener::tell()
*/
virtual void tell(Gyoto::Hook::Teller *msg);
public:
#ifdef GYOTO_USE_XERCES
virtual void fillElement(FactoryMessenger *fmp) const ; ///< called from Factory
#endif
};
#endif
|