In [ ]:

```
from geoscilabs.em.HarmonicVMDCylWidget import HarmonicVMDCylWidget
vmd = HarmonicVMDCylWidget()
```

In [ ]:

```
from matplotlib import rcParams
rcParams['font.size'] = 16
```

Here, we show fields and fluxes that result from placing a transient vertical magnetic dipole (VMD) source over an Earth model containing a spherical structure and an overburden layer.

There are two commonly used models for describing a harmonic VMD source: 1) as an infinitessimally small bar magnet that experiences a harmonic magnetization in the vertical direction, and 2) as an infinitessimally small horizontal loop of wire carrying a harmonic current. In either case, the harmonic VMD creates a primary harmonic magnetic field in its viscinity; which is vertical at the location of the source.

True dipole sources do not exist in nature however they can be approximated in practice. For geophysical applications, small wire loops carrying harmonic current are used to approximate harmonic VMD sources. These EM sources may be placed on the Earth's surface (ground-based surveys) or flown through the air (airborne surveys). Because the source's primary field is harmonic, it induces anomalous currents in the Earth. The distribution and strength of the induced currents depends on the frequency of the harmonic VMD source and the subsurface conductivity distribution. The induced current ultimately produce secondary magnetic fields which can be measured by one or more receivers.

In this app, we explore the following:

- How does the frequency impact the fields and currents produced by the harmonic VMD source?
- For our geological model, how does changing the dimensions and conductivity of the layer and sphere impact the fields and currents produced by the harmonic VMD source?
- How does the frequency impact secondary fields measured above the Earth's surface?
- For our geological model, how does changing the dimensions and conductivity of the layer and sphere impact secondary fields measured above the Earth's surface?

The geological scenario being modeled is shown in the figure below. Here, the Earth is comprised of a spherical structure and overburden layer within a homogeneous background. Each of the three geological units has its own conductivity ($\sigma$). However, a constant magnetic susceptibility ($\chi$) is used for all units; where $\mu_0$ is the magnetic permeability of free space and $\mu = \mu_0 (1 +\chi)$. The depth to the layer is given by $d_1$ and $h$.

In this case, a harmonic VMD source (*Tx*) is used to excite the Earth, and the Earth's FEM response (secondary magnetic field) is measured by a receiver (*Rx*). In practice, the transmitter and receiver may be placed near the Earth's surface or in the air. The source may also operate at a variety of frequencies. Because we are operating in the frequency domain, fields and currents within the region have both real and imaginary components.

To understand the fields and currents resulting from a harmonic VMD source over a layered Earth we have two apps:

**Fields app:**Models the fields and currents everywhere at a particular frequency**Data app:**Models the secondary magnetic field observed at the receiver as a function of frequency

**Follow the exercise in a linear fashion. Some questions may use parameters set in a previous question.**

**Q1:**Set $\sigma_b$, $\sigma_1$ and $\sigma_2$ to arbitrary conductivity values. Based on the geometry of the problem, which components (x, y, z) of each field (E, B, Bsec or J) are zero? Run the*Fields app*and set*AmpDir = None*. Next, try different combinations of*Field*and*Comp*. Does the simulation match what you initially thought?

**Q2:**Re-run the*Fields app*to set parameters back to default. Note that $\sigma_b = \sigma_1 = 0.0001$ S/m and $\sigma_2 = 1$ S/m. Now set*f index = 1*(resistive limit),*Field = J*and*Re/Im = Amp*. Begin to increase*f index*from 1 to 31. Answer the following:- From
*f index = 16*to*f index = 24*the currents start to be only visible on the edges of the conductor. Why is this?*Hint: consider skin depth inside the conductor*. - As
*f index*$\rightarrow$*31*, where is the largest concentration of currents? Why?

- From

**Q3:**Now set*f index = 21*. What happens to the distribution of current density if the layer conductivity is increased from $\sigma_1$ = 0.0001 S/m to 0.001, then to 0.01 S/m, then to 0.1 S/m? Explain.

**Q4:**Re-run the*Fields app*to set parameters back to default. Set*Field = B*,*AmpDir = Direction*,*Re/Im = Re*and*f index = 1*for a vector plot of the primary magnetic field; since at low enough frequencies, the secondary field is negligible compared to the primary field. Now switch*Field = Bsec*and use*Re/Im*to answer the following:- Compare the real and imaginary component of Bsec. Which is bigger in maximum amplitude?
- Near (x,z)=(0,0), is the largest component (Re or Im) in the same direction as the primary field or opposite?
- Repeat 1 and 2 using
*f index = 31*

We use this app to simulate the fields and currents everywhere due to a harmonic VMD source. The fields and induced currents depend on the frequency of the harmonic VMD source and the subsurface conductivity distribution. You will use the app to change various parameters in the model and see how the fields and currents change.

**Field:**Type of EM fields ("E": electric field, "B": total magnetic flux density, "Bsec": secondary magnetic flux density, "J": current density and "Model": conductivity model)**AmpDir:**If*None*is selected, then the*x*,*y*or*z*component chosen on the next line is plotted. If*Direction*is chosen, a vector plot is plotted (only possible for B and Bsec)**Comp.:**If*None*is selected on the previous line, the user chooses whether the*x*,*y*or*z*component is plotted.**Re/Im:**Type of complex data ("Re", "Im", "Amp", "Phase")- $\boldsymbol{\sigma_0}$: Conductivity above z=0m (leave as 1e-8) in S/m
- $\boldsymbol{\sigma_b}$: Background conductivity below z = 0 m in S/m
- $\boldsymbol{\sigma_1}$: Conductivity of the layer in S/m
- $\boldsymbol{\sigma_2}$: Conductivity of the sphere in S/m
- $\boldsymbol{\chi}$: Susceptibility below z = 0 m in SI
- $\boldsymbol{d_1}$: Depth to the top of the layer
- $\boldsymbol{h_1}$: Thickness of the layer
- $\boldsymbol{d_2}$: Depth to the centre of the sphere
- $\boldsymbol{R}$: Radius of the sphere
**Scale:**Plot data values on*log-scale*or*linear-scale*- $\boldsymbol{\Delta x}$ (m): Horizontal separation distance between the transmitter and receiver
- $\boldsymbol{\Delta z}$ (m): Height of the transmitter and receiver above the Earth's surface
**f index:**Frequency index for the set of frequencies models by this app

In [ ]:

```
vmd.InteractivePlane_Sphere()
```

Using this app, we show how the fields observed at the receiver location depend on the parameters set in the previous app. *Note that if you want to see changes in the data due to changes in the model, you MUST* re-run the previous app.

**Field:**Type of EM fields ("E": electric field, "B": total magnetic flux density, "Bsec": secondary magnetic flux density)**Comp.:**Direction of EM field at Rx locations**Scale:**Scale of y-axis values ("log" or "linear")

In [ ]:

```
vmd.InteractiveData_Sphere()
```

EM fields will be depenent upon a number of parameters, using a simple half-space model ($\sigma_1=\sigma_2=\sigma_3$) explore how EM fields and data changes upon below four parameters.

- E1: Effects of frequency?

- E2: Effects of Tx height?

- E3: Effects of Conductivity?

- E4: Effects of Susceptibility?

In [ ]:

```
```

In [ ]:

```
```