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

The velocity phase's solve context: everything the velocity-phase loops read that demSolveContacts settles before them – the colour schedule, the solve views and slot override (true masses, mass-split copies or rank-level M), the Poisson restitution views, gravity, the rank-level X gate and the phase's switches. More...

#include <solve_driver.hpp>

Public Attributes

ColorSchedule velSched
int numColors = 0
Kokkos::View< const int *, CpMem > velPermC
const FusedSweepCtx * velFusedP = nullptr
Kokkos::View< const float *, CpMem > invMassVel
Kokkos::View< const float *[3], CpMem > invInertiaVel
SlotOverride velOv
PoissonBankViews poissonViews
RankK rk
F3 gHat {0, 0, 0}
float gMagP = 0.0f
int nmVisible = 0
bool usePGS = false
bool poisson = false
bool legacyFriction = false
bool sleepOn = false
bool wantFused = false
bool xOn = false
bool velCopiesOn = false
bool velM = false
bool velCons = false
bool stopsOn = true
float fusedOff = -1.0f

Detailed Description

The velocity phase's solve context: everything the velocity-phase loops read that demSolveContacts settles before them – the colour schedule, the solve views and slot override (true masses, mass-split copies or rank-level M), the Poisson restitution views, gravity, the rank-level X gate and the phase's switches.

Built once the warm start and the copies' solve views are in place; the loops never reassign a member. Host-side only: the helpers unpack it into locals before any kernel, so no device lambda names it.

Definition at line 735 of file solve_driver.hpp.

Member Data Documentation

◆ velSched

◆ numColors

int peclet::dem::VelocitySolveContext::numColors = 0

Definition at line 737 of file solve_driver.hpp.

Referenced by peclet::dem::oneShotVelocityIteration().

◆ velPermC

Kokkos::View<const int*, CpMem> peclet::dem::VelocitySolveContext::velPermC

Definition at line 738 of file solve_driver.hpp.

◆ velFusedP

const FusedSweepCtx* peclet::dem::VelocitySolveContext::velFusedP = nullptr

◆ invMassVel

◆ invInertiaVel

◆ velOv

◆ poissonViews

◆ rk

RankK peclet::dem::VelocitySolveContext::rk

Definition at line 745 of file solve_driver.hpp.

Referenced by peclet::dem::oneShotVelocityIteration().

◆ gHat

F3 peclet::dem::VelocitySolveContext::gHat {0, 0, 0}

◆ gMagP

◆ nmVisible

int peclet::dem::VelocitySolveContext::nmVisible = 0

Definition at line 748 of file solve_driver.hpp.

Referenced by peclet::dem::stabilizeOrdered().

◆ usePGS

bool peclet::dem::VelocitySolveContext::usePGS = false

◆ poisson

bool peclet::dem::VelocitySolveContext::poisson = false

Definition at line 750 of file solve_driver.hpp.

Referenced by peclet::dem::closeVelocityPhase().

◆ legacyFriction

bool peclet::dem::VelocitySolveContext::legacyFriction = false

Definition at line 751 of file solve_driver.hpp.

Referenced by peclet::dem::solveVelocityPhase().

◆ sleepOn

bool peclet::dem::VelocitySolveContext::sleepOn = false

Definition at line 752 of file solve_driver.hpp.

Referenced by peclet::dem::stabilizeMultilevel().

◆ wantFused

bool peclet::dem::VelocitySolveContext::wantFused = false

Definition at line 753 of file solve_driver.hpp.

Referenced by peclet::dem::stabilizeMultilevel().

◆ xOn

bool peclet::dem::VelocitySolveContext::xOn = false

Definition at line 754 of file solve_driver.hpp.

Referenced by peclet::dem::oneShotVelocityIteration().

◆ velCopiesOn

◆ velM

bool peclet::dem::VelocitySolveContext::velM = false

◆ velCons

◆ stopsOn

◆ fusedOff

float peclet::dem::VelocitySolveContext::fusedOff = -1.0f

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