|
|
| 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 |
| |
|
Particle & | operator= (const Particle &)=delete |
| |
|
|
std::ostream & | operator<< (std::ostream &os, const Particle &p) |
| |
◆ operator!=()
| bool wash::Particle::operator!= |
( |
const Particle & |
other | ) |
const |
Inverse of equality check.
- Parameters
-
- Returns
- true
-
false
◆ operator==()
| bool wash::Particle::operator== |
( |
const Particle & |
other | ) |
const |
Compare particle equality by their IDs.
- Parameters
-
- Returns
- true ID's equal
-
false ID's not equal
The documentation for this class was generated from the following files:
- /dcs/20/u2002000/4thYearProject/wash/include/particle.hpp
- /dcs/20/u2002000/4thYearProject/wash/src/impl/cstone/particle.cpp