In [ ]:
from geoscilabs.base import widgetify
import geoscilabs.em.InductionSphereFEM as IND
from ipywidgets import interact, FloatSlider, FloatText, ToggleButtons


## Sphere FEM Response for EM-31¶

Here, we simulate the response observed over a conductive and magnetically permeable sphere by an EM-31. In the leftmost plot, the regional primary or secondary field is plotted in 2D along with the survey geometry. In the rightmost plot, the response at the receiver coil is plotted as a function of frequency. The parameters for the app are summarized below:

• $x_{Tx}$: Horizontal location of the EM-31 (halfway between Tx and Rx coils)
• $z_{Tx}$: Vertical location of the EM-31
• $L$: Horizontal transmitter-receiver separation
• $m$: Transmitter dipole moment
• $Orientation$: The EM-31 configuration may be set to vertical coaxial or horizontal coplaner
• $x_s$: Horizontal location of the sphere
• $z_s$: Vertical location of the sphere
• $R$: Radius of the sphere
• $log_{10}(\sigma)$: Conductivity of the sphere
• $\mu_r$: Relative permeability of the sphere
• $log_{10}(f)$: Set to visualize the response for a specific frequency
• $Field \; Type$: View the 2D regional primary field, real component of the secondary field or imaginary component of the secondary field.
In [ ]:
widgetify(IND.fcn_FDEM_InductionSphereProfileEM31Widget,xtx=FloatSlider(min=-20, max=20., value=0., step=2., continuous_update=False, description = "$x_{Tx}$"),\
ztx=FloatSlider(min=0., max=10., value=2., step=1., continuous_update=False, description = "$z_{Tx}$"),\
L=FloatSlider(min=0., max=25., value=20., step=5., continuous_update=False, description = "$L$"),\
m=FloatSlider(min=1., max=5.,value=1.,step=1.,continuous_update=False,description = "$m$"),\
orient=ToggleButtons(options=['Vert. Coaxial','Horiz. Coplanar'],value='Horiz. Coplanar',description = "$Configuration$"),\
x0=FloatSlider(min=-20., max=20., value=0., step=1., continuous_update=False, description = "$x_s$"),\
z0=FloatSlider(min=-20., max=0., value=-8., step=1., continuous_update=False, description = "$z_s$"),\
a=FloatSlider(min=0.5, max=5., value=3., step=0.5, continuous_update=False, description = "$R$"),\
sig=FloatSlider(min=0., max=6., value=2., step=0.5, continuous_update=False, description = "$log_{10}(\sigma)$"),\
mur=FloatSlider(min=1., max=5., value=1., step=0.25, continuous_update=False, description = "$\mu_r$"),\
logf=FloatSlider(min=0., max=8., value=5., step=1., continuous_update=False, description = "$log_{10}(f)$"),\
Flag=ToggleButtons(options=['Hp','Hs_real','Hs_imag'],value='Hp',description = "$Field \; Type$"))



## Sphere FEM Response for Arbitrary Configuration¶

Here, we simulate the response observed over a conductive and magnetically permeable sphere. The parameters are relaxed so that the transmitter-receiver separation is no longer fixed. In the leftmost plot, the regional primary or secondary field is plotted in 2D along with the survey geometry. In the rightmost plot, the response at the receiver coil is plotted as a function of frequency. The parameters for the app are summarized below:

• $x_{Tx}$: Horizontal location of the transmitter coil
• $z_{Tx}$: Vertical location of the transmitter coil
• $m$: Transmitter dipole moment
• $Orientation$: The transmitter-receiver configuration may be set to vertical coaxial or horizontal coplaner
• $x_s$: Horizontal location of the sphere
• $z_s$: Vertical location of the sphere
• $R$: Radius of the sphere
• $log_{10}(\sigma)$: Conductivity of the sphere
• $\mu_r$: Relative permeability of the sphere
• $x_{Rx}$: Horizontal location of the receiver coil
• $z_{Rx}$: Vertical location of the receiver coil
• $log_{10}(f)$: Set to visualize the response for a specific frequency
• $Field \; Type$: View the 2D regional primary field, real component of the secondary field or imaginary component of the secondary field.
In [ ]:
widgetify(IND.fcn_FDEM_InductionSphereProfileWidget,xtx=FloatSlider(min=-20, max=20., value=-10., step=2., continuous_update=False, description = "$x_{Tx}$"),\
ztx=FloatSlider(min=0., max=10., value=2., step=1., continuous_update=False, description = "$z_{Tx}$"),\
m=FloatSlider(min=1., max=5.,value=1.,step=1.,continuous_update=False,description = "$m$"),\
orient=ToggleButtons(options=['Vert. Coaxial','Horiz. Coplanar'],value='Horiz. Coplanar',description = "$Configuration$"),\
x0=FloatSlider(min=-20., max=20., value=0., step=1., continuous_update=False, description = "$x_s$"),\
z0=FloatSlider(min=-20., max=0., value=-10., step=1., continuous_update=False, description = "$z_s$"),\
a=FloatSlider(min=0.5, max=5., value=3., step=0.5, continuous_update=False, description = "$R$"),\
sig=FloatSlider(min=0., max=6., value=2., step=0.5, continuous_update=False, description = "$log_{10}(\sigma)$"),\
mur=FloatSlider(min=1., max=5., value=1., step=0.25, continuous_update=False, description = "$\mu_r$"),\
xrx=FloatSlider(min=-20., max=20., value=10., step=1., continuous_update=False, description = "$x_{Rx}$"),\
zrx=FloatSlider(min=0., max=10., value=2., step=1., continuous_update=False, description = "$z_{Rx}$"),\
logf=FloatSlider(min=0., max=8., value=5., step=1., continuous_update=False, description = "$log_{10}(f)$"),\
Flag=ToggleButtons(options=['Hp','Hs_real','Hs_imag'],value='Hp',description = "$Field \; Type$"))



## Sphere FEM Anomaly for Arbitrary Configuration¶

Here, we simulate the response observed over a conductive and magnetically permeable sphere. The transmitter, receiver and sphere locations can be set anywhere in 3D space. The orientation of the transmitter can also be changed. In the leftmost plot, FEM anomaly is plotted on the XY-plane at the same height as the receiver coil. In the rightmost plot, the response at the receiver coil is plotted as a function of frequency. The parameters for the app are summarized below:

• $x_{Tx}$: X-location of the transmitter coil
• $y_{Tx}$: Y-location of the transmitter coil
• $z_{Tx}$: Z-location of the transmitter coil
• $m$: Transmitter dipole moment
• $Orientation$: The orientation of the transmitter's dipole moment can be set along 'x', 'y' or 'z'
• $x_s$: X-location of the sphere
• $y_s$: Y-location of the sphere
• $z_s$: Z-location of the sphere
• $R$: Radius of the sphere
• $log_{10}(\sigma)$: Conductivity of the sphere
• $\mu_r$: Relative permeability of the sphere
• $x_{Rx}$: X-location of the receiver coil
• $y_{Rx}$: Y-location of the receiver coil
• $z_{Rx}$: Z-location of the receiver coil
• $log_{10}(f)$: Set to visualize the response for a specific frequency
• $Component$: Examine the 'x', 'y' or 'z' component of the response at the receiver coil
• $Field \; Type$: Examine the real or imaginary component of the FEM anomaly specified by '$Component$'
In [ ]:
widgetify(IND.fcn_FDEM_InductionSpherePlaneWidget,xtx=FloatSlider(min=-20, max=20., value=0., step=1., continuous_update=False, description = "$x_{Tx}$"),\
ytx=FloatSlider(min=-20, max=20., value=0., step=1., continuous_update=False, description = "$y_{Tx}$"),\
ztx=FloatSlider(min=0., max=10., value=2., step=1., continuous_update=False, description = "$z_{Tx}$"),\
m=FloatSlider(min=1., max=5.,value=2.,step=1.,continuous_update=False,description = "$m$"),\
orient=ToggleButtons(options=['x','y','z'],value='z'),\
x0=FloatSlider(min=-20., max=20., value=0., step=1., continuous_update=False, description = "$x_s$"),\
y0=FloatSlider(min=-20., max=20., value=0., step=1., continuous_update=False, description = "$y_s$"),\
z0=FloatSlider(min=-20., max=-2., value=-5., step=1., continuous_update=False, description = "$z_s$"),\
a=FloatSlider(min=0.5, max=5., value=2., step=0.5, continuous_update=False, description = "$R$"),\
sig=FloatSlider(min=0., max=6., value=2., step=0.5, continuous_update=False, description = "$log_{10}(\sigma)$"),\
mur=FloatSlider(min=1., max=5., value=1., step=0.25, continuous_update=False, description = "$\mu_r$"),\
xrx=FloatSlider(min=-20., max=20., value=10., step=1., continuous_update=False, description = "$x_{Rx}$"),\
yrx=FloatSlider(min=-20., max=20., value=10., step=1., continuous_update=False, description = "$y_{Rx}$"),\
zrx=FloatSlider(min=0., max=10., value=2., step=1., continuous_update=False, description = "$z_{Rx}$"),\
logf=FloatSlider(min=0., max=8., value=5., step=1., continuous_update=False, description = "$log_{10}(f)$"),\
Comp=ToggleButtons(options=['x','y','z'],value='z',description = "$Component$"),\
Phase=ToggleButtons(options=['Real','Imag'],value='Real',description = "$Field \; Type$"))

In [ ]: