Multi Resolution Molecular Dynamics 0.4.0
Multi Resolution Molecular Dynamics
Loading...
Searching...
No Matches
mrmd::communication Namespace Reference

Everything related to ghost particles and periodic boundary conditions. More...

Namespaces

namespace  PeriodicMapping
 Maps atoms that left the subdomain back into it across the periodic boundaries.
namespace  UpdateGhostAtoms
 Refreshes the positions of existing ghost atoms without rebuilding the ghost layer.
namespace  AccumulateForce
 Adds the forces accumulated on ghost atoms back onto their real counterparts.

Classes

class  GhostLayer
 High-level interface for managing ghost atoms at the periodic boundaries. More...
class  MultiResGhostLayer
 High-level interface for managing ghost atoms at the periodic boundaries in a multi-resolution simulation. More...

Functions

void realAtomsExchange (const data::Subdomain &subdomain, const data::Molecules &molecules, const data::Atoms &atoms)
 Intended for single process use.

Detailed Description

Everything related to ghost particles and periodic boundary conditions.

Single resolution and multi-resolution ghost layers, periodic mapping, ghost position updates and the accumulation of ghost forces back onto the real particles.

Function Documentation

◆ realAtomsExchange()

void mrmd::communication::realAtomsExchange ( const data::Subdomain & subdomain,
const data::Molecules & molecules,
const data::Atoms & atoms )

Intended for single process use.

Maps atoms that went out of the domain back in a periodic fashion. Mapping is done based on molecule position and atoms are moved according to their molecule.

Precondition
Atom position is at most one periodic copy away from the subdomain.
Postcondition
Atom position lies within half-open interval [min, max) for all coordinate dimensions.