GyotoInflateStar.h
Go to the documentation of this file.
/*
Copyright 2011, 2013, 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 __GyotoInflateStar_H_
#define __GyotoInflateStar_H_
namespace Gyoto{
namespace Astrobj { class InflateStar; }
}
#include <GyotoMetric.h>
#include <GyotoStar.h>
#ifdef GYOTO_USE_XERCES
#include <GyotoRegister.h>
#endif
#include <string>
class Gyoto::Astrobj::InflateStar :
public Gyoto::Astrobj::Star {
friend class Gyoto::SmartPointer<Gyoto::Astrobj::InflateStar>;
// Data :
// -----
private:
double timeinflateinit_;
double timeinflatestop_;
double radiusstop_;
// Constructors - Destructor
// -------------------------
public:
GYOTO_OBJECT; // This object has a (non-inherited) Property list
InflateStar();
InflateStar(const InflateStar& orig);
virtual InflateStar * clone() const ;
virtual ~InflateStar() ;
GYOTO_OBJECT_ACCESSORS_UNIT(timeInflateInit);
GYOTO_OBJECT_ACCESSORS_UNIT(timeInflateStop);
GYOTO_OBJECT_ACCESSORS_UNIT(radiusStop);
using Star::radius;
virtual double radiusAt(double t) const;
virtual double radiusAt(double t,
const std::string &t_unit) const;
virtual double radiusAt(double t,
const std::string &t_unit,
const std::string &r_unit) const;
// Accessors
// ---------
public:
virtual std::string className() const ;
virtual std::string className_l() const ;
public:
virtual int Impact(Gyoto::Photon* ph, size_t index,
Astrobj::Properties *data=NULL);
virtual double emission(double nu_em, double dsem,
state_t const &cp, double const co[8]=NULL) const;
};
#endif
GyotoMetric.h
Base class for metric description.
GYOTO_OBJECT
#define GYOTO_OBJECT
Declare class::properties and class::getProperties().
Definition GyotoObject.h:84
GyotoRegister.h
Gyoto registers.
GyotoStar.h
Mass-less, spherical object following a timelike geodesic.
Gyoto::Astrobj::InflateStar
An Astrobj::Star with growing size.
Definition GyotoInflateStar.h:52
Gyoto::Astrobj::InflateStar::timeinflatestop_
double timeinflatestop_
coordinate time of stopping inflation
Definition GyotoInflateStar.h:59
Gyoto::Astrobj::InflateStar::InflateStar
InflateStar()
Default constructor.
Gyoto::Astrobj::InflateStar::radiusstop_
double radiusstop_
maximum radius of star
Definition GyotoInflateStar.h:60
Gyoto::Astrobj::InflateStar::Impact
virtual int Impact(Gyoto::Photon *ph, size_t index, Astrobj::Properties *data=NULL)
Does a photon at these coordinates impact the object?
Gyoto::Astrobj::InflateStar::emission
virtual double emission(double nu_em, double dsem, state_t const &cp, double const co[8]=NULL) const
Emission is determined by spectrum_ and opacity_.
Gyoto::Astrobj::InflateStar::timeinflateinit_
double timeinflateinit_
coordinate time of starting inflation
Definition GyotoInflateStar.h:58
Gyoto::Astrobj::InflateStar::clone
virtual InflateStar * clone() const
Cloner.
Gyoto::Astrobj::InflateStar::className
virtual std::string className() const
"InflateStar"
Gyoto::Astrobj::InflateStar::radiusAt
virtual double radiusAt(double t) const
Radius at a given time.
Gyoto::Astrobj::InflateStar::className_l
virtual std::string className_l() const
"inflate_star"
Gyoto::Astrobj::Star
Mass-less, spherical object following a timelike geodesic.
Definition GyotoStar.h:96
Gyoto::Astrobj::UniformSphere::radius
double radius() const
Get radius_ in geometrical units.
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