Gyoto
GyotoEquatorialHotSpot.h
Go to the documentation of this file.
1 
7 /*
8  Copyright 2013, 2018 Frederic Vincent & Thibaut Paumard
9 
10  This file is part of Gyoto.
11 
12  Gyoto is free software: you can redistribute it and/or modify
13  it under the terms of the GNU General Public License as published by
14  the Free Software Foundation, either version 3 of the License, or
15  (at your option) any later version.
16 
17  Gyoto is distributed in the hope that it will be useful,
18  but WITHOUT ANY WARRANTY; without even the implied warranty of
19  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
20  GNU General Public License for more details.
21 
22  You should have received a copy of the GNU General Public License
23  along with Gyoto. If not, see <http://www.gnu.org/licenses/>.
24  */
25 
26 #ifndef __GyotoEquatorialHotSpot_h
27 #define __GyotoEquatorialHotSpot_h
28 
29 #include <GyotoAstrobj.h>
30 #include <GyotoThinDisk.h>
31 #include <GyotoWorldline.h>
32 
33 namespace Gyoto {
34  namespace Astrobj {
35  class EquatorialHotSpot;
36  };
37 };
38 
41  public Gyoto::Worldline {
43  private:
44  double sizespot_;
45  enum beaming_t {IsotropicBeaming=0, NormalBeaming=1,
46  RadialBeaming=2, IsotropicConstant=3};
47  beaming_t beaming_;
48  double beamangle_;
49  public:
51  GYOTO_WORLDLINE;
56  virtual ~EquatorialHotSpot();
57  virtual EquatorialHotSpot * clone() const ;
58 
59  // Accessors for the Property list
60  void spotRadSize(double t);
61  double spotRadSize() const;
62 
63  void beaming(std::string const &b);
64  std::string beaming() const;
65 
66  void beamAngle(double t);
67  double beamAngle() const;
68 
69  //
70 
71  double getMass() const;
72  using Generic::metric;
74  void setInitialCondition(double coord[8]);
75 
76  void getVelocity(double const pos[4], double vel[4]);
77 
78  double emission(double nu_em, double dsem,
79  state_t const &,
80  double const coord_obj[8]) const;
81 
82  // needed for legacy XML files
83  virtual int setParameter(std::string name,
84  std::string content,
85  std::string unit);
86 #ifdef GYOTO_USE_XERCES
87  // needed for wait_pos_
89  virtual void fillProperty(Gyoto::FactoryMessenger *fmp, Property const &p) const ;
90 #endif
91 
92 #endif
93 };
#define GYOTO_OBJECT
Declare class::properties and class::getProperties()
Definition: GyotoObject.h:84
void setParameters(FactoryMessenger *fmp)
Main loop in Subcontractor_t function.
double deltaMax() const
Get delta_max_.
virtual double deltaMax(double coord[8])
Get max step constraint for adaptive integration.
Timelike or null geodesics.
Definition: GyotoWorldline.h:238
Astronomical objects (light emitters)
Factory / SmartPointee::Subcontractor_t interface.
Definition: GyotoFactoryMessenger.h:92
virtual int setParameter(std::string name, std::string content, std::string unit)
Set parameter by name.
Timelike or null geodesics.
void getVelocity(double const pos[4], double vel[4])
Get fluid 4-velocity at point.
Property that can be set and got using standard methods.
Definition: GyotoProperty.h:607
Geometrically thin disks and rings.
Definition: GyotoThinDisk.h:68
Geometrically thin disks and rings.
Namespace for the Gyoto library.
Definition: GyotoAstrobj.h:43
double emission(double nu_em, double dsem, state_t const &, double const coord_obj[8]) const
Specific intensity Iν
Definition: GyotoEquatorialHotSpot.h:39
Pointers performing reference counting.
Definition: GyotoProperty.h:45
virtual SmartPointer< Metric::Generic > metric() const
Get the Metric gg_.
virtual EquatorialHotSpot * clone() const
Cloner.
SmartPointer< Metric::Generic > metric() const
Get metric.
virtual void fillProperty(Gyoto::FactoryMessenger *fmp, Property const &p) const
Output a single Property to XML.
double getMass() const
Get mass of particule.