The SKIRT project
advanced radiative transfer for astrophysics
SpatialGridPath::Segment Class Reference

#include <SpatialGridPath.hpp>

Public Member Functions

 Segment (int m, double ds, double s)
double ds () const
int m () const
double s () const
void setOpticalDepth (double tauExt)
void setOpticalDepth (double tauSca, double tauAbs)
double tauAbs () const
double tauExt () const
double tauExtOrSca () const

Private Attributes

double _ds
int _m
double _s
double _tauAbs
double _tauExtOrSca

Detailed Description

This data structure holds information about a given segment in the path. In addition to the spatial information (cell index, incremental distance, cumulative distance) managed by the SpatialGridPath class itself, segments can also store optical depth information managed by client code for forced-scattering photon life cycles. For photon life cycles without explicit absorption, just the extinction optical depth is stored. For life cycles with explicit absorption, the scattering and absorption optical depth are stored separately.


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