ESPResSo
Extensible Simulation Package for Research on Soft Matter Systems
Loading...
Searching...
No Matches
ParticleForce Struct Reference

Force information on a particle. More...

#include <Particle.hpp>

Public Member Functions

 ParticleForce ()=default
 
 ParticleForce (ParticleForce const &)=default
 
ParticleForceoperator= (ParticleForce const &)=default
 
 ParticleForce (const Utils::Vector3d &f)
 
 ParticleForce (const Utils::Vector3d &f, const Utils::Vector3d &torque)
 
ParticleForceoperator+= (ParticleForce const &rhs)
 
template<class Archive >
void serialize (Archive &ar, long int)
 

Public Attributes

Utils::Vector3d f = {0., 0., 0.}
 force.
 
Utils::Vector3d torque = {0., 0., 0.}
 torque.
 

Friends

ParticleForce operator+ (ParticleForce const &lhs, ParticleForce const &rhs)
 

Detailed Description

Force information on a particle.

Forces of ghost particles are collected and added up to the force of the original particle.

Definition at line 290 of file Particle.hpp.

Constructor & Destructor Documentation

◆ ParticleForce() [1/4]

ParticleForce::ParticleForce ( )
default

◆ ParticleForce() [2/4]

ParticleForce::ParticleForce ( ParticleForce const &  )
default

◆ ParticleForce() [3/4]

ParticleForce::ParticleForce ( const Utils::Vector3d f)
inline

Definition at line 294 of file Particle.hpp.

◆ ParticleForce() [4/4]

ParticleForce::ParticleForce ( const Utils::Vector3d f,
const Utils::Vector3d torque 
)
inline

Definition at line 296 of file Particle.hpp.

Member Function Documentation

◆ operator+=()

ParticleForce & ParticleForce::operator+= ( ParticleForce const &  rhs)
inline

Definition at line 307 of file Particle.hpp.

References f, and torque.

◆ operator=()

ParticleForce & ParticleForce::operator= ( ParticleForce const &  )
default

◆ serialize()

template<class Archive >
void ParticleForce::serialize ( Archive &  ar,
long int   
)
inline

Definition at line 323 of file Particle.hpp.

References f, and torque.

Friends And Related Symbol Documentation

◆ operator+

ParticleForce operator+ ( ParticleForce const &  lhs,
ParticleForce const &  rhs 
)
friend

Definition at line 300 of file Particle.hpp.

Member Data Documentation

◆ f

◆ torque


The documentation for this struct was generated from the following file: