Public Attributes | List of all members
MMC_ray Struct Reference

Data structure associated with the current photon/ray. More...

Collaboration diagram for MMC_ray:
Collaboration graph
[legend]

Public Attributes

float3 p0
 
float3 vec
 
float3 pout
 
float4 bary0
 
int eid
 
int faceid
 
int isend
 
int nexteid
 
float weight
 
float photontimer
 
float slen0
 
float slen
 
float Lmove
 
double Eabsorb
 
unsigned int photonid
 
float * partialpath
 
void * photonseed
 
float focus
 
unsigned int posidx
 
unsigned int oldidx
 
double oldweight
 
float * roisize
 
int roitype
 
int inroi
 
int roiidx
 
int refeid
 

Detailed Description

Data structure associated with the current photon/ray.

Member Data Documentation

◆ bary0

float4 MMC_ray::bary0

the Barycentric coordinate of the intersection with the tet

◆ Eabsorb

double MMC_ray::Eabsorb

accummulated energy being absorbed

◆ eid

int MMC_ray::eid

the index of the enclosing tet (starting from 1)

◆ faceid

int MMC_ray::faceid

the index of the face at which ray intersects with tet

◆ focus

float MMC_ray::focus

focal length of the source, if defined

◆ inroi

int MMC_ray::inroi

if 1, inside edgeroi for the NEXT position; if 0, outside edgeroi

◆ isend

int MMC_ray::isend

if 1, the scattering event ends before reaching the intersection

◆ Lmove

float MMC_ray::Lmove

last photon movement length

◆ nexteid

int MMC_ray::nexteid

the index to the neighboring tet to be moved into

◆ p0

float3 MMC_ray::p0

current photon position

◆ partialpath

float* MMC_ray::partialpath

pointer to the partial path data buffer

◆ photonid

unsigned int MMC_ray::photonid

index of the current photon

◆ photonseed

void* MMC_ray::photonseed

pointer to store the photon seed

◆ photontimer

float MMC_ray::photontimer

the total time-of-fly of the photon

◆ posidx

unsigned int MMC_ray::posidx

launch position index of the photon for pattern source type

◆ pout

float3 MMC_ray::pout

the intersection position of the ray to the enclosing tet

◆ refeid

int MMC_ray::refeid

reference element id that is used for face-based implicit MMC

◆ roiidx

int MMC_ray::roiidx

edge(0-5), node (0-4) or face (0-4) index in a local element with ROIs

◆ roisize

float* MMC_ray::roisize

roisize, node/edge radii or face thickness

◆ roitype

int MMC_ray::roitype

if 1, the photon hits the edgeroi; if 2, the photon hits the node edgeroi; if 0, does not hit edgeroi

◆ slen

float MMC_ray::slen

the remaining unitless scattering length = length*mus

◆ slen0

float MMC_ray::slen0

initial unitless scattering length = length*mus

◆ vec

float3 MMC_ray::vec

current photon direction vector

◆ weight

float MMC_ray::weight

photon current weight


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