Alexandria  2.18
Please provide a description of the project.
CosmologicalDistances.h
Go to the documentation of this file.
1 /*
2  * Copyright (C) 2012-2021 Euclid Science Ground Segment
3  *
4  * This library is free software; you can redistribute it and/or modify it under
5  * the terms of the GNU Lesser General Public License as published by the Free
6  * Software Foundation; either version 3.0 of the License, or (at your option)
7  * any later version.
8  *
9  * This library is distributed in the hope that it will be useful, but WITHOUT
10  * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS
11  * FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more
12  * details.
13  *
14  * You should have received a copy of the GNU Lesser General Public License
15  * along with this library; if not, write to the Free Software Foundation, Inc.,
16  * 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
17  */
18 
25 #ifndef PHYSICSUTILS_PHYSICSUTILS_COSMOLOGICALDISTANCES_H_
26 #define PHYSICSUTILS_PHYSICSUTILS_COSMOLOGICALDISTANCES_H_
27 
29 
30 namespace Euclid {
31 namespace PhysicsUtils {
32 
39 public:
40  virtual ~CosmologicalDistances() = default;
41 
49  double hubbleDistance(const CosmologicalParameters& parameters) const;
50 
58  double hubbleParameter(double z, const CosmologicalParameters& parameters) const;
59 
72  double comovingDistance(double z, const CosmologicalParameters& parameters, double relative_precision = 0.0000001) const;
73 
81  double transverseComovingDistance(double z, const CosmologicalParameters& parameters) const;
82 
90  double luminousDistance(double z, const CosmologicalParameters& parameters) const;
91 
100  double distanceModulus(double z, const CosmologicalParameters& parameters) const;
101 
109  double dimensionlessComovingVolumeElement(double z, const CosmologicalParameters& parameters) const;
110 };
111 
112 } // namespace PhysicsUtils
113 } // namespace Euclid
114 #endif /* PHYSICSUTILS_PHYSICSUTILS_COSMOLOGICALDISTANCES_H_ */
double hubbleParameter(double z, const CosmologicalParameters &parameters) const
Returns the (unit-less) Hubble parameter E(z)
double hubbleDistance(const CosmologicalParameters &parameters) const
Get the computed Hubble distance for the cosmology.
double transverseComovingDistance(double z, const CosmologicalParameters &parameters) const
return the transverse comoving distance in [pc]
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....
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 luminousDistance(double z, const CosmologicalParameters &parameters) const
return the luminous distance in [pc]. For z=0 the returned value is 10pc.
double dimensionlessComovingVolumeElement(double z, const CosmologicalParameters &parameters) const
return the dimensionless comoving volume element.
Model the cosmological parameters. Omega_m, Omega_lambda, Omega_k and hubble_constant....