BoltzmannSolver
One of the core components of CosmoCentral are the Boltzmann solvers, codes developed by the community that solve the coupled Einstein-Boltzmann equations and used to evaluate the Matter Power Spectrum. Currently, the Boltzmann codes implemented in CosmoCentral are:
- CLASS
We plan to include other Boltzmann solvers in the future.
Power Spectrum
CosmoCentral.PowerSpectrumStruct — TypePowerSpectrumStruct()This struct contains the array with the Linear and Nonlinear Power Spectrum evaluated on the $k-z$ grid and the interpolated Nonlinear Power Spectrum on Limber $k-z$ grid.
CosmoCentral.ComputeLimberArray — FunctionComputeLimberArray(CosmologicalGrid::CosmologicalGrid,
BackgroundQuantities::BackgroundQuantities)This function compute the Limber grid. In the Limber approximation, $k$ and $z$ are related by the following relation:
\[k_\ell(z)=\frac{\ell+1/2}{r(z)}.\]
CosmoCentral.InterpolateAndEvaluatePowerSpectrum — FunctionInterpolateAndEvaluatePowerSpectrum(CosmologicalGrid::CosmologicalGrid,
BackgroundQuantities::BackgroundQuantities, PowerSpectrum::PowerSpectrum,
::InterpolationMethod)This function interpolates the Power Spectrum on the $k-z$ grid and evaluates it on the Limber grid.
CosmoCentral.InterpolationMethod — TypeInterpolationMethodThis type is used to specify the method to interpolate the Power Spectrum; actually are included:
Dierckx.jl, the Julia wrapper for the Fortran library Dierckx
GriddedLinear, from Interpolations.jl
BSpliceCubic (recommended for its speed and accuracy), from Interpolations.jl
classy
classy is the Python wrapper for CLASS.
CosmoCentral.classyParamsStruct — TypeclassyParamsStruct(classyParamsDict::Dict)This struct contains the dictionary with the classy parameters. For a detalied explanation of the parameters, please refer to the CLASS website
CosmoCentral.Initializeclassy — FunctionInitializeclassy(w0waCDMCosmology::w0waCDMCosmology)This function, given a w0waCDMCosmologyStruct, returns the classyParamsStruct correctly initialized.
CosmoCentral.EvaluatePowerSpectrum — FunctionEvaluatePowerSpectrum(classyParams:: classyParamsStruct,
CosmologicalGrid::CosmologicalGrid, PowerSpectrum::PowerSpectrum)This function runs classy to evaluate the Matter Power Spectrum over the $k-z$ grid specified in CosmologicalGridStruct