#include <ParticleSource.hpp>
Public Member Functions | |
SmoothingKernel * | smoothingKernel () const |
![]() | |
int | dimension () const override |
string | filename () const |
bool | hasVelocity () const override |
bool | importBias () const |
bool | importCurrentMass () const |
bool | importVelocity () const |
bool | importVelocityDispersion () const |
void | launch (PhotonPacket *pp, size_t historyIndex, double L) const override |
double | luminosity () const override |
double | meanSpecificLuminosity (const Band *band, int m) const |
double | meanSpecificLuminosity (Range wavelengthRange, int m) const |
void | prepareForLaunch (double sourceBias, size_t firstIndex, size_t numIndices) override |
SEDFamily * | sedFamily () const |
const Snapshot * | snapshot () const |
double | specificLuminosity (double wavelength) const override |
double | specificLuminosity (double wavelength, int m) const |
string | useColumns () const |
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 |
Protected Member Functions | |
ParticleSource () | |
Snapshot * | createAndOpenSnapshot () override |
![]() | |
ImportedSource () | |
~ImportedSource () | |
virtual Snapshot * | createAndOpenSnapshot ()=0 |
void | setupSelfAfter () 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 () | |
Private Types | |
using | BaseType = ImportedSource |
using | ItemType = ParticleSource |
Private Attributes | |
SmoothingKernel * | _smoothingKernel |
Friends | |
class | ItemRegistry |
A ParticleSource instance represents a primary radiation source with a spatial and spectral luminosity distribution described by a list of smoothed particles. The particle data is usually extracted from a cosmological simulation snapshot, and it must be provided in a column text file formatted as described below.
Refer to the description of the TextInFile class for information on overall formatting and on how to include header lines specifying the units for each column in the input file. In case the input file has no unit specifications, the default units mentioned below are used instead. The number of columns expected in the input file depends on the options configured by the user for this ParticleSource instance, including the selected SEDFamily.
The first three columns are the
The remaining columns specify the parameters required by the configured SED family to select and scale the appropriate SED. For example for the Bruzual-Charlot SED family, the remaining columns provide the initial mass, the metallicity, and the age of the stellar population represented by the particle. Refer to the documentation of the configured type of SEDFamily for information about the expected parameters and their default units.
|
inlineprotected |
Default constructor for concrete Item subclass ParticleSource : "a primary source imported from smoothed particle data" .
|
overrideprotectedvirtual |
This function constructs a new ParticleSnapshot object, calls its open() function, passes the smoothing kernel selected by the user to it, and returns a pointer to the object. Ownership of the Snapshot object is transferred to the caller.
Implements ImportedSource.
|
inline |
This function returns the value of the discoverable item property smoothingKernel : "the kernel for interpolating the smoothed particles" .
The default value for this property is given by the conditional value expression "CubicSplineSmoothingKernel" .
This property is displayed only if the Boolean expression "Level2" evaluates to true after replacing the names by true or false depending on their presence.