8 auto mass = particle.
getM();
15 auto particle_type = ParticleType{position, velocity, force, old_force, mass, type, epsilon, sigma, locked, connected_particles};
21 return DoubleVec3Type{vector[0], vector[1], vector[2]};
25 const std::vector<std::tuple<long, double, double>>& connected_particles) {
26 ConnectedParticlesType xsd_connected_particles{};
28 for (
const auto& entry : connected_particles) {
32 return xsd_connected_particles;
36 return ConnectedParticleEntryType{std::get<0>(entry), std::get<1>(entry), std::get<2>(entry)};
static ConnectedParticlesType convertToConnectedParticles(const std::vector< std::tuple< long, double, double >> &connected_particles)
static DoubleVec3Type convertToVector(const std::array< double, 3 > &vector)
static ConnectedParticleEntryType convertToConnectedParticleEntry(const std::tuple< long, double, double > &entry)
static ParticleType convertToParticle(const Particle &particle)
Class to represent a particle.
double getSigma() const
Gets the Lennard-Jones potential parameter sigma.
const std::array< double, 3 > & getV() const
Gets the velocity of the particle.
bool isLocked() const
Gets whether the particle is locked in space.
int getType() const
Gets the type of the particle.
const std::array< double, 3 > & getX() const
Gets the position of the particle.
double getM() const
Gets the mass of the particle.
double getEpsilon() const
Gets the Lennard-Jones potential parameter epsilon.
const std::array< double, 3 > & getF() const
Gets the total force of the particle.
const std::array< double, 3 > & getOldF() const
Gets the old total force of the particle.
const std::vector< std::tuple< long, double, double > > & getConnectedParticles() const
Gets the list of connected particles.