jaxdem.topology#
Derived logical rigid-body topology.
The simulation state keeps particle-shaped rigid-body fields for fast contact
kernels. This module provides a padded, body-indexed view without changing the
serialized jaxdem.State pytree.
Functions
|
Derive a padded logical-body view from particle-shaped state fields. |
Classes
|
Particle-to-body mapping with at most |
- class jaxdem.topology.BodyTopology(member_to_body: Array, representative: Array, valid: Array, fixed: Array, member_count: Array)#
Bases:
objectParticle-to-body mapping with at most
Npadded body slots.- member_to_body: Array#
- representative: Array#
- valid: Array#
- fixed: Array#
- member_count: Array#
- jaxdem.topology.body_topology(clump_id: Array, fixed: Array) BodyTopology[source]#
Derive a padded logical-body view from particle-shaped state fields.