#include <CubicalBackgroundSource.hpp>
Public Member Functions | |
double | edgeLength () const |
int | intrinsicDimension () const override |
void | launchSpecialty (PhotonPacket *pp, size_t historyIndex, double lambda, double Lw, VelocityInterface *bvi) const override |
![]() | |
double | centerX () const |
double | centerY () const |
double | centerZ () const |
int | geometryDimension () const override |
virtual int | intrinsicDimension () const =0 |
![]() | |
int | dimension () const override |
virtual int | geometryDimension () const =0 |
bool | hasVelocity () const override |
void | launchNormalized (PhotonPacket *pp, size_t historyIndex, double lambda, double Lw) const override |
virtual void | launchSpecialty (PhotonPacket *pp, size_t historyIndex, double lambda, double Lw, VelocityInterface *bvi) const =0 |
Vec | velocity () const override |
double | velocityX () const |
double | velocityY () const |
double | velocityZ () const |
![]() | |
void | launch (PhotonPacket *pp, size_t historyIndex, double L) const override |
virtual void | launchNormalized (PhotonPacket *pp, size_t historyIndex, double lambda, double Lw) const =0 |
double | luminosity () const override |
LuminosityNormalization * | normalization () const |
SED * | sed () const |
double | specificLuminosity (double wavelength) const override |
Range | wavelengthRange () const override |
![]() | |
virtual int | dimension () const =0 |
virtual bool | hasVelocity () const =0 |
virtual void | launch (PhotonPacket *pp, size_t historyIndex, double L) const =0 |
virtual double | luminosity () const =0 |
virtual void | prepareForLaunch (double sourceBias, size_t firstIndex, size_t numIndices) |
double | sourceWeight () const |
virtual double | specificLuminosity (double wavelength) const =0 |
double | wavelengthBias () const |
WavelengthDistribution * | wavelengthBiasDistribution () const |
![]() | |
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 |
![]() | |
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 Item * | getItemProperty (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) |
Item & | operator= (const Item &)=delete |
Item * | parent () 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 |
![]() | |
virtual | ~WavelengthRangeInterface () |
virtual Range | wavelengthRange () const =0 |
![]() | |
virtual | ~VelocityInterface () |
virtual Vec | velocity () const =0 |
Protected Member Functions | |
CubicalBackgroundSource () | |
![]() | |
CenteredSource () | |
![]() | |
SpecialtySource () | |
void | setupSelfBefore () override |
![]() | |
NormalizedSource () | |
void | setupSelfAfter () override |
void | setupSelfBefore () override |
![]() | |
Source () | |
void | informAvailableWavelengthRange (Range available, string itemType) |
Random * | random () const |
void | setupSelfBefore () override |
![]() | |
SimulationItem () | |
virtual bool | offersInterface (const std::type_info &interfaceTypeInfo) const |
virtual void | setupSelfAfter () |
virtual void | setupSelfBefore () |
![]() | |
Item () | |
![]() | |
SourceWavelengthRangeInterface () | |
![]() | |
WavelengthRangeInterface () | |
![]() | |
VelocityInterface () | |
Private Types | |
using | BaseType = CenteredSource |
using | ItemType = CubicalBackgroundSource |
Private Attributes | |
double | _edgeLength |
Friends | |
class | ItemRegistry |
The CubicalBackgroundSource class represents the surface of a cube (i.e. the combination of the six walls) from which radiation escapes in the inward direction. The emissivity is anisotropic: there is no radiation outwards and the inward emissivity from each wall is proportional to
When an item of this type is used, the names provided by the conditional value expression "Dimension3" are inserted into the name sets used for evaluating Boolean expressions.
|
inlineprotected |
Default constructor for concrete Item subclass CubicalBackgroundSource : "a cubical background source with an anisotropic inward radiation field" .
|
inline |
This function returns the value of the discoverable double property edgeLength : "the edge length of the background cube" .
This property represents a physical quantity of type "length" .
The minimum value for this property is "]0" .
|
overridevirtual |
This function returns the intrinsic dimension of the geometry, which is 3 in this case.
Implements CenteredSource.
|
overridevirtual |
This function causes the photon packet pp to be launched from the source using the given history index, wavelength, weighted luminosity contribution, and redshift interface (corresponding to the bulk velocity of the source).
Firstly, the function generates a random inward launch position
Secondly, the function generates a random direction
In a spherical coordinate system with the Z' axis normal to the surface at the position
Random angles
for
Once these values have been determined, we need to rotate such that the Z' axis is perpendicular to the wall corresponding to the position
Thirdly, the function sets up a thread-local object that serves the angular distribution interface for a particular launch position. Configured with the appropriate launch wall normal
The local angular distribution object implements a function that returns the normalized probability for a direction
Here
This distribution is correctly normalized in the sense that
Finally, the function launches the photon packet, passing it all of the above information.
Implements SpecialtySource.