MPS-Basic
Loading...
Searching...
No Matches
bucket.hpp
Go to the documentation of this file.
1
#pragma once
2
3
#include "
common.hpp
"
4
#include "
domain.hpp
"
5
#include "
particles.hpp
"
6
7
#include <iostream>
8
#include <vector>
9
17
class
Bucket
{
18
private
:
19
public
:
20
int
num
{},
numX
{},
numY
{},
numZ
{};
21
double
length
{};
22
Domain
domain
{};
23
std::vector<int>
next
,
first
,
last
;
24
25
Bucket
() =
default
;
26
27
Bucket
(
const
double
& reMax,
const
Domain
&
domain
,
const
size_t
& particleSize);
28
void
generate
(
const
int
& particleNum);
34
void
storeParticles
(
Particles
& particles);
35
};
Bucket
Class for bucket for neighbor search.
Definition
bucket.hpp:17
Bucket::Bucket
Bucket()=default
Bucket::storeParticles
void storeParticles(Particles &particles)
store particles in the bucket
Definition
bucket.cpp:24
Bucket::next
std::vector< int > next
Definition
bucket.hpp:23
Bucket::numY
int numY
Definition
bucket.hpp:20
Bucket::num
int num
Definition
bucket.hpp:20
Bucket::last
std::vector< int > last
Definition
bucket.hpp:23
Bucket::numZ
int numZ
Definition
bucket.hpp:20
Bucket::length
double length
Definition
bucket.hpp:21
Bucket::first
std::vector< int > first
Definition
bucket.hpp:23
Bucket::generate
void generate(const int &particleNum)
Definition
bucket.cpp:6
Bucket::numX
int numX
Definition
bucket.hpp:20
Bucket::domain
Domain domain
Definition
bucket.hpp:22
Domain
represents the domain of the simulation
Definition
domain.hpp:8
Particles
A collection of particles.
Definition
particles.hpp:10
common.hpp
domain.hpp
particles.hpp
src
bucket.hpp
Generated by
1.12.0