GyotoThinDiskProfile.h
Go to the documentation of this file.
/*
Copyright 2020 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 __GyotoThinDiskProfile_H_
#define __GyotoThinDiskProfile_H_
#include <iostream>
#include <fstream>
#include <iomanip>
namespace Gyoto{
namespace Astrobj { class ThinDiskProfile; }
}
//#include <GyotoMetric.h>
#include <GyotoThinDisk.h>
class Gyoto::Astrobj::ThinDiskProfile : public Astrobj::ThinDisk {
friend class Gyoto::SmartPointer<Gyoto::Astrobj::ThinDiskProfile>;
private:
double* model_param_;
bool circular_motion_;
protected:
// Constructors - Destructor
// -------------------------
public:
GYOTO_OBJECT;
GYOTO_OBJECT_THREAD_SAFETY;
ThinDiskProfile();
ThinDiskProfile(const ThinDiskProfile& ) ;
virtual ThinDiskProfile* clone () const;
virtual ~ThinDiskProfile() ;
// Accessors
// ---------
public:
bool circularMotion() const;
void circularMotion(bool circ);
void model_param(std::vector<double> const &v);
std::vector<double> model_param() const;
public:
virtual double emission(double nu_em, double dsem,
state_t const &c_ph,double const c_obj[8]=NULL) const;
virtual void getVelocity(double const pos[4], double vel[4]);
virtual void processHitQuantities(Photon* ph,
state_t const &coord_ph_hit,
double const *coord_obj_hit,
double dt,
Properties* data) const;
};
#endif
GYOTO_OBJECT
#define GYOTO_OBJECT
Declare class::properties and class::getProperties().
Definition GyotoObject.h:84
GyotoThinDisk.h
Geometrically thin disks and rings.
Gyoto::Astrobj::ThinDisk
Geometrically thin disks and rings.
Definition GyotoThinDisk.h:71
Gyoto::Astrobj::ThinDiskProfile
A subclass of ThinDisk emitting according to some specified profile that should be hardcoded in emiss...
Definition GyotoThinDiskProfile.h:48
Gyoto::Astrobj::ThinDiskProfile::circular_motion_
bool circular_motion_
True if motion is circular, else radial fall.
Definition GyotoThinDiskProfile.h:52
Gyoto::Astrobj::ThinDiskProfile::processHitQuantities
virtual void processHitQuantities(Photon *ph, state_t const &coord_ph_hit, double const *coord_obj_hit, double dt, Properties *data) const
Fills Astrobj::Properties.
Gyoto::Astrobj::ThinDiskProfile::clone
virtual ThinDiskProfile * clone() const
Cloner.
Gyoto::Astrobj::ThinDiskProfile::ThinDiskProfile
ThinDiskProfile()
Standard constructor.
Gyoto::Astrobj::ThinDiskProfile::model_param_
double * model_param_
A vector containing an arbitrary number of parameters necessary to compute the disk image.
Definition GyotoThinDiskProfile.h:51
Gyoto::Astrobj::ThinDiskProfile::getVelocity
virtual void getVelocity(double const pos[4], double vel[4])
Get fluid 4-velocity at point.
Gyoto::Astrobj::ThinDiskProfile::emission
virtual double emission(double nu_em, double dsem, state_t const &c_ph, double const c_obj[8]=NULL) const
Specific intensity Iν.
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