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