Skip to content

feat: Add gravity solver to pygeoos-tools #110

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 6 commits into
base: main
Choose a base branch
from
Open

Conversation

bd713
Copy link

@bd713 bd713 commented Jul 3, 2025

This PR introduces a comprehensive suite of Python utilities for running and validating gravity simulations using GEOS (see corresponding GEOS PR). These tools support inversion workflows, ensure correctness of forward and adjoint implementations, and provide reproducible testing.

The PR includes:

  • GravitySolver.py
    Extends the base Solver class with gravity-specific functionality, enabling modeling of gravity responses from density models.
  • GravityLinearOpSolver.py
    A SciPy-compatible LinearOperator wrapper around the GEOS GravitySolver.
    Supports forward modeling, adjoint modeling, and loss/gradient computation for optimization and inversion workflows.
  • InversionUtils.py
    Utility functions for inversion workflows, including:
    • computeResidual, computeL2Loss
    • gradientTest (Taylor expansion validation)
    • adjointTest (inner product symmetry check)

DENEL Bertrand added 2 commits July 2, 2025 20:06
@bd713 bd713 requested a review from alexbenedicto July 3, 2025 22:02
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant