Alexandria
2.14.1
Please provide a description of the project.
|
Go to the documentation of this file.
37 namespace PhysicsUtils {
45 double square = (1. + z) * (1. + z);
46 double cube = square * (1. + z);
63 [¶meters,
this](
double x) {
return 1./
hubbleParameter(x,parameters);});
81 return dHOverSqrtOmegaK *
std::sinh(comoving / dHOverSqrtOmegaK);
83 return dHOverSqrtOmegaK *
std::sin(comoving / dHOverSqrtOmegaK);
107 return D_M*D_M/(E*D_H*D_H);
double getOmegaM() const
Get Omega matter for the cosmology.
bool isEqual(const RawType &left, const RawType &right)
double getHubbleConstant() const
Get the Hubble constant H_0 in (km/s)/Mpc.
double transverseComovingDistance(double z, const CosmologicalParameters ¶meters) const
return the transverse comoving distance in [pc]
double dimensionlessComovingVolumeElement(double z, const CosmologicalParameters ¶meters) const
return the dimensionless comoving volume element.
ELEMENTS_API double integrate(const Function &function, const double min, const double max, std::unique_ptr< NumericalIntegrationScheme > numericalIntegrationScheme=nullptr)
double hubbleDistance(const CosmologicalParameters ¶meters) const
Get the computed Hubble distance for the cosmology.
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 luminousDistance(double z, const CosmologicalParameters ¶meters) const
return the luminous distance in [pc]. For z=0 the returned value is 10pc.
Adapt a std::function<double(double)> to the Function Interface.
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....
Class implementing the NumericalIntegrationScheme interface.
double hubbleParameter(double z, const CosmologicalParameters ¶meters) const
Returns the (unit-less) Hubble parameter E(z)
double getOmegaK() const
Get the Omega curvature (computed as 1 - Omega_m - Omega_L) for the cosmology.
double getOmegaLambda() const
Get Omega Lambda for the cosmology.
Model the cosmological parameters. Omega_m, Omega_lambda, Omega_k and hubble_constant....
const static int minimal_order