#include <FlatUniverseCosmology.hpp>
Public Member Functions | |
double | angularDiameterDistance () const override |
double | luminosityDistance () const override |
double | matterDensityFraction () const |
double | modelRedshift () const override |
double | redshift () const |
double | reducedHubbleConstant () const |
double | relativeExpansionRate () const override |
virtual double | angularDiameterDistance () const =0 |
virtual double | luminosityDistance () const =0 |
virtual double | modelRedshift () const =0 |
virtual double | relativeExpansionRate () const =0 |
![]() | |
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 |
Protected Member Functions | |
FlatUniverseCosmology () | |
![]() | |
Cosmology () | |
![]() | |
SimulationItem () | |
virtual bool | offersInterface (const std::type_info &interfaceTypeInfo) const |
virtual void | setupSelfAfter () |
virtual void | setupSelfBefore () |
![]() | |
Item () | |
Private Types | |
using | BaseType = Cosmology |
using | ItemType = FlatUniverseCosmology |
Private Attributes | |
double | _matterDensityFraction |
double | _redshift |
double | _reducedHubbleConstant |
Friends | |
class | ItemRegistry |
An instance of the FlatUniverseCosmology class represents a cosmology where the simulated model resides at a given redshift
In addition to the redshift, this cosmology has two parameters, namely the reduced Hubble constant
For a spatially-flat cosmology, the line-of-sight and transverse comoving distances are identical. We further ignore the radiation density, which is justified for the allowed redshift range
where
The angular-diameter distance
and
Finally, the relative expansion rate of the universe
|
inlineprotected |
Default constructor for concrete Item subclass FlatUniverseCosmology : "the model is at a given redshift in a flat universe" .
When a value is entered for this property, the names provided by the conditional value expression "redshift:NonZeroRedshift" are inserted into the name sets used for evaluating Boolean expressions.
|
overridevirtual |
This function returns the angular-diameter distance
Implements Cosmology.
|
overridevirtual |
This function returns the luminosity distance. For this class, calculated from the user-configured cosmology parameters as described in the class header. The integral is evaluated numerically. We don't worry about performance because this function is called just once during simulation setup.
Implements Cosmology.
|
inline |
This function returns the value of the discoverable double property matterDensityFraction : "the cosmological matter density fraction Ω_m" .
The minimum value for this property is "0.1" .
The maximum value for this property is "0.9" .
The default value for this property is given by the conditional value expression "0.310" .
This property is relevant only if the Boolean expression "redshift" evaluates to true after replacing the names by true or false depending on their presence.
|
overridevirtual |
This function returns the redshift at which the model resides.
Implements Cosmology.
|
inline |
This function returns the value of the discoverable double property redshift : "the redshift z of the model coordinate frame" .
The minimum value for this property is "[0" .
The maximum value for this property is "15]" .
The default value for this property is given by the conditional value expression "1" .
|
inline |
This function returns the value of the discoverable double property reducedHubbleConstant : "the reduced Hubble constant h" .
The minimum value for this property is "0.3" .
The maximum value for this property is "1" .
The default value for this property is given by the conditional value expression "0.675" .
This property is relevant only if the Boolean expression "redshift" evaluates to true after replacing the names by true or false depending on their presence.
|
overridevirtual |
This function returns the relative expansion rate of the universe,
Implements Cosmology.