PeriDEM 0.3.0
PeriDEM -- Peridynamics-based high-fidelity model for granular media
Loading...
Searching...
No Matches
particleMpi.h
Go to the documentation of this file.
1/*
2 * -------------------------------------------
3 * Copyright (c) 2021 - 2026 Prashant K. Jha
4 * -------------------------------------------
5 * PeriDEM https://github.com/prashjha/PeriDEM
6 *
7 * Distributed under the Boost Software License, Version 1.0. (See accompanying
8 * file LICENSE)
9 */
10
11#ifndef PARTICLE_PARTICLE_MPI_H
12#define PARTICLE_PARTICLE_MPI_H
13
14#include <string>
15
16namespace data {
17class ModelData;
18}
19
20namespace particle {
21
22class BaseParticle;
23
26bool isLocallyOwned(const BaseParticle &p);
27
29std::string resolvedMpiStrategy(const data::ModelData &data);
30
36
44
45} // namespace particle
46
47#endif // PARTICLE_PARTICLE_MPI_H
A class to store model data.
Definition modelData.h:50
Definition contact.h:20
Collection of methods and data related to particle object.
Definition modelData.h:36
std::string resolvedMpiStrategy(const data::ModelData &data)
Resolved MPI strategy: none|particle|dof (auto expanded).
void assignMpiOwners(data::ModelData &data)
Assign grain owners by spatial 2D brick decomposition of centers. Walls get owner -1 (all ranks)....
void exchangeGhostKinematics(data::ModelData &data)
Distance-limited ghosts + kinematics exchange. Rebuilds the ghost plan on a Verlet-skin cadence (tied...
bool isLocallyOwned(const BaseParticle &p)
True if this rank updates / assembles forces for the particle. Walls are replicated on every rank....