ipc-sim / IPC

Incremental Potential Contact (IPC) is for robust and accurate time stepping of nonlinear elastodynamics. IPC guarantees intersection- and inversion-free trajectories regardless of materials, time-step sizes, velocities, or deformation severity.
https://ipc-sim.github.io/
MIT License
572 stars 73 forks source link

New Animation Request #29

Open fortoboy opened 2 years ago

fortoboy commented 2 years ago

Hello,

I was wondering if you could help me write a new Animation case that applies a normal force to the surface nodes of the mesh. The algorithm would go something like this:

  1. Calculate normals at either nodes or elements (then average them in 1 ring to get at nodes)
  2. Apply a prescribed magnitude force at each node on the external surface in the normal direction The use case is that I want to apply both an internal/external pressure to a cylinder

Obviously, this is an enhancement and just looking for some help