Alexandria 2.31.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. | |
double | hubbleParameter (double z, const CosmologicalParameters ¶meters) const |
Returns the (unit-less) Hubble parameter E(z) | |
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%. | |
double | transverseComovingDistance (double z, const CosmologicalParameters ¶meters) const |
return the transverse comoving distance in [pc] | |
double | luminousDistance (double z, const CosmologicalParameters ¶meters) const |
return the luminous distance in [pc]. For z=0 the returned value is 10pc. | |
double | distanceModulus (double z, const CosmologicalParameters ¶meters) const |
return the correction for the Magnitude due to the distance: DM =5*log_10(DL/10pc) | |
double | dimensionlessComovingVolumeElement (double z, const CosmologicalParameters ¶meters) const |
return the dimensionless comoving volume element. | |
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::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 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(), std::sin(), std::sinh(), and std::sqrt().
Referenced by dimensionlessComovingVolumeElement(), and luminousDistance().