22#include <boost/serialization/access.hpp>
39 static constexpr int num = 0;
43 throw std::domain_error(
"IBMVolCons parameter 'softID' has to be >= 0");
45 this->softID =
static_cast<unsigned int>(
softID);
58 assert(
static_cast<std::size_t
>(
softID) < m_volumes->size());
59 volume = (*m_volumes)[
softID];
70 std::vector<double>
const *m_volumes;
Parameters for IBM volume conservation bond.
IBMVolCons(int softID, double kappaV)
void set_volumes_view(std::vector< double > const &volumes)
double kappaV
Spring constant for volume force.
double get_current_volume() const
double volRef
Reference volume.
unsigned int softID
ID of the large soft particle to which this node belongs.
void unset_volumes_view()