The SKIRT project
advanced radiative transfer for astrophysics
Public Member Functions | Protected Member Functions | Private Types | Private Attributes | Friends | List of all members
ParaboloidShellGeometry Class Reference

#include <ParaboloidShellGeometry.hpp>

Inheritance diagram for ParaboloidShellGeometry:
Inheritance graph
[legend]

Public Member Functions

double density (double R, double z) const override
 
Position generatePosition () const override
 
double innerOffsetZ () const
 
double innerOpeningAngle () const
 
double innerRadialExtent () const
 
double outerOffsetZ () const
 
double outerOpeningAngle () const
 
double SigmaR () const override
 
double SigmaZ () const override
 
- Public Member Functions inherited from AxGeometry
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
 
- Public Member Functions inherited from SimulationItem
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
 
- Public Member Functions inherited from Item
 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 ItemgetItemProperty (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)
 
Itemoperator= (const Item &)=delete
 
Itemparent () 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

 ParaboloidShellGeometry ()
 
void setupSelfBefore () override
 
- Protected Member Functions inherited from AxGeometry
 AxGeometry ()
 
- Protected Member Functions inherited from Geometry
 Geometry ()
 
Randomrandom () const
 
void setupSelfBefore () override
 
- Protected Member Functions inherited from SimulationItem
 SimulationItem ()
 
virtual bool offersInterface (const std::type_info &interfaceTypeInfo) const
 
virtual void setupSelfAfter ()
 
virtual void setupSelfBefore ()
 
- Protected Member Functions inherited from Item
 Item ()
 

Private Types

using BaseType = AxGeometry
 
using ItemType = ParaboloidShellGeometry
 

Private Attributes

double _A
 
double _aIn
 
double _aOut
 
const double & _DeltaIn
 
const double & _DeltaOut
 
const double & _Din
 
double _innerOffsetZ
 
double _innerOpeningAngle
 
double _innerRadialExtent
 
double _outerOffsetZ
 
double _outerOpeningAngle
 
double _Rin
 
double _Rout
 
const double & _zIn
 
double _zmaxIn
 
double _zmaxOut
 
const double & _zOut
 

Friends

class ItemRegistry
 

Detailed Description

The ParaboloidShellGeometry class is a subclass of the AxGeometry class and describes the geometry defined by two paraboloid surfaces. It may be used to represent dusty outflows.

The current implementation allows only a constant density distribution, bounded by two paraboloid surfaces of the form

\[ z=\frac{\rho^2}{a^2} \]

and two horizontal planes paralel to the xy plane, \(\pm (z_{\text{max}}+z_{\text{in}})\). There are five free parameters describing this dust geometry: the radial extent of the inner paraboloid \(D_{\text{in}}\), the two half opening angles \(\Delta_{\text{in}}\) and \(\Delta_{\text{out}}\), and the two offsets of the paraboloid vertices in the z direction \(z_{\text{in}}\) and \(z_{\text{out}}\). The radial extent correspond to the length of the line connecting the inner paraboloid vertex and its top for a given half opening angle of the paraboloid; the half opening angles are measured from the z axis to the radial extent line. The paraboloid height, radius and curvature level are determined by the radial extent and half opening angle.

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.

Constructor & Destructor Documentation

◆ ParaboloidShellGeometry()

ParaboloidShellGeometry::ParaboloidShellGeometry ( )
inlineprotected

Default constructor for concrete Item subclass ParaboloidShellGeometry : "a paraboloid shell geometry" .

Member Function Documentation

◆ density()

double ParaboloidShellGeometry::density ( double  R,
double  z 
) const
overridevirtual

This function returns the density \(\rho\) at the cylindrical radius \(R\) and height \(z\). For the present geometry, it returns a constant density for positions inside the paraboloid shell, and zero for positions outside the paraboloid shell.

Implements AxGeometry.

◆ generatePosition()

Position ParaboloidShellGeometry::generatePosition ( ) const
overridevirtual

This function generates a random position from the probability density \(p({\bf{r}})\, {\text{d}}{\bf{r}} = \rho({\bf{r}})\, {\text{d}}{\bf{r}}\). Since the current implementation allows only a constant density distribution, a random position can easily be constructed. The function repeatedly generates a uniform random position in the cylinder enveloping the geometry, and accepts the first position that happens to fall inside the nonzero-density region of the actual geometry.

Implements Geometry.

◆ innerOffsetZ()

ParaboloidShellGeometry::innerOffsetZ ( ) const
inline

This function returns the value of the discoverable double property innerOffsetZ : "the offset of the inner paraboloid vertices in the z direction" .

This property represents a physical quantity of type "length" .

The minimum value for this property is "[0" .

The default value for this property is given by the conditional value expression "0" .

◆ innerOpeningAngle()

ParaboloidShellGeometry::innerOpeningAngle ( ) const
inline

This function returns the value of the discoverable double property innerOpeningAngle : "the half opening angle of the inner paraboloid wall" .

This property represents a physical quantity of type "posangle" .

The minimum value for this property is "]0 deg" .

The maximum value for this property is "90 deg[" .

◆ innerRadialExtent()

ParaboloidShellGeometry::innerRadialExtent ( ) const
inline

This function returns the value of the discoverable double property innerRadialExtent : "the radial extent of the inner paraboloid wall" .

This property represents a physical quantity of type "length" .

The minimum value for this property is "]0" .

◆ outerOffsetZ()

ParaboloidShellGeometry::outerOffsetZ ( ) const
inline

This function returns the value of the discoverable double property outerOffsetZ : "the offset of the outer paraboloid vertices in the z direction" .

This property represents a physical quantity of type "length" .

The minimum value for this property is "[0" .

The default value for this property is given by the conditional value expression "0" .

◆ outerOpeningAngle()

ParaboloidShellGeometry::outerOpeningAngle ( ) const
inline

This function returns the value of the discoverable double property outerOpeningAngle : "the half opening angle of the outer paraboloid wall" .

This property represents a physical quantity of type "posangle" .

The minimum value for this property is "]0 deg" .

The maximum value for this property is "90 deg[" .

◆ setupSelfBefore()

void ParaboloidShellGeometry::setupSelfBefore ( )
overrideprotectedvirtual

This function calculates some frequently used values, including the normalization factor \(A\), which is set by the normalization condition that total mass equals one, resulting in

\[ A=\frac{1}{\pi(R_{out}^{2}z_{maxOut}-R_{in}^{2}z_{maxIn})} \]

.

Reimplemented from Geometry.

◆ SigmaR()

double ParaboloidShellGeometry::SigmaR ( ) const
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,

\[ \Sigma_R = \int_0^\infty \rho(R,0,0)\,{\text{d}}r. \]

For the paraboloid geometry this integral is simply zero.

Implements AxGeometry.

◆ SigmaZ()

double ParaboloidShellGeometry::SigmaZ ( ) const
overridevirtual

This function returns the Z-axis surface density, i.e. the integration of the density along the entire Z-axis,

\[ \Sigma_Z = \int_{-\infty}^\infty \rho(0,0,z)\, {\text{d}}z. \]

In the case of paraboloid geometry with constant density this is simply

\[ \Sigma_Z = 2 A (z_{\text{in}}-z_{\text{out}}), \]

where \(z_{\text{in}}\) and \(z_{\text{out}}\) are, respectively, offsets of the inner and outer paraboloid vertices in the z direction.

Implements Geometry.


The documentation for this class was generated from the following file: