#include <TTauriDiskGeometry.hpp>
Public Member Functions | |
double | density (double R, double z) const override |
Position | generatePosition () const override |
double | maxRadius () const |
double | minRadius () const |
double | radialIndex () const |
double | scaleHeight () const |
double | scaleLength () const |
double | SigmaR () const override |
double | SigmaZ () const override |
double | verticalIndex () const |
![]() | |
virtual double | density (double R, double z) const =0 |
double | density (Position bfr) const override |
int | dimension () const override |
virtual double | SigmaR () const =0 |
double | SigmaX () const override |
double | SigmaY () const override |
virtual double | density (Position bfr) const =0 |
virtual int | dimension () const =0 |
virtual Position | generatePosition () const =0 |
virtual double | SigmaX () const =0 |
virtual double | SigmaY () const =0 |
virtual double | SigmaZ () const =0 |
![]() | |
template<class T > | |
T * | find (bool setup=true) const |
template<class T > | |
T * | interface (int levels=-999999, bool setup=true) const |
virtual string | itemName () const |
void | setup () |
string | typeAndName () const |
![]() | |
Item (const Item &)=delete | |
virtual | ~Item () |
void | addChild (Item *child) |
const vector< Item * > & | children () const |
virtual void | clearItemListProperty (const PropertyDef *property) |
void | destroyChild (Item *child) |
virtual bool | getBoolProperty (const PropertyDef *property) const |
virtual vector< double > | getDoubleListProperty (const PropertyDef *property) const |
virtual double | getDoubleProperty (const PropertyDef *property) const |
virtual string | getEnumProperty (const PropertyDef *property) const |
virtual int | getIntProperty (const PropertyDef *property) const |
virtual vector< Item * > | getItemListProperty (const PropertyDef *property) const |
virtual Item * | getItemProperty (const PropertyDef *property) const |
virtual string | getStringProperty (const PropertyDef *property) const |
int | getUtilityProperty (string name) const |
virtual void | insertIntoItemListProperty (const PropertyDef *property, int index, Item *item) |
Item & | operator= (const Item &)=delete |
Item * | parent () const |
virtual void | removeFromItemListProperty (const PropertyDef *property, int index) |
virtual void | setBoolProperty (const PropertyDef *property, bool value) |
virtual void | setDoubleListProperty (const PropertyDef *property, vector< double > value) |
virtual void | setDoubleProperty (const PropertyDef *property, double value) |
virtual void | setEnumProperty (const PropertyDef *property, string value) |
virtual void | setIntProperty (const PropertyDef *property, int value) |
virtual void | setItemProperty (const PropertyDef *property, Item *item) |
virtual void | setStringProperty (const PropertyDef *property, string value) |
void | setUtilityProperty (string name, int value) |
virtual string | type () const |
Protected Member Functions | |
TTauriDiskGeometry () | |
void | setupSelfBefore () override |
![]() | |
AxGeometry () | |
![]() | |
Geometry () | |
Random * | random () const |
void | setupSelfBefore () override |
![]() | |
SimulationItem () | |
virtual bool | offersInterface (const std::type_info &interfaceTypeInfo) const |
virtual void | setupSelfAfter () |
virtual void | setupSelfBefore () |
![]() | |
Item () | |
Private Types | |
using | BaseType = AxGeometry |
using | ItemType = TTauriDiskGeometry |
Friends | |
class | ItemRegistry |
The TTauriDiskGeometry class describes the geometry of a typical passive disk around a T Tauri star. The disks are axisymmetric with a central cavity and are characterized by the density distribution
There are six parameters for this geometry: the exponent indices
Special cases of this geometry are used in the radiative transfer benchmark problems described by Pascucci et al. (2004, A&A, 417, 793) and Pinte et al. (2009, A&A, 498, 967).
Note: for the implementation of this geometry we use the generalized logarithm defined by SpecialFunctions::gln() and its inverse SpecialFunctions::gexp(). Specifically, we often use the difference function SpecialFunctions::gln2() defined as
This item type is displayed only if the Boolean expression "Level2" evaluates to true after replacing the names by true or false depending on their presence.
|
inlineprotected |
Default constructor for concrete Item subclass TTauriDiskGeometry : "a T Tauri disk geometry" .
|
overridevirtual |
This function returns the density
Implements AxGeometry.
|
overridevirtual |
This function generates a random position from the geometry by drawing a random point from the three-dimensional probability density
We first generate a random radius
The cumulative distribution is
Using the definitions of gln() and gln2() noted in the class header, the cumulative distribution can be written as
A random
We then generate a random height from the conditional distribution function
where
Generating a random
Finally, we simply generate the azimuth from a uniform distribution between 0 and
Implements Geometry.
|
inline |
This function returns the value of the discoverable double property maxRadius : "the outer radius of the disk" .
This property represents a physical quantity of type "length" .
The minimum value for this property is "]0" .
|
inline |
This function returns the value of the discoverable double property minRadius : "the inner radius of the disk" .
This property represents a physical quantity of type "length" .
The minimum value for this property is "]0" .
|
inline |
This function returns the value of the discoverable double property radialIndex : "the radial exponent index α" .
The minimum value for this property is "]0" .
The default value for this property is given by the conditional value expression "2.5" .
|
inline |
This function returns the value of the discoverable double property scaleHeight : "the scale height" .
This property represents a physical quantity of type "length" .
The minimum value for this property is "]0" .
|
inline |
This function returns the value of the discoverable double property scaleLength : "the scale length" .
This property represents a physical quantity of type "length" .
The minimum value for this property is "]0" .
|
overrideprotectedvirtual |
This function verifies that the parameters are valid and it calculates the normalization constant
Given that
and using the definition of gln2() noted in the class header, we find after some algebra that
Reimplemented from Geometry.
|
overridevirtual |
This function returns the radial surface density, i.e. the integration of the density along a line in the equatorial plane starting at the centre of the coordinate system,
Using the definition of gln2() noted in the class header, we easily find for the T Tauri disk geometry that
Implements AxGeometry.
|
overridevirtual |
This function returns the vertical surface density, i.e. the integration of the density along the entire Z-axis,
For the T Tauri disk geometry with its central cylindrical cavity, this integral is zero.
Implements Geometry.
|
inline |
This function returns the value of the discoverable double property verticalIndex : "the vertical exponent index b" .
The minimum value for this property is "]0" .
The default value for this property is given by the conditional value expression "0.5" .