Skip to content

Conversation

@Leguark
Copy link
Member

@Leguark Leguark commented Oct 26, 2025

Add magnetics (TMI) forward modeling to geophysics workflows

Introduce functionality for induced-only TMI anomaly computation using precomputed voxel-based TMI kernels and geologic unit susceptibilities. Updates include:

  • compute_tmi: Core TMI calculation logic based on magnetics kernel and voxel susceptibilities in fw_magnetic.py.
  • Extended GeophysicsInput to include magnetics-specific fields such as mag_kernel, susceptibilities, and igrf_params.
  • Modified model_api.py to integrate magnetics into geophysics workflows alongside gravity computations.
  • Updated solutions.py to include magnetics in forward modeling outputs.

Ensures magnetics functionality remains optional without impacting gravity workflows.

Additional changes

  • Updated model_api.py to make gravity computations conditional, enabling workflows without gravity inputs.
  • Modified GeophysicsInput to allow tz and densities as optional fields for magnetics-only workflows.
  • Added tmi alias property in solutions.py for Total Magnetic Intensity outputs.
  • Improved formatting in geophysics README for better readability.
  • Added analytical and symmetry benchmark tests for magnetics implementation validation.
  • Included placeholder magnetics gradient computation module with core physics for initial testing.

Introduce new test cases to validate the forthcoming magnetics implementation:

- Add analytical benchmark test comparing induced-only TMI against analytical solutions for a spherical anomaly.
- Add symmetry benchmark test to verify induced-only TMI spatial accuracy along a line profile.

Also include a placeholder magnetics gradient computation module (`magnetic_gradient.py`) with core physics for initial testing.
Introduce functionality for induced-only TMI anomaly computation using precomputed voxel-based TMI kernels and geologic unit susceptibilities. Updates include:

- `compute_tmi`: Core TMI calculation logic based on magnetics kernel and voxel susceptibilities in `fw_magnetic.py`.
- Extended `GeophysicsInput` to include magnetics-specific fields such as `mag_kernel`, `susceptibilities`, and `igrf_params`.
- Modified `model_api.py` to integrate magnetics into geophysics workflows alongside gravity computations.
- Updated `solutions.py` to include magnetics in forward modeling outputs.

Ensures magnetics functionality remains optional without impacting gravity workflows.
- Updated `model_api.py` to make gravity computations conditional, enabling workflows without gravity inputs.
- Modified `GeophysicsInput` to allow `tz` and `densities` as optional fields for magnetics-only workflows.
- Added `tmi` alias property in `solutions.py` for Total Magnetic Intensity outputs.
- Improved formatting in geophysics README for better readability.
Copy link
Member Author

Leguark commented Oct 26, 2025

Warning

This pull request is not mergeable via GitHub because a downstack PR is open. Once all requirements are satisfied, merge this PR as a stack on Graphite.
Learn more

This stack of pull requests is managed by Graphite. Learn more about stacking.

@Leguark Leguark changed the title [TEST] Add analytical and symmetry benchmark tests for magnetics [WIP] Add magnetic forward modeling with TMI calculation support Oct 26, 2025
@Leguark Leguark marked this pull request as ready for review October 26, 2025 13:24
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