The SKIRT project
advanced radiative transfer for astrophysics
MassInBoxInterface Class Referenceabstract

#include <MassInBoxInterface.hpp>

Inheritance diagram for MassInBoxInterface:

Public Member Functions

virtual ~MassInBoxInterface ()
virtual double massInBox (const Box &box) const =0
virtual double numberInBox (const Box &box) const =0

Protected Member Functions

 MassInBoxInterface ()

Detailed Description

MassInBoxInterface is a pure interface implemented by medium components that are capable of efficiently and accurately calculating the medium mass in a given axis-aligned bounding box (without random sampling).

Constructor & Destructor Documentation

◆ MassInBoxInterface()

MassInBoxInterface::MassInBoxInterface ( )
inlineprotected

The empty constructor for the interface.

◆ ~MassInBoxInterface()

virtual MassInBoxInterface::~MassInBoxInterface ( )
inlinevirtual

The empty destructor for the interface.

Member Function Documentation

◆ massInBox()

virtual double MassInBoxInterface::massInBox ( const Box & box) const
pure virtual

This function returns the mass for the medium component in the specified axis-aligned bounding box.

Implemented in ParticleMedium.

◆ numberInBox()

virtual double MassInBoxInterface::numberInBox ( const Box & box) const
pure virtual

This function returns the volume-integrated number density for the medium component in the specified axis-aligned bounding box.

Implemented in ParticleMedium.


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