CLASSpp Manual
Cosmology reference and developer manual
Loading...
Searching...
No Matches
scalar_field_potential.h
1#pragma once
2#include <functional>
3#include <string>
4#include <utility>
5#include <vector>
6
15 std::function<double(double phi, const std::vector<double>& params)> V;
16 std::function<double(double phi, const std::vector<double>& params)> dV;
17 std::function<double(double phi, const std::vector<double>& params)> ddV;
18
19 // Returns {xguess, dxdy} for params[tuning_index] given the target Omega0_scf
20 // and H0. The shooting guess is potential-specific (e.g. the frozen-field 1EXP
21 // V0 guess differs from the exponential-quintessence lambda guess), so it lives
22 // with V/dV/ddV. ScalarFieldSpecies::ComputeShootingGuess just delegates here.
23 std::function<std::pair<double, double>(double omega0_scf,
24 double H0,
25 const std::vector<double>& params,
26 int tuning_index)>
27 shooting_guess;
28
29 // What params holds, for the verbose background details.
30 std::string parameter_names;
31};
32
35ScalarFieldPotential DefaultScalarFieldPotential();
36
41ScalarFieldPotential AxionScalarFieldPotential();
Definition scalar_field_potential.h:14