Skip to content

Instantly share code, notes, and snippets.

View lheagy's full-sized avatar

Lindsey Heagy lheagy

View GitHub Profile
@lheagy
lheagy / LICENSE
Last active April 11, 2023 09:36
Unit testing for jupyter notebooks
The MIT License (MIT)
Copyright (c) 2016 Lindsey Heagy
Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the Software is
furnished to do so, subject to the following conditions:
@lheagy
lheagy / OrganizingDerivs.md
Last active August 29, 2015 14:20
OrganizingDerivs

:uid: OrganizingDerivs

@lheagy
lheagy / PrimarySecondary.md
Last active July 31, 2016 03:47
1+1=2, but sometimes it is more useful to think of 2=a+b where a=...

:uid: PSfdem :title: Primary-Secondary Approaches for Frequency Domain Maxwell :description: 1+1=2, but sometimes it is more useful to think of 2=a+b where a=... :tooltip:/img/twoab :tag: em,fdem,finite volume,primary-secondary :group: simpeg :license: CC-BY-4.0 :source: https://api.github.com/gists/b10a48dfea9af70aeb52

When solving any math or physics problem, there are usually a few tricks that can take you a long ways. Some of the favorites are: multiplying by 1 (or the identity), adding zero, and breaking things up in to sums (i.e. 2 = a+b, where a=1). I am sure these will be recurring themes among our articles. Here, I am going to spend some time on last point in the context of the frequency domain Maxwell's equations. In this case, 2 = a+b goes by the name of Primary-Secondary. I will develop this for the frequency domain electromagnetic (FDEM) problem, but keep in mind that it is quite general.

@lheagy
lheagy / HJformulation.md
Last active July 31, 2016 21:00
Implementing the E-B and H-J forumlations of Maxwell's Equations in the Frequency Domain

:uid: HJformulation :title: Implementations of Frequency Domain Maxwell in simpegEM :description: Implementing the E-B and H-J forumlations of Maxwell's Equations in the Frequency Domain :tooltip: /img/ebjhdiscretizations :tag: em,fdem,finite volume :group: simpeg :license: CC-BY-4.0 :source: https://api.github.com/gists/bff38224e409b4d6eae9

This past week, I worked on implementing the H-J formulation of Maxwell's equations (in the Frequency Domain) in simpegEM. So for this week's journal, I thought I would write about the 4 different approaches we have implemented for solving the FDEM problem.

@lheagy
lheagy / anisotropic-conductivity.md
Last active August 29, 2015 14:15
when electrical conductivity varies with direction

:uid: anisotropic-conductivity :title: Anisotropic Conductivity :description: when electrical conductivity varies with direction :tooltip: None :tag: conductivity,anisotropy,dc,em,physical properties :group: simpeg :license: CC-BY-4.0 :source: https://api.github.com/gists/56c47e9a872aa908705d

When a physical property of a material varies with direction, that

@lheagy
lheagy / ipython-as-a-teaching-tool.md
Last active July 31, 2016 21:21
Using the iPython notebook to explore a normal incidence seismogram

:uid: ipython-as-a-teaching-tool :title: IPython Notebook as a Teaching Tool :description: Using the iPython notebook to explore a normal incidence seismogram :tooltip: /img/IPython-Seismic-Tooltip.png :tag: education,ipython,seismic :group: simpeg :license: CC-BY-4.0 :source: https://api.github.com/gists/5213fad87fe4be9d0887

Last fall I was a part of a TA team (along with Mr. Seogi Kang!) for my supervisor's undergrad geophysics course.

@lheagy
lheagy / SimPEG Tutorial-First One.ipynb
Last active August 29, 2015 14:13
Hello World description
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
import numpy as np
import matplotlib.pyplot as plt
def syntheticSeismogram(v, rho, d, wavtyp, wavf, usingT):
"""
function syntheticSeismogram(v, rho, d, wavtyp, wavf, usingT)
syntheicSeismogram generates and displays a synthetic seismogram for