19#ifndef CORE_TABULATED_POTENTIAL_HPP
20#define CORE_TABULATED_POTENTIAL_HPP
24#include <boost/serialization/access.hpp>
25#include <boost/serialization/vector.hpp>
50 std::vector<double>
const &
force,
51 std::vector<double>
const &
energy);
T linear_interpolation(Container const &table, T hi, T offset, T x)
Linear interpolation between two data points.
Evaluate forces and energies using a custom potential profile.
std::vector< double > force_tab
Tabulated forces.
double force(double x) const
Evaluate the force at position x.
double invstepsize
Distance on the x-axis between tabulated values.
double maxval
Position on the x-axis of the last tabulated value.
double energy(double x) const
Evaluate the energy at position x.
std::vector< double > energy_tab
Tabulated energies.
double minval
Position on the x-axis of the first tabulated value.
TabulatedPotential()=default