Skip to content

Commit

Permalink
Fix naming convention to "PascalCase". Fixed some "[i]" -> ".at[i]"
Browse files Browse the repository at this point in the history
  • Loading branch information
vollous committed Apr 24, 2024
1 parent 7b9e0fc commit f74543b
Show file tree
Hide file tree
Showing 8 changed files with 231 additions and 341 deletions.
57 changes: 18 additions & 39 deletions include/BSMPT/bounce_solution/action_calculation.h
Original file line number Diff line number Diff line change
Expand Up @@ -44,11 +44,11 @@ class BounceActionInt
/**
* @brief Records if overshoot/undershoot method undershots at least once
*/
bool undershot_once = false;
bool UndershotOnce = false;
/**
* @brief Records if overshoot/undershoot method overshots at least once
*/
bool overshot_once = false;
bool OvershotOnce = false;

/**
* @brief Value of d2Vdl^2 near the true vacuum
Expand All @@ -73,7 +73,7 @@ class BounceActionInt
* @brief l0 - Initial_lmin for solutions starting very near the true vacuum
*
*/
double l0_Initial_lmin;
double l0Initiallmin;

/**
* @brief True if path deformation reached the desired results without solving
Expand Down Expand Up @@ -104,7 +104,7 @@ class BounceActionInt
* * = -9 if the solution does not have enough points to populate the \f$
* l(\rho) \f$ spline
*/
enum action_status
enum ActionStatus
{
not_calculated = -1,
integration_1d_failed = -2,
Expand All @@ -121,7 +121,7 @@ class BounceActionInt
* @brief either returns a action_status or the value of the action
*
*/
double action = not_calculated;
double Action = not_calculated;

/**
* @brief Factor produced by the spherical symmetry of the potential.
Expand All @@ -131,7 +131,7 @@ class BounceActionInt
* Default value is \f$ 2 \f$ since most of our calculation are done at finite
* temperature.
*/
double alpha = 2; // alpha = 2 if T > 0 | alpha = 3 if T = 0
double Alpha = 2; // alpha = 2 if T > 0 | alpha = 3 if T = 0

/**
* @brief Temperature of the potential. Irrelevant but helpful
Expand Down Expand Up @@ -173,12 +173,12 @@ class BounceActionInt
* @brief Records if 1D profile converged or not
*
*/
int convS3 = -1; // Did 1D profile converged or not?
int ConvS3 = -1; // Did 1D profile converged or not?
/**
* @brief Records if path deformation converged or not
*
*/
int convPathDeformation = -1;
int ConvPathDeformation = -1;
/**
* @brief Number of basis function that are used + 1
*
Expand Down Expand Up @@ -223,23 +223,23 @@ class BounceActionInt
* @brief First path given to class
*
*/
std::vector<std::vector<double>> init_path; // Initial path given to class
std::vector<std::vector<double>> InitPath; // Initial path given to class
/**
* @brief Current class path, can be changed by @ref PathDeformation
*
*/
std::vector<std::vector<double>> path; // Initial path given to class
std::vector<std::vector<double>> Path; // Initial path given to class
/**
* @brief We describe the tunneling path using a cubid spline.
* The parameterization is the length along the spline.
*
*/
cvspline::cvspline spline; // Constant velocity spline object
cvspline::cvspline Spline; // Constant velocity spline object
/**
* @brief Spline used to save \f$ \frac{dV}{dl} \f$
*
*/
tk::spline rasterizedVdl; // RasterizeddVdl
tk::spline RasterizeddVdl; // RasterizeddVdl

/**
* @brief Construct a new Bounce Action Int object
Expand All @@ -251,7 +251,7 @@ class BounceActionInt
* @param dV is the class gradient
*/
BounceActionInt(
std::vector<std::vector<double>> init_path_In,
std::vector<std::vector<double>> InitPath_In,
std::vector<double> TrueVacuum_In,
std::vector<double> FalseVacuum_In,
std::function<double(std::vector<double>)> &V_In,
Expand All @@ -267,7 +267,7 @@ class BounceActionInt
* @param FalseVacuumIn is the false vacuum
* @param V is the class potential
*/
BounceActionInt(std::vector<std::vector<double>> init_path_In,
BounceActionInt(std::vector<std::vector<double>> InitPath_In,
std::vector<double> TrueVacuum_In,
std::vector<double> FalseVacuum_In,
std::function<double(std::vector<double>)> &V_In,
Expand All @@ -279,7 +279,7 @@ class BounceActionInt
*
* @param init_path Knots that are used to describe the path
*/
void setPath(std::vector<std::vector<double>> init_path_In);
void SetPath(std::vector<std::vector<double>> InitPath_In);

/**
* @brief Precalculates dVdl and creates a spline with the result.
Expand All @@ -288,7 +288,7 @@ class BounceActionInt
* * @param l_start is the starting position produced in the
* backwardspropagation part
*/
void rasterize_dVdl(double l_start = 0);
void RasterizedVdl(double l_start = 0);

/**
* @brief Prints a vector
Expand Down Expand Up @@ -420,27 +420,6 @@ class BounceActionInt
*/
static int IndexMaximumAbsolute(std::vector<double> x);

/**
* @brief Calculates the classic BSMPT tunneling path
*
* Start with a straight line between @ref TrueVacuum and @ref FalseVacuum and
* divide it into \f$ n \f$ base points \f$ \vec{b}_i \f$.
*
* At each basepoint \f$ \vec{b}_i \f$ draw a plane perpendicular to the
* straight line path, i.e. the normal is TrueVacuum - FalseVacuum, and find
* the potential minimum on that plane.
*
* @return std::vector<std::vector<double>> the classic BSMPT tunneling path
*/
std::vector<std::vector<double>> BSMPTApproximateTunnelingPath();

/**
* @brief Calculates the classic BSMPT tunneling path using @ref
* BSMPTApproximateTunnelingPath and sets the spline @ref path to it.
*
*/
void setBSMPTApproximateTunnelingPath();

/**
* @brief Auxiliary finction to compute the transpose of a matrix
*
Expand All @@ -449,7 +428,7 @@ class BounceActionInt
* matrix.
*/
std::vector<std::vector<double>>
transpose(std::vector<std::vector<double>> &A);
Transpose(std::vector<std::vector<double>> &A);

/**
* @brief Calculated the normal force \f$ \vec{N} \f$ on a @ref spline point.
Expand Down Expand Up @@ -668,7 +647,7 @@ class BounceActionInt
* @param MaximumGradient
* @return double
*/
double reductorCalculator(const double &MaximumGradient);
double ReductorCalculator(const double &MaximumGradient);

/**
* @brief Check if the force in each point is sufficient small compared to the
Expand Down
4 changes: 2 additions & 2 deletions include/BSMPT/bounce_solution/bounce_solution.h
Original file line number Diff line number Diff line change
Expand Up @@ -178,12 +178,12 @@ class BounceSolution
* false to true vacuum
* @param Temp temperature
*/
double Tunneling_Rate(const double &Temp);
double TunnelingRate(const double &Temp);
/**
* @brief Storage of the temperature-dependent Hubble rate
* @param Temp temperature
*/
double Hubble_Rate(const double &Temp);
double HubbleRate(const double &Temp);

/**
* @brief inner_integrand friend to define inner integrand of percolation
Expand Down
Loading

0 comments on commit f74543b

Please sign in to comment.