BubbleProfiler  0.3.0
by Peter Athron, Csaba Balazs, Michael Bardsley, Andrew Fowlie, Dylan Harries & Graham White
euclidean_action.hpp
Go to the documentation of this file.
1 /*
2  * This file is part of BubbleProfiler.
3  *
4  * BubbleProfiler is free software: you can redistribute it and/or modify
5  * it under the terms of the GNU General Public License as published by
6  * the Free Software Foundation, either version 3 of the License, or
7  * (at your option) any later version.
8  *
9  * BubbleProfiler is distributed in the hope that it will be useful,
10  * but WITHOUT ANY WARRANTY; without even the implied warranty of
11  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
12  * GNU General Public License for more details.
13  *
14  * You should have received a copy of the GNU General Public License
15  * along with BubbleProfiler. If not, see <http://www.gnu.org/licenses/>.
16  */
17 
18 #ifndef BUBBLEPROFILER_EUCLIDEAN_ACTION_HPP_INCLUDED
19 #define BUBBLEPROFILER_EUCLIDEAN_ACTION_HPP_INCLUDED
20 
26 #include "integration_utils.hpp"
27 
28 namespace BubbleProfiler {
29 
30 class Potential;
31 class Field_profiles;
32 
46 double calculate_kinetic_action(const Potential& potential,
47  const Field_profiles& profiles,
48  std::size_t max_intervals = 1000,
49  double rel_tol = 1.e-4,
50  double abs_tol = 1.e-4,
52 
66 double calculate_potential_action(const Potential& potential,
67  const Field_profiles& profiles,
68  std::size_t max_intervals = 1000,
69  double rel_tol = 1.e-4,
70  double abs_tol = 1.e-4,
72 
73 
87 double calculate_full_action(const Potential& potential,
88  const Field_profiles& profiles,
89  std::size_t max_intervals = 1000,
90  double rel_tol = 1.e-4,
91  double abs_tol = 1.e-4,
93 
109 double calculate_action(const Potential& potential,
110  const Field_profiles& profiles,
111  std::size_t max_intervals = 1000,
112  double rel_tol = 1.e-4,
113  double abs_tol = 1.e-4,
115  bool use_kinetic = true);
116 
117 } // namespace BubbleProfiler
118 
119 #endif
double calculate_potential_action(const Potential &potential, const Field_profiles &profiles, std::size_t max_intervals=1000, double rel_tol=1.e-4, double abs_tol=1.e-4, Integration_rule rule=Integration_rule::GK31)
Calculates the action using only the potential term contributions.
double calculate_kinetic_action(const Potential &potential, const Field_profiles &profiles, std::size_t max_intervals=1000, double rel_tol=1.e-4, double abs_tol=1.e-4, Integration_rule rule=Integration_rule::GK31)
Calculates the action using only the kinetic term contributions.
double calculate_full_action(const Potential &potential, const Field_profiles &profiles, std::size_t max_intervals=1000, double rel_tol=1.e-4, double abs_tol=1.e-4, Integration_rule rule=Integration_rule::GK31)
Calculates the action using all terms in the action integrand.
double calculate_action(const Potential &potential, const Field_profiles &profiles, std::size_t max_intervals=1000, double rel_tol=1.e-4, double abs_tol=1.e-4, Integration_rule rule=Integration_rule::GK31, bool use_kinetic=true)
Calculates the action using either the kinetic or potential terms.