Alexandria 2.31.0
SDC-CH common library for the Euclid project
Loading...
Searching...
No Matches
Public Member Functions | List of all members
Euclid::PhysicsUtils::CosmologicalDistances Class Reference

#include <CosmologicalDistances.h>

Public Member Functions

virtual ~CosmologicalDistances ()=default
 
double hubbleDistance (const CosmologicalParameters &parameters) const
 Get the computed Hubble distance for the cosmology.
 
double hubbleParameter (double z, const CosmologicalParameters &parameters) const
 Returns the (unit-less) Hubble parameter E(z)
 
double 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%.
 
double transverseComovingDistance (double z, const CosmologicalParameters &parameters) const
 return the transverse comoving distance in [pc]
 
double luminousDistance (double z, const CosmologicalParameters &parameters) const
 return the luminous distance in [pc]. For z=0 the returned value is 10pc.
 
double distanceModulus (double z, const CosmologicalParameters &parameters) const
 return the correction for the Magnitude due to the distance: DM =5*log_10(DL/10pc)
 
double dimensionlessComovingVolumeElement (double z, const CosmologicalParameters &parameters) const
 return the dimensionless comoving volume element.
 

Detailed Description

Definition at line 38 of file CosmologicalDistances.h.

Constructor & Destructor Documentation

◆ ~CosmologicalDistances()

virtual Euclid::PhysicsUtils::CosmologicalDistances::~CosmologicalDistances ( )
virtualdefault

Member Function Documentation

◆ comovingDistance()

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%.

Parameters
zThe redshift for which the distance has to be computed.
parametersThe cosmological parameters the distance has to be computed for.
relative_precisionThe requested precision.

Definition at line 49 of file CosmologicalDistances.cpp.

References hubbleDistance(), hubbleParameter(), Euclid::MathUtils::SimpsonsRule::minimal_order, and std::move().

Referenced by transverseComovingDistance().

Here is the call graph for this function:

◆ dimensionlessComovingVolumeElement()

double Euclid::PhysicsUtils::CosmologicalDistances::dimensionlessComovingVolumeElement ( double  z,
const CosmologicalParameters parameters 
) const

return the dimensionless comoving volume element.

Parameters
zThe redshift for which the volume element has to be computed.
parametersThe cosmological parameters the distance has to be computed for.

Definition at line 91 of file CosmologicalDistances.cpp.

References hubbleDistance(), hubbleParameter(), and transverseComovingDistance().

Here is the call graph for this function:

◆ distanceModulus()

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)

Parameters
zThe redshift for which the distance modulus has to be computed.
parametersThe cosmological parameters the distance has to be computed for.

Definition at line 87 of file CosmologicalDistances.cpp.

References std::log10(), and luminousDistance().

Here is the call graph for this function:

◆ hubbleDistance()

double Euclid::PhysicsUtils::CosmologicalDistances::hubbleDistance ( const CosmologicalParameters parameters) const

Get the computed Hubble distance for the cosmology.

Parameters
parametersThe cosmological parameters the distance has to be computed for.
Returns
the Hubble distance in [pc]

Definition at line 39 of file CosmologicalDistances.cpp.

References Euclid::PhysicsUtils::CosmologicalParameters::getHubbleConstant().

Referenced by comovingDistance(), dimensionlessComovingVolumeElement(), and transverseComovingDistance().

Here is the call graph for this function:

◆ hubbleParameter()

double Euclid::PhysicsUtils::CosmologicalDistances::hubbleParameter ( double  z,
const CosmologicalParameters parameters 
) const

Returns the (unit-less) Hubble parameter E(z)

Parameters
zThe redshift for which the distance has to be computed.
parametersThe 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().

Here is the call graph for this function:

◆ luminousDistance()

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.

Parameters
zThe redshift for which the distance has to be computed.
parametersThe cosmological parameters the distance has to be computed for.

Definition at line 79 of file CosmologicalDistances.cpp.

References transverseComovingDistance().

Referenced by distanceModulus().

Here is the call graph for this function:

◆ transverseComovingDistance()

double Euclid::PhysicsUtils::CosmologicalDistances::transverseComovingDistance ( double  z,
const CosmologicalParameters parameters 
) const

return the transverse comoving distance in [pc]

Parameters
zThe redshift for which the distance has to be computed.
parametersThe 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().

Here is the call graph for this function:

The documentation for this class was generated from the following files: