|
Alexandria
2.27.0
SDC-CH common library for the Euclid project
|
#include <CosmologicalDistances.h>
Public Member Functions | |
| virtual | ~CosmologicalDistances ()=default |
| double | hubbleDistance (const CosmologicalParameters ¶meters) const |
| Get the computed Hubble distance for the cosmology. More... | |
| double | hubbleParameter (double z, const CosmologicalParameters ¶meters) const |
| Returns the (unit-less) Hubble parameter E(z) More... | |
| double | comovingDistance (double z, const CosmologicalParameters ¶meters, double relative_precision=0.0000001) const |
| return the comoving distance in [pc]. This value is obtained through a numerical integration. The relative precision of the integration can be specified and is defaulted to 0.00001%. More... | |
| double | transverseComovingDistance (double z, const CosmologicalParameters ¶meters) const |
| return the transverse comoving distance in [pc] More... | |
| double | luminousDistance (double z, const CosmologicalParameters ¶meters) const |
| return the luminous distance in [pc]. For z=0 the returned value is 10pc. More... | |
| double | distanceModulus (double z, const CosmologicalParameters ¶meters) const |
| return the correction for the Magnitude due to the distance: DM =5*log_10(DL/10pc) More... | |
| double | dimensionlessComovingVolumeElement (double z, const CosmologicalParameters ¶meters) const |
| return the dimensionless comoving volume element. More... | |
Definition at line 38 of file CosmologicalDistances.h.
|
virtualdefault |
| double Euclid::PhysicsUtils::CosmologicalDistances::comovingDistance | ( | double | z, |
| const CosmologicalParameters & | parameters, | ||
| double | relative_precision = 0.0000001 |
||
| ) | const |
return the comoving distance in [pc]. This value is obtained through a numerical integration. The relative precision of the integration can be specified and is defaulted to 0.00001%.
| z | The redshift for which the distance has to be computed. |
| parameters | The cosmological parameters the distance has to be computed for. |
| relative_precision | The requested precision. |
Definition at line 49 of file CosmologicalDistances.cpp.
References hubbleDistance(), hubbleParameter(), Euclid::MathUtils::integrate(), Elements::isEqual(), Euclid::MathUtils::SimpsonsRule::minimal_order, and std::move().
Referenced by transverseComovingDistance().

| double Euclid::PhysicsUtils::CosmologicalDistances::dimensionlessComovingVolumeElement | ( | double | z, |
| const CosmologicalParameters & | parameters | ||
| ) | const |
return the dimensionless comoving volume element.
| z | The redshift for which the volume element has to be computed. |
| parameters | The cosmological parameters the distance has to be computed for. |
Definition at line 91 of file CosmologicalDistances.cpp.
References hubbleDistance(), hubbleParameter(), and transverseComovingDistance().

| double Euclid::PhysicsUtils::CosmologicalDistances::distanceModulus | ( | double | z, |
| const CosmologicalParameters & | parameters | ||
| ) | const |
return the correction for the Magnitude due to the distance: DM =5*log_10(DL/10pc)
| z | The redshift for which the distance modulus has to be computed. |
| parameters | The cosmological parameters the distance has to be computed for. |
Definition at line 87 of file CosmologicalDistances.cpp.
References std::log10(), and luminousDistance().

| double Euclid::PhysicsUtils::CosmologicalDistances::hubbleDistance | ( | const CosmologicalParameters & | parameters | ) | const |
Get the computed Hubble distance for the cosmology.
| parameters | The cosmological parameters the distance has to be computed for. |
Definition at line 39 of file CosmologicalDistances.cpp.
References Euclid::PhysicsUtils::CosmologicalParameters::getHubbleConstant().
Referenced by comovingDistance(), dimensionlessComovingVolumeElement(), and transverseComovingDistance().

| double Euclid::PhysicsUtils::CosmologicalDistances::hubbleParameter | ( | double | z, |
| const CosmologicalParameters & | parameters | ||
| ) | const |
Returns the (unit-less) Hubble parameter E(z)
| z | The redshift for which the distance has to be computed. |
| parameters | The cosmological parameters the distance has to be computed for. |
Definition at line 43 of file CosmologicalDistances.cpp.
References Euclid::PhysicsUtils::CosmologicalParameters::getOmegaK(), Euclid::PhysicsUtils::CosmologicalParameters::getOmegaLambda(), Euclid::PhysicsUtils::CosmologicalParameters::getOmegaM(), and std::sqrt().
Referenced by comovingDistance(), and dimensionlessComovingVolumeElement().

| double Euclid::PhysicsUtils::CosmologicalDistances::luminousDistance | ( | double | z, |
| const CosmologicalParameters & | parameters | ||
| ) | const |
return the luminous distance in [pc]. For z=0 the returned value is 10pc.
| z | The redshift for which the distance has to be computed. |
| parameters | The cosmological parameters the distance has to be computed for. |
Definition at line 79 of file CosmologicalDistances.cpp.
References Elements::isEqual(), and transverseComovingDistance().
Referenced by distanceModulus().

| double Euclid::PhysicsUtils::CosmologicalDistances::transverseComovingDistance | ( | double | z, |
| const CosmologicalParameters & | parameters | ||
| ) | const |
return the transverse comoving distance in [pc]
| z | The redshift for which the distance has to be computed. |
| parameters | The cosmological parameters the distance has to be computed for. |
Definition at line 64 of file CosmologicalDistances.cpp.
References comovingDistance(), Euclid::PhysicsUtils::CosmologicalParameters::getOmegaK(), hubbleDistance(), Elements::isEqual(), std::sin(), std::sinh(), and std::sqrt().
Referenced by dimensionlessComovingVolumeElement(), and luminousDistance().

1.8.5