Skip to content

Conversation

@Pawel024
Copy link
Collaborator

@Pawel024 Pawel024 commented Feb 5, 2026

This pull request introduces the InducedMetric class, a geometric abstraction for computing metrics on submanifolds embedded in arbitrary coordinate systems and ambient dimensions.

Key changes:

  • New InducedMetric class that computes the induced metric tensor g_induced = J^T * g_ambient * J and its inverse
  • Volume element support with via sqrt(det(g_induced))
  • Support for contravariant gradients (both vector and scalar) in ambient space via J * (g_inv_induced * dphi_dxi)
  • Volume form support via w = sqrt(det(g_induced)) * (dx^0 ∧ ... ∧ dx^(N-1))
  • New tests, validating metric computation, gradient consistency, and volume element calculations for:
    • segments embedded in 1D, 2D, and 3D coordinate systems
    • triangles embedded in 2D and 3D coordinate systems

@Pawel024 Pawel024 marked this pull request as ready for review February 6, 2026 12:56
@Pawel024 Pawel024 marked this pull request as draft February 6, 2026 15:14
@Pawel024 Pawel024 marked this pull request as ready for review February 6, 2026 15:31
@Pawel024 Pawel024 requested a review from biancagi February 6, 2026 15:31
@Pawel024 Pawel024 marked this pull request as draft February 11, 2026 10:35
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