This paper post is a short note written after reading the paper Learning to Simulate Complex Physics with Graph Networks, and surveying follow-up research.

Intro

Motivation

  • With MeshGraphNets, GNN-based learned simulator research made a meaningful contribution by distinguishing between two types of interaction, but collisions are still judged based on node proximity.
  • Both GNS and MeshGraphNets start from the concern that, in collisions involving complex rigid objects and liquids, sparse mesh vertices cannot sufficiently represent fine surface geometry.
  • Can complex interactions be represented, such as the interaction between fluids and surface rigid bodies with complex topology, as well as interactions with boundaries that undergo kinetic motion (stirring, scooping, or pouring liquid)?

⇒ Heterogeneous graph

Background: Bounding Volume Hierarchy (BVH)

Figure

A hierarchical tree structure; an algorithm for quickly computing collisions between objects, or collisions between rays and objects during rendering.

A bounding box is created around an object, and if it does not touch a bounding box at a higher level, then it does not collide with the mesh vertices inside it either, so it can be quickly excluded from collision computation.

Highlights

  • From multigraph to heterogeneous physical graph
  • Bounding Volume Hierarchy (BVH) collision handling
  • Edge construction rules separated per relation
  • Applicable to Control Tasks

Method

Figure

\[G = (V^L, V^O, V^M, E^L, E^{OL}, E^{OM}, E^{MO})\]
  • \(V^O\) is the object’s center point
  • \(V^M\) is all the vertices of that object’s mesh
  • \(E^{OM}\), \(E^{MO}\) are unidirectional edges connecting the object center point and the object meshes.
    • For a rigid body’s motion, the relative positions of the mesh vertices change according to rotation/translation, and conversely, when force is transmitted by the energy from a collision, motion of the entire rigid body occurs.

      ⇒ These two edges are constructed once and fixed, but their features are updated.

  • \(E^L\), \(E^{OL}\) are dynamically reconnected at every timestep, as in previous work.

  • Edge construction no longer operates on a single proximity criterion:
    • Liquid - Liquid:

      \[\Vert p_i - p_j\Vert < r_l\]
    • Liquid - Rigid Object: BVH was used for accurate handling of collisions; a liquid particle is transformed into the object’s local coordinate frame, and then the triangle of the mesh closest to the particle is identified by descending the tree. Then the specific coordinate \(c_{ij}\) with the shortest distance to the particle is computed (it may not be a vertex position). The distance d is computed relative to \(c_{ij}\).

      \[\Vert c_{ij} - p_j\Vert < r_{ol}\]

Experiments

Figure

Interactions that became possible with this work.

Comparison

Figure

Together with the classical methodology (BVH), it can be confirmed that boundary handling has been improved compared to prior work.

Model Predictive Control

Figure

Thanks to differentiable simulation, inverse design is possible. The experiment in the figure is the result of optimizing how to adjust the bottle’s position so that it can pour accurately into a cocktail glass.