MPS-Basic
|
Class for bucket for neighbor search. More...
#include <bucket.hpp>
Public Member Functions | |
Bucket ()=default | |
Bucket (const double &reMax, const Domain &domain, const size_t &particleSize) | |
void | generate (const int &particleNum) |
void | storeParticles (Particles &particles) |
store particles in the bucket | |
Public Attributes | |
int | num {} |
int | numX {} |
int | numY {} |
int | numZ {} |
double | length {} |
Domain | domain {} |
std::vector< int > | next |
std::vector< int > | first |
std::vector< int > | last |
Class for bucket for neighbor search.
This class is used for neighbor search in particle method. In particle method, neighbor search is required for calculating interaction between particles. Each particle is stored in the bucket, bucket is used for searching neighbor particles.
Definition at line 17 of file bucket.hpp.
|
default |
Bucket::Bucket | ( | const double & | reMax, |
const Domain & | domain, | ||
const size_t & | particleSize ) |
Definition at line 10 of file bucket.cpp.
void Bucket::generate | ( | const int & | particleNum | ) |
Definition at line 6 of file bucket.cpp.
void Bucket::storeParticles | ( | Particles & | particles | ) |
store particles in the bucket
particles | particles to be stored |
domain | domain of the simulation |
Definition at line 24 of file bucket.cpp.
int Bucket::num {} |
Definition at line 20 of file bucket.hpp.
int Bucket::numX {} |
Definition at line 20 of file bucket.hpp.
int Bucket::numY {} |
Definition at line 20 of file bucket.hpp.
int Bucket::numZ {} |
Definition at line 20 of file bucket.hpp.
double Bucket::length {} |
Definition at line 21 of file bucket.hpp.
Domain Bucket::domain {} |
Definition at line 22 of file bucket.hpp.
std::vector<int> Bucket::next |
Definition at line 23 of file bucket.hpp.
std::vector<int> Bucket::first |
Definition at line 23 of file bucket.hpp.
std::vector<int> Bucket::last |
Definition at line 23 of file bucket.hpp.