peclet-dem 1.1.0
Performance-portable XPBD Discrete Element Method (Kokkos + ArborX)
Loading...
Searching...
No Matches
peclet::dem::SlotOverride Struct Reference

Per-edge slot overrides of a phase's hub copies (docs/contact_solve_framework.md §4.4 item 5) plus the per-slot mass-split flag and relaxation of §4.5. More...

#include <contact_preprocessing.hpp>

Public Member Functions

int slotA (int e, int def) const
int slotB (int e, int def) const
bool relax (int sA, int sB) const
 True iff the edge touches a mass-split slot (its step is scaled by omega before the clamp).

Public Attributes

Kokkos::View< const int *, CpMem > a
Kokkos::View< const int *, CpMem > b
Kokkos::View< const unsigned char *, CpMem > split
float omega = 1.0f

Detailed Description

Per-edge slot overrides of a phase's hub copies (docs/contact_solve_framework.md §4.4 item 5) plus the per-slot mass-split flag and relaxation of §4.5.

Empty views = today's indices, no relaxation (the identity). a(e) / b(e) are the slots of edge e's A / B end (-1 = the default index: realIdx(bodyX) in the velocity phase, the raw contact body in the position phase). Every STATE access of a phase's sweeps goes through slotA / slotB; keys, labels and side flags keep the body.

Definition at line 522 of file contact_preprocessing.hpp.

Member Function Documentation

◆ slotA()

int peclet::dem::SlotOverride::slotA ( int e,
int def ) const
inline

◆ slotB()

int peclet::dem::SlotOverride::slotB ( int e,
int def ) const
inline

◆ relax()

bool peclet::dem::SlotOverride::relax ( int sA,
int sB ) const
inline

True iff the edge touches a mass-split slot (its step is scaled by omega before the clamp).

Definition at line 543 of file contact_preprocessing.hpp.

References split.

Member Data Documentation

◆ a

Kokkos::View<const int*, CpMem> peclet::dem::SlotOverride::a

Definition at line 523 of file contact_preprocessing.hpp.

Referenced by slotA().

◆ b

Kokkos::View<const int*, CpMem> peclet::dem::SlotOverride::b

Definition at line 523 of file contact_preprocessing.hpp.

Referenced by slotB().

◆ split

Kokkos::View<const unsigned char*, CpMem> peclet::dem::SlotOverride::split

Definition at line 524 of file contact_preprocessing.hpp.

Referenced by relax().

◆ omega

float peclet::dem::SlotOverride::omega = 1.0f

Definition at line 525 of file contact_preprocessing.hpp.


The documentation for this struct was generated from the following file: