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

Model the cosmological parameters. Omega_m, Omega_lambda, Omega_k and hubble_constant. Guarantee that the sum of the Omegas is 1. More...

#include <CosmologicalParameters.h>

Public Member Functions

 CosmologicalParameters (double omega_m=0.3089, double omega_lambda=0.6911, double hubble_constant=67.74)
 Constructor taking the cosmologycal parameters.
 
virtual ~CosmologicalParameters ()=default
 
double getOmegaM () const
 Get Omega matter for the cosmology.
 
double getOmegaLambda () const
 Get Omega Lambda for the cosmology.
 
double getOmegaK () const
 Get the Omega curvature (computed as 1 - Omega_m - Omega_L) for the cosmology.
 
double getHubbleConstant () const
 Get the Hubble constant H_0 in (km/s)/Mpc.
 

Private Attributes

double m_omega_m
 
double m_omega_lambda
 
double m_omega_k
 
double m_H_0
 

Detailed Description

Model the cosmological parameters. Omega_m, Omega_lambda, Omega_k and hubble_constant. Guarantee that the sum of the Omegas is 1.

Definition at line 38 of file CosmologicalParameters.h.

Constructor & Destructor Documentation

◆ CosmologicalParameters()

Euclid::PhysicsUtils::CosmologicalParameters::CosmologicalParameters ( double  omega_m = 0.3089,
double  omega_lambda = 0.6911,
double  hubble_constant = 67.74 
)

Constructor taking the cosmologycal parameters.

Parameters
omega_mOmega Matter
omega_lambdaOmega Lambda
hubble_constantH_0 in (km/s)/Mpc

Definition at line 30 of file CosmologicalParameters.cpp.

◆ ~CosmologicalParameters()

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

Member Function Documentation

◆ getHubbleConstant()

double Euclid::PhysicsUtils::CosmologicalParameters::getHubbleConstant ( ) const

Get the Hubble constant H_0 in (km/s)/Mpc.

Definition at line 48 of file CosmologicalParameters.cpp.

References m_H_0.

Referenced by Euclid::PhysicsUtils::CosmologicalDistances::hubbleDistance().

◆ getOmegaK()

double Euclid::PhysicsUtils::CosmologicalParameters::getOmegaK ( ) const

Get the Omega curvature (computed as 1 - Omega_m - Omega_L) for the cosmology.

Definition at line 44 of file CosmologicalParameters.cpp.

References m_omega_k.

Referenced by Euclid::PhysicsUtils::CosmologicalDistances::hubbleParameter(), and Euclid::PhysicsUtils::CosmologicalDistances::transverseComovingDistance().

◆ getOmegaLambda()

double Euclid::PhysicsUtils::CosmologicalParameters::getOmegaLambda ( ) const

Get Omega Lambda for the cosmology.

Definition at line 40 of file CosmologicalParameters.cpp.

References m_omega_lambda.

Referenced by Euclid::PhysicsUtils::CosmologicalDistances::hubbleParameter().

◆ getOmegaM()

double Euclid::PhysicsUtils::CosmologicalParameters::getOmegaM ( ) const

Get Omega matter for the cosmology.

Definition at line 36 of file CosmologicalParameters.cpp.

References m_omega_m.

Referenced by Euclid::PhysicsUtils::CosmologicalDistances::hubbleParameter().

Member Data Documentation

◆ m_H_0

double Euclid::PhysicsUtils::CosmologicalParameters::m_H_0
private

Definition at line 80 of file CosmologicalParameters.h.

Referenced by getHubbleConstant().

◆ m_omega_k

double Euclid::PhysicsUtils::CosmologicalParameters::m_omega_k
private

Definition at line 79 of file CosmologicalParameters.h.

Referenced by getOmegaK().

◆ m_omega_lambda

double Euclid::PhysicsUtils::CosmologicalParameters::m_omega_lambda
private

Definition at line 78 of file CosmologicalParameters.h.

Referenced by getOmegaLambda().

◆ m_omega_m

double Euclid::PhysicsUtils::CosmologicalParameters::m_omega_m
private

Definition at line 77 of file CosmologicalParameters.h.

Referenced by getOmegaM().


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