Skip to content

Commit

Permalink
Add magnetic gradiometry forwards for prisms (#97)
Browse files Browse the repository at this point in the history
Add forward modelling functions for the magnetic gradiometry components
due to rectangular prisms: spatial derivatives of the magnetic field
components. Include third-order kernel functions that are needed to
compute the derivatives of the magnetic field components. Create private
function to evaluate the kernels on the vertices of the prism provided
its magnetization so we can reduce the amount of repeated code in the
magnetic forward modelling functions. Add tests for the new functions.
  • Loading branch information
santisoler authored Oct 7, 2024
1 parent 74aa55c commit 36b36e1
Show file tree
Hide file tree
Showing 5 changed files with 2,047 additions and 130 deletions.
23 changes: 22 additions & 1 deletion choclo/prism/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -22,13 +22,34 @@
from ._kernels import (
kernel_e,
kernel_ee,
kernel_eee,
kernel_een,
kernel_eeu,
kernel_en,
kernel_enn,
kernel_enu,
kernel_eu,
kernel_euu,
kernel_n,
kernel_nn,
kernel_nnn,
kernel_nnu,
kernel_nu,
kernel_nuu,
kernel_pot,
kernel_u,
kernel_uu,
kernel_uuu,
)
from ._magnetic import (
magnetic_e,
magnetic_ee,
magnetic_en,
magnetic_eu,
magnetic_field,
magnetic_n,
magnetic_nn,
magnetic_nu,
magnetic_u,
magnetic_uu,
)
from ._magnetic import magnetic_e, magnetic_field, magnetic_n, magnetic_u
Loading

0 comments on commit 36b36e1

Please sign in to comment.