WaSH Docs
Public Member Functions | Friends | List of all members
wash::Particle Class Reference

Public Member Functions

 Particle (const unsigned local_idx)
 TODO: see if this works if it's a glocal spec defined flag rather than in just one file?
 
unsigned get_id () const
 Returns the global ID of the particle.
 
double get_density () const
 
void set_density (const double density)
 
double get_mass () const
 
void set_mass (const double mass)
 
double get_smoothing_length () const
 
void set_smoothing_length (const double smoothing_length)
 
SimulationVecT get_pos () const
 
void set_pos (const SimulationVecT pos)
 
SimulationVecT get_vel () const
 
void set_vel (const SimulationVecT vel)
 
SimulationVecT get_acc () const
 
void set_acc (const SimulationVecT acc)
 
double get_force_scalar (const std::string &force) const
 
void set_force_scalar (const std::string &force, const double value)
 
SimulationVecT get_force_vector (const std::string &force) const
 
void set_force_vector (const std::string &force, const SimulationVecT value)
 
double get_vol () const
 
unsigned recalculate_neighbors (unsigned max_count) const
 
bool operator== (const Particle &other) const
 Compare particle equality by their IDs. More...
 
bool operator!= (const Particle &other) const
 Inverse of equality check. More...
 
 Particle (const Particle &)=delete
 
Particleoperator= (const Particle &)=delete
 

Friends

std::ostream & operator<< (std::ostream &os, const Particle &p)
 

Member Function Documentation

◆ operator!=()

bool wash::Particle::operator!= ( const Particle other) const

Inverse of equality check.

Parameters
other
Returns
true
false

◆ operator==()

bool wash::Particle::operator== ( const Particle other) const

Compare particle equality by their IDs.

Parameters
other
Returns
true ID's equal
false ID's not equal

The documentation for this class was generated from the following files: