# Fetching and plotting vertical magnetic fields

**URL:** https://simpeg.discourse.group/t/fetching-and-plotting-vertical-magnetic-fields/304
**Category:** Electromagnetics
**Created:** [April 13, 2022, 10:22pm UTC](https://simpeg.discourse.group/t/fetching-and-plotting-vertical-magnetic-fields/304 "2022-04-13T22:22:45Z")
**Posts on this page:** 2
**Page:** 1

<div class="post-metadata">

### Author: ![evan](https://avatars.discourse-cdn.com/v4/letter/e/54ee81/32.png) [@evan](https://simpeg.discourse.group/u/evan)
#### Post date: [April 13, 2022, 10:22pm UTC](https://simpeg.discourse.group/t/fetching-and-plotting-vertical-magnetic-fields/304/1 "2022-04-13T22:22:45Z")

</div>

Hi SimPEG users and developers,

I have a question about how to fetch and plot vertical magnetic fields when an electric dipole source is used. I use a 2d cylindrical model. Both sources and receivers are placed below the air-earth surface. I was able to extract horizontal and vertical electric fields and plot them. A script for extracting the magnetic fields are basically same as those for the electric fields. I was able to grab the horizontal magnetic fields but couldn’t do the same for the vertical magnetic fields.  
I assume that my script has a mistake leading to this error. One can read the script from the link:  
[https://drive.google.com/drive/folders/14kOmXBLldLGbvcGnyLfrv2KkCrry9Snz?usp=sharing](https://drive.google.com/drive/folders/14kOmXBLldLGbvcGnyLfrv2KkCrry9Snz?usp=sharing)  
I would like to hear your opinion. Thank you for reading this.

Best regards,  
Evan

---

<div class="post-metadata">

### Author: ![lheagy](https://yyz2.discourse-cdn.com/free1/user_avatar/simpeg.discourse.group/lheagy/32/6_2.png) [@lheagy](https://simpeg.discourse.group/u/lheagy)
#### Post date: [June 6, 2022, 6:56pm UTC](https://simpeg.discourse.group/t/fetching-and-plotting-vertical-magnetic-fields/304/2 "2022-06-06T18:56:18Z")

</div>

Hi @evan, due to the symmetry of the problem, if you have an electric dipole, there will be

- electric fields / currents in the vertical and radial directions
- magnetic field / fluxes only in the azimuthal component

So there would be no vertical component to the magnetic field in this scenario.
