GyotoEquatorialHotSpot.h
Go to the documentation of this file.
/*
Copyright 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 __GyotoEquatorialHotSpot_h
#define __GyotoEquatorialHotSpot_h
#include <GyotoAstrobj.h>
#include <GyotoThinDisk.h>
#include <GyotoWorldline.h>
#include <GyotoThermalSynchrotronSpectrum.h>
#include <string>
namespace Gyoto {
namespace Astrobj {
class EquatorialHotSpot;
};
};
class Gyoto::Astrobj::EquatorialHotSpot
: public Gyoto::Astrobj::ThinDisk,
public Gyoto::Worldline {
friend class Gyoto::SmartPointer<Gyoto::Astrobj::EquatorialHotSpot>;
private:
double sizespot_;
enum beaming_t {IsotropicBeaming=0, NormalBeaming=1,
RadialBeaming=2, IsotropicConstant=3};
beaming_t beaming_;
double beamangle_;
SmartPointer<Spectrum::ThermalSynchrotron> spectrumThermalSynch_; // Thermal distribution synchrotron spectrum
std::string magneticConfig_;
public:
GYOTO_OBJECT;
GYOTO_WORLDLINE;
using Gyoto::Worldline::deltaMax;
using Gyoto::Astrobj::Generic::deltaMax;
EquatorialHotSpot();
EquatorialHotSpot(const EquatorialHotSpot &o);
virtual ~EquatorialHotSpot();
virtual EquatorialHotSpot * clone() const ;
// Accessors for the Property list
void spotRadSize(double t);
double spotRadSize() const;
void beaming(std::string const &b);
std::string beaming() const;
void beamAngle(double t);
double beamAngle() const;
void magneticConfiguration(std::string config);
std::string magneticConfiguration() const;
//
double getMass() const;
using Generic::metric;
void metric(SmartPointer<Metric::Generic> gg);
void setInitialCondition(double coord[8]);
void getVelocity(double const pos[4], double vel[4]);
double emission(double nu_em, double dsem,
state_t const &,
double const coord_obj[8]) const;
void radiativeQ(double *Inu, double *Qnu, double *Unu,
double *Vnu,
Eigen::Matrix4d *Onu,
double const *nuem , size_t nbnu,
double dsem,
state_t const &cph,
double const *co) const;
void radiativeQ(double Inu[], // output
double Taunu[], // output
double const nu_ems[], size_t nbnu, // input
double dsem,
state_t const &coord_ph,
double const coord_obj[8]) const;
// needed for legacy XML files
virtual int setParameter(std::string name,
std::string content,
std::string unit);
#ifdef GYOTO_USE_XERCES
// needed for wait_pos_
void setParameters(FactoryMessenger* fmp);
virtual void fillProperty(Gyoto::FactoryMessenger *fmp, Property const &p) const ;
#endif
#endif
};
GyotoAstrobj.h
Astronomical objects (light emitters).
GYOTO_OBJECT
#define GYOTO_OBJECT
Declare class::properties and class::getProperties().
Definition GyotoObject.h:84
GyotoThermalSynchrotronSpectrum.h
Thermal synchrotron spectrum.
GyotoThinDisk.h
Geometrically thin disks and rings.
GyotoWorldline.h
Timelike or null geodesics.
Gyoto::Astrobj::EquatorialHotSpot
Definition GyotoEquatorialHotSpot.h:44
Gyoto::Astrobj::EquatorialHotSpot::setParameter
virtual int setParameter(std::string name, std::string content, std::string unit)
Set parameter by name.
Gyoto::Astrobj::EquatorialHotSpot::emission
double emission(double nu_em, double dsem, state_t const &, double const coord_obj[8]) const
Specific intensity Iν.
Gyoto::Astrobj::EquatorialHotSpot::clone
virtual EquatorialHotSpot * clone() const
Cloner.
Gyoto::Astrobj::EquatorialHotSpot::fillProperty
virtual void fillProperty(Gyoto::FactoryMessenger *fmp, Property const &p) const
Output a single Property to XML.
Gyoto::Astrobj::EquatorialHotSpot::getMass
double getMass() const
Get mass of particule.
Gyoto::Astrobj::EquatorialHotSpot::setParameters
void setParameters(FactoryMessenger *fmp)
Main loop in Subcontractor_t function.
Gyoto::Astrobj::EquatorialHotSpot::radiativeQ
void radiativeQ(double *Inu, double *Qnu, double *Unu, double *Vnu, Eigen::Matrix4d *Onu, double const *nuem, size_t nbnu, double dsem, state_t const &cph, double const *co) const
Compute the increment of Stokes parameters and transmission matrix. Polarised version of RadiaveQ.
Gyoto::Astrobj::EquatorialHotSpot::metric
void metric(SmartPointer< Metric::Generic > gg)
Set the Metric gg_.
Gyoto::Astrobj::EquatorialHotSpot::getVelocity
void getVelocity(double const pos[4], double vel[4])
Get fluid 4-velocity at point.
Gyoto::Astrobj::EquatorialHotSpot::magneticConfig_
std::string magneticConfig_
Specify the magnetic field configuration for polarisation.
Definition GyotoEquatorialHotSpot.h:54
Gyoto::Astrobj::EquatorialHotSpot::radiativeQ
void radiativeQ(double Inu[], double Taunu[], double const nu_ems[], size_t nbnu, double dsem, state_t const &coord_ph, double const coord_obj[8]) const
emission and transmission together
Gyoto::Astrobj::Generic::metric
virtual SmartPointer< Metric::Generic > metric() const
Get the Metric gg_.
Gyoto::Astrobj::Generic::deltaMax
virtual double deltaMax(double coord[8])
Get max step constraint for adaptive integration.
Gyoto::Astrobj::ThinDisk
Geometrically thin disks and rings.
Definition GyotoThinDisk.h:71
Gyoto::FactoryMessenger
Factory / SmartPointee::Subcontractor_t interface.
Definition GyotoFactoryMessenger.h:92
Gyoto::Property
Property that can be set and got using standard methods.
Definition GyotoProperty.h:608
Gyoto::SmartPointer
Pointers performing reference counting.
Definition GyotoSmartPointer.h:135
Gyoto::Worldline
Timelike or null geodesics.
Definition GyotoWorldline.h:240
Gyoto::Worldline::deltaMax
double deltaMax() const
Get delta_max_.
Gyoto::Astrobj
Access to astronomical objects.
Definition GyotoAstrobj.h:49
Gyoto
Namespace for the Gyoto library.
Definition GyotoAstrobj.h:44