GyotoDynamicalDisk.h
Go to the documentation of this file.
/*
Copyright 2011-2015, 2018 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 __GyotoDynamicalDisk_H_
#define __GyotoDynamicalDisk_H_
#include <iostream>
#include <fstream>
#include <iomanip>
#include <cstring>
namespace Gyoto{
namespace Astrobj { class DynamicalDisk; }
}
//#include <GyotoMetric.h>
#include <GyotoPatternDiskBB.h>
class Gyoto::Astrobj::DynamicalDisk : public Astrobj::PatternDiskBB {
friend class Gyoto::SmartPointer<Gyoto::Astrobj::DynamicalDisk>;
private:
char* dirname_;
double tinit_;
double dt_;
int nb_times_;
int nnu_, nphi_, nr_;
double ** emission_array_;
double ** velocity_array_;
double ** radius_array_;
// Constructors - Destructor
// -------------------------
public:
GYOTO_OBJECT;
DynamicalDisk();
DynamicalDisk(const DynamicalDisk& ) ;
virtual DynamicalDisk* clone () const;
virtual ~DynamicalDisk() ;
// Accessors
// ---------
public:
std::string file() const;
void file(std::string const &fname);
void tinit(double t);
double tinit()const;
void dt(double t);
double dt()const;
// fillProperty is overridden to set only the directory
void fillProperty(Gyoto::FactoryMessenger *fmp, Property const &p) const;
using PatternDiskBB::emission;
virtual double emission(double nu_em, double dsem,
state_t const &c_ph, double const c_obj[8]=NULL) const;
void getVelocity(double const pos[4], double vel[4]);
double const * getVelocity() const;
protected:
void copyQuantities(int iq) ;
void nullifyQuantities() ;
};
#endif
GYOTO_OBJECT
#define GYOTO_OBJECT
Declare class::properties and class::getProperties().
Definition GyotoObject.h:84
GyotoPatternDiskBB.h
A PatternDisk object with possibility to compute a black body spectrum when PatternDiskBB::emission_ ...
Gyoto::Astrobj::DynamicalDisk
Geometrically thin disk read from a set of FITS files.
Definition GyotoDynamicalDisk.h:50
Gyoto::Astrobj::DynamicalDisk::clone
virtual DynamicalDisk * clone() const
Cloner.
Gyoto::Astrobj::DynamicalDisk::nb_times_
int nb_times_
Number of dates.
Definition GyotoDynamicalDisk.h:56
Gyoto::Astrobj::DynamicalDisk::dt_
double dt_
Time increment between two FITS (assumed constant).
Definition GyotoDynamicalDisk.h:55
Gyoto::Astrobj::DynamicalDisk::copyQuantities
void copyQuantities(int iq)
Set underlying PatternDisk pointers to a specific date slice.
Gyoto::Astrobj::DynamicalDisk::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::Astrobj::DynamicalDisk::tinit_
double tinit_
date of the first FITS file
Definition GyotoDynamicalDisk.h:54
Gyoto::Astrobj::DynamicalDisk::velocity_array_
double ** velocity_array_
Array of PatternDisk::velocity_ arrays.
Definition GyotoDynamicalDisk.h:63
Gyoto::Astrobj::DynamicalDisk::radius_array_
double ** radius_array_
Array of PatternDisk::radius_ arrays.
Definition GyotoDynamicalDisk.h:66
Gyoto::Astrobj::DynamicalDisk::DynamicalDisk
DynamicalDisk()
Standard constructor.
Gyoto::Astrobj::DynamicalDisk::fillProperty
void fillProperty(Gyoto::FactoryMessenger *fmp, Property const &p) const
Output a single Property to XML.
Gyoto::Astrobj::DynamicalDisk::getVelocity
void getVelocity(double const pos[4], double vel[4])
Get fluid 4-velocity at point.
Gyoto::Astrobj::DynamicalDisk::nr_
int nr_
Grid dimensions (assumed constant).
Definition GyotoDynamicalDisk.h:57
Gyoto::Astrobj::DynamicalDisk::dirname_
char * dirname_
FITS files directory.
Definition GyotoDynamicalDisk.h:53
Gyoto::Astrobj::DynamicalDisk::emission_array_
double ** emission_array_
Array of PatternDisk::emission_ arrays.
Definition GyotoDynamicalDisk.h:60
Gyoto::Astrobj::PatternDiskBB
Geometrically thin disk read from FITS file with black body spectrum.
Definition GyotoPatternDiskBB.h:54
Gyoto::Astrobj::PatternDiskBB::emission
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