|
| Photon () |
| Default constructor. Must subsequently set all parameters.
|
|
| Photon (const RealVect &a_position, const RealVect &a_velocity, const Real &a_kappa, const Real a_weight=1.0) |
| Full constructor. More...
|
|
virtual | ~Photon () |
| Destructor (does nothing)
|
|
void | define (const RealVect &a_position, const RealVect &a_velocity, const Real &a_kappa, const Real a_weight=1.0) |
| Define function. Sets all parameters. More...
|
|
Real & | weight () |
| Get photon weight.
|
|
const Real & | weight () const |
| Get particle weight.
|
|
Real & | kappa () |
| Get photon absorption length.
|
|
const Real & | kappa () const |
| Get mean absorption length.
|
|
RealVect & | velocity () |
| Get photon velocity.
|
|
const RealVect & | velocity () const |
| Get photon velocity.
|
|
Public Member Functions inherited from GenericParticle< 2, 1 > |
| GenericParticle () |
| Default constructor – initializes everything to zero.
|
|
| GenericParticle (const GenericParticle< M, N > &a_other) |
| Copy constructor. Copies all fields. More...
|
|
virtual | ~GenericParticle () |
| Destructor (deallocates runtime memory storage)
|
|
RealVect & | position () |
| Get the particle position. More...
|
|
const RealVect & | position () const |
| Get the particle position. More...
|
|
const std::array< Real, M > & | getReals () const noexcept |
| Get the M scalars. More...
|
|
std::array< Real, M > & | getReals () noexcept |
| Get the M scalars. More...
|
|
const std::array< RealVect, N > & | getVects () const noexcept |
| Get the N vectors. More...
|
|
std::array< RealVect, N > & | getVects () noexcept |
| Get the N vectors. More...
|
|
Real & | real () |
| Get one of the scalars. More...
|
|
const Real & | real () const |
| Get one of the scalars. More...
|
|
RealVect & | vect () |
| Get one of the RealVects. More...
|
|
const RealVect & | vect () const |
| Get one of the RealVects. More...
|
|
bool | operator== (const GenericParticle< M, N > &a_other) const |
| Comparison operator with other particle. More...
|
|
bool | operator!= (const GenericParticle< M, N > &a_other) const |
| Comparison operator with other particle. More...
|
|
bool | operator< (const GenericParticle< M, N > &a_other) const noexcept |
| Particle comparison operator. Returns lexicographical ordering.
|
|
virtual int | size () const |
| Returns the size, in number of bytes, of a flat representation of the data in this object.
|
|
virtual void | linearOut (void *a_buffer) const |
| Write a linear binary representation of the internal data. Assumes that sufficient memory for the buffer has already been allocated by the caller. More...
|
|
virtual void | linearIn (void *a_buffer) |
| Read a linear binary representation of the internal data. Assumes that the buffer has the correct data. More...
|
|
Particle class for usage with Monte Carlo radiative transfer.