|
BubbleProfiler
0.3.0
by Peter Athron, Csaba Balazs, Michael Bardsley, Andrew Fowlie, Dylan Harries & Graham White
|
#include <restricted_quartic_potential.hpp>


Public Member Functions | |
| Restricted_quartic_potential ()=default | |
| Restricted_quartic_potential (double) | |
| Restricted_quartic_potential (double, double) | |
| virtual | ~Restricted_quartic_potential ()=default |
| Restricted_quartic_potential (const Restricted_quartic_potential &)=default | |
| Restricted_quartic_potential (Restricted_quartic_potential &&)=default | |
| Restricted_quartic_potential & | operator= (const Restricted_quartic_potential &)=default |
| Restricted_quartic_potential & | operator= (Restricted_quartic_potential &&)=default |
| virtual Restricted_quartic_potential * | clone () const override |
| Subclasses must implement a clone method. More... | |
| virtual double | operator() (const Eigen::VectorXd &) const override |
| Evaluate potential at point. More... | |
| virtual double | partial (const Eigen::VectorXd &, int) const override |
| Partial derivative WRT coordinate i at a point. More... | |
| virtual double | partial (const Eigen::VectorXd &, int, int) const override |
| Partial derivative WRT coordinates i, j at a a point. More... | |
| virtual std::size_t | get_number_of_fields () const override |
| virtual void | translate_origin (const Eigen::VectorXd &translation) override |
| Shift the location of the origin by a specified vector. More... | |
| virtual void | apply_basis_change (const Eigen::MatrixXd &cob_matrix) override |
| Apply a change of basis matrix. More... | |
| virtual void | add_constant_term (double _offset) override |
| Add a constant offset to the potential. More... | |
| double | operator() (double) const |
| double | first_deriv (double) const |
| double | second_deriv (double) const |
| double | get_global_minimum_location () const |
| double | get_local_minimum_location () const |
| double | get_local_maximum_location () const |
Public Member Functions inherited from BubbleProfiler::Potential | |
| virtual | ~Potential ()=default |
Private Attributes | |
| double | alpha {0.6} |
| double | E {1.} |
| double | origin {0.} |
| double | scale {1.} |
| double | offset {0.} |
Definition at line 27 of file restricted_quartic_potential.hpp.
|
default |
Referenced by clone().
|
explicit |
Definition at line 23 of file restricted_quartic_potential.cpp.
| BubbleProfiler::Restricted_quartic_potential::Restricted_quartic_potential | ( | double | alpha_, |
| double | E_ | ||
| ) |
Definition at line 32 of file restricted_quartic_potential.cpp.
References E.
|
virtualdefault |
|
default |
|
default |
|
inlineoverridevirtual |
Add a constant offset to the potential.
| offset | constant term to add to potential |
Implements BubbleProfiler::Potential.
Definition at line 56 of file restricted_quartic_potential.hpp.
References first_deriv(), get_global_minimum_location(), get_local_maximum_location(), get_local_minimum_location(), offset, operator()(), and second_deriv().
|
inlineoverridevirtual |
Apply a change of basis matrix.
| cob_matrix |
Implements BubbleProfiler::Potential.
Definition at line 52 of file restricted_quartic_potential.hpp.
References scale.
|
inlineoverridevirtual |
Subclasses must implement a clone method.
Implements BubbleProfiler::Potential.
Definition at line 38 of file restricted_quartic_potential.hpp.
References operator()(), partial(), and Restricted_quartic_potential().
| double BubbleProfiler::Restricted_quartic_potential::first_deriv | ( | double | coords | ) | const |
Definition at line 110 of file restricted_quartic_potential.cpp.
References alpha, E, origin, and scale.
Referenced by add_constant_term(), and partial().
| double BubbleProfiler::Restricted_quartic_potential::get_global_minimum_location | ( | ) | const |
Definition at line 124 of file restricted_quartic_potential.cpp.
References origin.
Referenced by add_constant_term(), main(), BubbleProfiler::run_perturbative_profiler(), and BubbleProfiler::run_shooting_profiler().
| double BubbleProfiler::Restricted_quartic_potential::get_local_maximum_location | ( | ) | const |
Definition at line 134 of file restricted_quartic_potential.cpp.
Referenced by add_constant_term(), main(), and BubbleProfiler::run_shooting_profiler().
| double BubbleProfiler::Restricted_quartic_potential::get_local_minimum_location | ( | ) | const |
Definition at line 129 of file restricted_quartic_potential.cpp.
References origin.
Referenced by add_constant_term(), main(), BubbleProfiler::run_perturbative_profiler(), and BubbleProfiler::run_shooting_profiler().
|
inlineoverridevirtual |
Implements BubbleProfiler::Potential.
Definition at line 46 of file restricted_quartic_potential.hpp.
|
overridevirtual |
Evaluate potential at point.
| coords | Coordinates at which to evaluate |
Implements BubbleProfiler::Potential.
Definition at line 49 of file restricted_quartic_potential.cpp.
Referenced by add_constant_term(), and clone().
| double BubbleProfiler::Restricted_quartic_potential::operator() | ( | double | coords | ) | const |
|
default |
|
default |
|
overridevirtual |
Partial derivative WRT coordinate i at a point.
| coords | Coordinates at which to evaluate |
| i | Index of coordinate to be differentiated |
Implements BubbleProfiler::Potential.
Definition at line 60 of file restricted_quartic_potential.cpp.
References first_deriv().
Referenced by clone().
|
overridevirtual |
Partial derivative WRT coordinates i, j at a a point.
| coords | Coordinates at which to evaluate |
| i | Index of first coordinate to be differentiated |
| j | Index of second coordinate to be differentiated |
Implements BubbleProfiler::Potential.
Definition at line 77 of file restricted_quartic_potential.cpp.
References second_deriv().
| double BubbleProfiler::Restricted_quartic_potential::second_deriv | ( | double | coords | ) | const |
Definition at line 117 of file restricted_quartic_potential.cpp.
References alpha, E, origin, and scale.
Referenced by add_constant_term(), and partial().
|
inlineoverridevirtual |
Shift the location of the origin by a specified vector.
| translation | shift of origin |
Implements BubbleProfiler::Potential.
Definition at line 48 of file restricted_quartic_potential.hpp.
References origin.
|
private |
Definition at line 69 of file restricted_quartic_potential.hpp.
Referenced by first_deriv(), get_local_maximum_location(), operator()(), and second_deriv().
|
private |
Definition at line 70 of file restricted_quartic_potential.hpp.
Referenced by first_deriv(), operator()(), Restricted_quartic_potential(), and second_deriv().
|
private |
Definition at line 73 of file restricted_quartic_potential.hpp.
Referenced by add_constant_term(), and operator()().
|
private |
Definition at line 71 of file restricted_quartic_potential.hpp.
Referenced by first_deriv(), get_global_minimum_location(), get_local_maximum_location(), get_local_minimum_location(), operator()(), second_deriv(), and translate_origin().
|
private |
Definition at line 72 of file restricted_quartic_potential.hpp.
Referenced by apply_basis_change(), first_deriv(), operator()(), and second_deriv().
1.8.11