14#pragma omp parallel for
15 for (
auto& pi : particles) {
25 for (
int jx = ix - 1; jx <= ix + 1; jx++) {
26 for (
int jy = iy - 1; jy <= iy + 1; jy++) {
27 for (
int jz = iz - 1; jz <= iz + 1; jz++) {
34 double dist = (pj.
position - pi.position).norm();
35 if (j != pi.id && dist <
re) {
36 pi.neighbors.emplace_back(j, dist);
represents the domain of the simulation
double zMin
minimum z coordinate of the domain
double xMin
minimum x coordinate of the domain
double yMin
minimum y coordinate of the domain
Class for particle in MPS method.
A collection of particles.
@ Ghost
Ghost particle (outside of the domain, not used for calculation)