Skip to content

Mesh: GPU-Accelerated Differentiable Deformation Energies#1831

Draft
mehdiataei wants to merge 2 commits into
NVIDIA:mainfrom
mehdiataei:mehdiataei/deformation-energies
Draft

Mesh: GPU-Accelerated Differentiable Deformation Energies#1831
mehdiataei wants to merge 2 commits into
NVIDIA:mainfrom
mehdiataei:mehdiataei/deformation-energies

Conversation

@mehdiataei

Copy link
Copy Markdown
Collaborator

PhysicsNeMo Pull Request

Description

Adds GPU-accelerated, differentiable deformation-energy functionals for fixed-topology engineering meshes.

The new tensor APIs include:

  • simplex_strain_energy
  • simplex_measure_energy
  • total_measure_energy
  • simplex_inversion_energy
  • surface_bending_energy
  • closed_surface_volume_energy

Torch implementations support higher-order differentiation and dimensionally generic simplex geometry. NVIDIA Warp implementations provide first-order GPU acceleration for supported coordinate dimensions. Mesh-aware wrappers validate and cache topology, construct triangle hinges, and expose the energies through physicsnemo.mesh.deformation.

The implementation handles batched coordinates, configurable reductions, invalid and degenerate geometry, empty topology, extreme coordinate scales, auxetic material parameters, and numerically challenging slender simplices. Torch and Warp behavior is covered by forward, gradient, compilation, dispatch, topology, and backend-parity tests.

Documentation includes 2D and 3D optimization examples with generated figures demonstrating area, inversion, volume, and bending regularization.

Checklist

  • I am familiar with the Contributing Guidelines.
  • New or existing tests cover these changes.
  • The documentation is up to date with these changes.
  • The CHANGELOG.md is up to date with these changes.
  • An issue is linked to this pull request.
  • If I am implementing a new model or modifying any existing model, I have followed the Models Implementation Coding Standards. (Not applicable; no models are added or modified.)

Dependencies

No new dependencies.

Review Process

All PRs are reviewed by the PhysicsNeMo team before merging.

Depending on which files are changed, GitHub may automatically assign a maintainer for review.

We are also testing AI-based code review tools (e.g., Greptile), which may add automated comments with a confidence score.
This score reflects the AI’s assessment of merge readiness and is not a qualitative judgment of your work, nor is
it an indication that the PR will be accepted / rejected.

AI-generated feedback should be reviewed critically for usefulness.
You are not required to respond to every AI comment, but they are intended to help both authors and reviewers.
Please react to Greptile comments with 👍 or 👎 to provide feedback on their accuracy.

Signed-off-by: Mehdi Ataei <ataei8@gmail.com>
Signed-off-by: Mehdi Ataei <ataei8@gmail.com>
@copy-pr-bot

copy-pr-bot Bot commented Jul 11, 2026

Copy link
Copy Markdown

This pull request requires additional validation before any workflows can run on NVIDIA's runners.

Pull request vetters can view their responsibilities here.

Contributors can view more details about this message here.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant