jaxdem.forces.facet_contact#
Facet contact force model.
Functions
|
Get the sphere indices of the facet clump that contains |
|
Compute the distance from point |
|
Compute the distance from point |
|
Compute the shortest distance between the segments |
|
Compute the shortest distance between two triangles. |
- jaxdem.forces.facet_contact.point_triangle_distance(p: jax.Array, a: jax.Array, b: jax.Array, c: jax.Array, system: System) tuple[jax.Array, jax.Array, jax.Array][source]#
Compute the distance from point
pto the triangle with verticesa,b,c.Also return the closest point on the triangle and its barycentric coordinates.
- jaxdem.forces.facet_contact.segment_segment_distance(p1: jax.Array, q1: jax.Array, p2: jax.Array, q2: jax.Array, system: System) tuple[jax.Array, jax.Array, jax.Array, jax.Array, jax.Array][source]#
Compute the shortest distance between the segments
p1-q1andp2-q2.Also return the closest point on each segment and its interpolation weights.
- jaxdem.forces.facet_contact.triangle_triangle_distance(t1_a: jax.Array, t1_b: jax.Array, t1_c: jax.Array, t2_a: jax.Array, t2_b: jax.Array, t2_c: jax.Array, system: System) tuple[jax.Array, jax.Array, jax.Array, jax.Array, jax.Array][source]#
Compute the shortest distance between two triangles.
Also return the closest point on each triangle and its barycentric coordinates.