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

The position-unit edge source of colorEdges: a unit's edge is its leader contact's raw (bodyA, bodyB), or a hub copy slot through ov, keyed colorKey(leader). More...

#include <solver_position.hpp>

Public Member Functions

int initialColor (int idx) const
ColorEdge edge (int idx) const

Static Public Member Functions

static constexpr ColorLabels labels ()

Public Attributes

Kokkos::View< const ContactC *, CpMem > contacts
Kokkos::View< const unsigned char *, CpMem > sleepMask
PosUnits units
SlotOverride ov
bool sleepOn

Detailed Description

The position-unit edge source of colorEdges: a unit's edge is its leader contact's raw (bodyA, bodyB), or a hub copy slot through ov, keyed colorKey(leader).

Inactive: all asleep.

Definition at line 177 of file solver_position.hpp.

Member Function Documentation

◆ labels()

constexpr ColorLabels peclet::dem::UnitEdges::labels ( )
inlinestaticconstexpr

Definition at line 183 of file solver_position.hpp.

◆ initialColor()

int peclet::dem::UnitEdges::initialColor ( int idx) const
inline

Definition at line 189 of file solver_position.hpp.

References sleepMask, sleepOn, peclet::dem::unitAsleep(), and units.

◆ edge()

ColorEdge peclet::dem::UnitEdges::edge ( int idx) const
inline

Member Data Documentation

◆ contacts

Kokkos::View<const ContactC*, CpMem> peclet::dem::UnitEdges::contacts

Definition at line 178 of file solver_position.hpp.

Referenced by edge().

◆ sleepMask

Kokkos::View<const unsigned char*, CpMem> peclet::dem::UnitEdges::sleepMask

Definition at line 179 of file solver_position.hpp.

Referenced by initialColor().

◆ units

PosUnits peclet::dem::UnitEdges::units

Definition at line 180 of file solver_position.hpp.

Referenced by edge(), and initialColor().

◆ ov

SlotOverride peclet::dem::UnitEdges::ov

Definition at line 181 of file solver_position.hpp.

Referenced by edge().

◆ sleepOn

bool peclet::dem::UnitEdges::sleepOn

Definition at line 182 of file solver_position.hpp.

Referenced by initialColor().


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