Updates to examples and documentation.

This commit is contained in:
Rowan Cockett
2015-11-24 22:09:50 -08:00
parent 109340c645
commit 56d5019b94
15 changed files with 201 additions and 41 deletions
+9 -2
View File
@@ -3,8 +3,15 @@
Examples
********
Forward problem
===============
.. toctree::
:maxdepth: 1
:glob:
examples/*
External Notebooks
==================
* `Example 1: Direct Current <http://www.seogi.me/s/notebooks/DCEx.html>`_
* `Example 2: Seismic-Acoustic <http://www.seogi.me/s/notebooks/SeismicEx.html>`_
+2 -16
View File
@@ -23,23 +23,9 @@ the implementations.
.. plot::
from SimPEG import Mesh, Utils, np
import matplotlib.pyplot as plt
sz = [10,10]
tM = Mesh.TensorMesh(sz)
qM = Mesh.TreeMesh(sz)
qM.refine(lambda X: 1 if np.sqrt(((X-0.5)**2).sum()) < 0.3 else 0)
rM = Mesh.CurvilinearMesh(Utils.meshutils.exampleLrmGrid(sz,'rotate'))
from SimPEG import Examples
Examples.Mesh_ThreeMeshes.run()
fig, axes = plt.subplots(1,3,figsize=(14,5))
opts = {}
tM.plotGrid(ax=axes[0], **opts)
axes[0].set_title('TensorMesh')
qM.plotGrid(ax=axes[1], **opts)
axes[1].set_title('TreeMesh')
rM.plotGrid(ax=axes[2], **opts)
axes[2].set_title('CurvilinearMesh')
plt.show()
Variable Locations and Terminology
@@ -0,0 +1,17 @@
.. _examples_Forward_BasicDirectCurrent:
.. ------------------------------ ..
.. THIS FILE IS AUTO GENEREATED ..
.. ------------------------------ ..
Forward BasicDirectCurrent
==========================
.. plot::
from SimPEG import Examples
Examples.Forward_BasicDirectCurrent.run()
.. literalinclude:: ../../SimPEG/Examples/Forward_BasicDirectCurrent.py
:language: python
:linenos:
+17
View File
@@ -0,0 +1,17 @@
.. _examples_Inversion_Linear:
.. ------------------------------ ..
.. THIS FILE IS AUTO GENEREATED ..
.. ------------------------------ ..
Inversion Linear
================
.. plot::
from SimPEG import Examples
Examples.Inversion_Linear.run()
.. literalinclude:: ../../SimPEG/Examples/Inversion_Linear.py
:language: python
:linenos:
+17
View File
@@ -0,0 +1,17 @@
.. _examples_Mesh_QuadTree_Create:
.. ------------------------------ ..
.. THIS FILE IS AUTO GENEREATED ..
.. ------------------------------ ..
Mesh QuadTree Create
====================
.. plot::
from SimPEG import Examples
Examples.Mesh_QuadTree_Create.run()
.. literalinclude:: ../../SimPEG/Examples/Mesh_QuadTree_Create.py
:language: python
:linenos:
+17
View File
@@ -0,0 +1,17 @@
.. _examples_Mesh_ThreeMeshes:
.. ------------------------------ ..
.. THIS FILE IS AUTO GENEREATED ..
.. ------------------------------ ..
Mesh ThreeMeshes
================
.. plot::
from SimPEG import Examples
Examples.Mesh_ThreeMeshes.run()
.. literalinclude:: ../../SimPEG/Examples/Mesh_ThreeMeshes.py
:language: python
:linenos: