Skip to content

Commit b43c866

Browse files
committed
Edit more docs
1 parent 0460c10 commit b43c866

9 files changed

Lines changed: 145 additions & 106 deletions

File tree

docs/_toc.yml

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -34,10 +34,8 @@ chapters:
3434
- file: case_studies/Forrestania/python_code/unconstrained_gravity_inv_training
3535
- file: case_studies/Forrestania/python_code/unconstrained_magnetics_inv_training
3636
- file: case_studies/Forrestania/python_code/joint_grav_mag
37-
- file: plate-simulation/index
37+
- file: plate-simulation/simulation
3838
sections:
39-
- file: plate-simulation/usage
40-
title: Basic Usage
41-
- file: plate-simulation/methodology
42-
title: Methodology
39+
- file: plate-simulation/sweep
40+
- file: plate-simulation/match
4341
- file: THIRD_PARTY_SOFTWARE

docs/conf.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -42,6 +42,7 @@
4242
exclude_patterns = []
4343
todo_include_todos = True
4444

45+
4546
# -- Options for auto-doc ----------------------------------------------------
4647
# https://www.sphinx-doc.org/en/master/usage/extensions/autodoc.html#module-sphinx.ext.autodoc
4748

docs/plate-simulation/images/methodology/analyst_geophysics_menu.png renamed to docs/images/analyst_geophysics_menu.png

File renamed without changes.

docs/intro.md

Lines changed: 31 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,16 +1,45 @@
11
# About
22

3-
This document contains training material for geophysical inversions using [SimPEG](https://simpeg.xyz/) and [Geoscience ANALYST](https://www.mirageoscience.com/mining-industry-software/geoscience-analyst/).
3+
This document contains training material for geophysical forward modeling and inversions using [SimPEG](https://simpeg.xyz/) and [Geoscience ANALYST](https://www.mirageoscience.com/mining-industry-software/geoscience-analyst/).
44
```{image} ./images/ore_body.png
55
:width: 500px
66
```
77

8-
# Table of content
8+
9+
# Table of contents
910

1011
```{tableofcontents}
1112
```
1213

1314

15+
# Running the applications
16+
17+
The main entry point to the various modules are the [*.ui.json](https://github.com/MiraGeoscience/simpeg-drivers/blob/develop/simpeg_drivers-assets/uijson)
18+
files. The ``ui.json`` serves a dual purpose:
19+
20+
(1) rendering a user-interface in Geoscience ANALYST
21+
22+
(2) storing the input parameters chosen by the user for the program to run. See the [UIJson documentation](https://mirageoscience-geoh5py.readthedocs-hosted.com/en/latest/content/uijson_format/usage.html)
23+
for more information about the ui.json interface.
24+
25+
The various user-interfaces can be accessed from the Geoscience ANALYST Pro Geophysics menu.
26+
27+
```{image} ./images/analyst_geophysics_menu.png
28+
:width: 500px
29+
```
30+
31+
The application can also be run from command line if all required fields in
32+
the ui.json are provided. This approach is useful for advanced users who want to
33+
automate the mesh creation process or re-run an existing mesh with different parameters.
34+
35+
To run any of the applications, assuming a valid Conda environment, use the following command:
36+
37+
``conda activate simpeg-drivers``
38+
39+
``python -m simpeg-drivers.driver [YOUR.ui.json]``
40+
41+
where ``[YOUR.ui.json]`` is the path to the input ui.json file on disk.
42+
1443

1544
# References
1645

-1.7 KB
Loading

docs/plate-simulation/index.rst

Lines changed: 0 additions & 24 deletions
This file was deleted.

docs/plate-simulation/match.rst

Lines changed: 30 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,30 @@
1+
.. _plate_simulation_match:
2+
3+
Plate Matching
4+
==============
5+
6+
The Plate Matching module provides a user interface for querying a database of plate simulations to find the simulation that best matches a set of user-defined criteria.
7+
8+
Interface
9+
---------
10+
11+
.. figure:: /plate-simulation/images/sweep/sweep_uijson.png
12+
:align: center
13+
:width: 80%
14+
15+
*Rendered user-interface in Geoscience ANALYST.*
16+
17+
Inputs
18+
^^^^^^
19+
20+
- **A**
21+
22+
Methodology
23+
-----------
24+
25+
Something
26+
27+
28+
Tutorial
29+
--------
30+
To be added.
Lines changed: 55 additions & 69 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,27 @@
1-
.. _plate_simulation_usage:
1+
.. _plate_simulation_index:
22

3-
Basic Usage
4-
-----------
3+
Plate Simulation
4+
================
5+
6+
The plate-simulation application is a tool for simulating geophysical data over
7+
a simple two-layer earth model with plate(s). It relies on the
8+
`discretize <https://discretize.simpeg.xyz/en/main/>`_
9+
and `SimPEG <https://simpeg.xyz/>`_ projects to create a refined octree mesh and
10+
simulate data over the parameterized model. The mesh, model and simulation
11+
details are parameterized in a ui.json file that can be rendered in
12+
`Geoscience ANALYST Pro <https://www.mirageoscience.com/mining-industry-software/geoscience-analyst-pro/>`_.
13+
14+
.. figure:: /plate-simulation/images/index.png
15+
:align: center
16+
:width: 50%
17+
18+
19+
Interface
20+
=========
521

622
Simulating geophysical data from a physical property model requires three things:
723
a computational mesh, a discretization of the model within that mesh, and a means
8-
to simulate the data. Plate simulation relies on `discretize <https://discretize.simpeg.xyz/en/main/>`_
9-
for octree mesh creation and `SimPEG <https://simpeg.xyz/>`_ for finite volume
10-
based forward modeling. Plate simulation includes a module for generating a simple
24+
to simulate the data. Plate simulation includes a module for generating a simple
1125
two-layer model with embedded plate anomalies within octree meshes. This section
1226
discusses all three of these components, their interface exposed by the ui.json file,
1327
and the storage of results.
@@ -18,35 +32,6 @@ and the storage of results.
1832

1933
*Merged images of both tabs of the ui.json rendered interface.*
2034

21-
.. contents::
22-
23-
.. toctree::
24-
:maxdepth: 3
25-
26-
27-
Octree Mesh
28-
-----------
29-
30-
To accurately simulate the earth model, the mesh must be refined in key areas
31-
while remaining coarse enough elsewhere to efficiently simulate data. Plate
32-
simulation includes refinements at the earth-air interface, the transmitter and
33-
receiver sites, and on the surface of plates.
34-
35-
.. figure:: /plate-simulation/images/methodology/mesh/refinement.png
36-
:align: center
37-
:width: 100%
38-
39-
*Octree mesh refinement for earth-air interface, receiver sites,
40-
and within the mesh.*
41-
42-
The meshing is controlled by options exposed in the ui.json. These options are
43-
significantly reduced compared with octree creation from `grid-app <https://mirageoscience-grid-apps.readthedocs-hosted.com/>`_,
44-
as many parameters have been tailored to suit the needs of plate simulation.
45-
46-
.. figure:: /plate-simulation/images/methodology/mesh/mesh_options.png
47-
:align: center
48-
49-
*Octree mesh parameters exposed in the ui.json.*
5035

5136
Geological Model
5237
----------------
@@ -55,12 +40,12 @@ Plate simulation includes a module for generating plates embedded in a two-layer
5540
Earth model within octree meshes. Many permutations of this simple geological
5641
scenario result in a complex interface. To simplify this, the discussion is
5742
organized into two sub-sections: background (basement and overburden) and plates.
43+
All model values within plate-simulation must be provided in SI units that varies depending on the chosen forward simulation (g/cc, SI or Ohm.m)
5844

5945
Background
6046
~~~~~~~~~~
6147

62-
All model values within plate-simulation must be provided in ohm-metres. The
63-
basement resistivity is actually closer to a halfspace in the sense that it
48+
The basement resistivity is actually closer to a halfspace in the sense that it
6449
fills the model anywhere outside of the overburden and plate. Therefore, the
6550
basement resistivity should be chosen as an effective resistivity for the whole
6651
geological section. This approach is quite reasonable for most applications
@@ -115,7 +100,7 @@ and share the same resistivity, size, and orientation.
115100

116101
*Model created by choosing three plates spaced at 200m.*
117102

118-
The plate resistivity must be entered in ohm-metres.
103+
The plate resistivity must be entered in SI units (g/cc, SI or Ohm.m).
119104

120105
.. figure:: /plate-simulation/images/methodology/model/plate_resistivity_option.png
121106
:align: center
@@ -228,6 +213,30 @@ and at least one component must be selected to run the simulation.
228213

229214
*Simulation options with annotations for required and not required components.*
230215

216+
Octree Mesh
217+
-----------
218+
219+
To accurately simulate the earth model, the mesh must be refined in key areas
220+
while remaining coarse enough elsewhere to efficiently simulate data. Plate
221+
simulation includes refinements at the earth-air interface, the transmitter and
222+
receiver sites, and on the surface of plates.
223+
224+
.. figure:: /plate-simulation/images/methodology/mesh/refinement.png
225+
:align: center
226+
:width: 100%
227+
228+
*Octree mesh refinement for earth-air interface, receiver sites,
229+
and within the mesh.*
230+
231+
The meshing is controlled by options exposed in the ui.json. These options are
232+
significantly reduced compared with octree creation from `grid-app <https://mirageoscience-grid-apps.readthedocs-hosted.com/>`_,
233+
as many parameters have been tailored to suit the needs of plate simulation.
234+
235+
.. figure:: /plate-simulation/images/methodology/mesh/mesh_options.png
236+
:align: center
237+
238+
*Octree mesh parameters exposed in the ui.json.*
239+
231240
Results
232241
-------
233242

@@ -248,39 +257,16 @@ To iterate on the design of experiment, copy the options, edit them, and run aga
248257

249258
*Copying the options to run a new simulation.*
250259

251-
To sweep one or more input parameters and run multiple simulations, use the
252-
``generate sweep file`` option to create a file for the `param-sweeps <https://github.com/MiraGeoscience/param-sweeps>`_
253-
package. See the param-sweeps README for further details on using that package.
254-
255-
.. figure:: /plate-simulation/images/methodology/sweep_option.png
256-
:align: center
257-
258-
*Generating a sweep file to run multiple simulations.*
259-
260-
261-
Running the application
262-
-----------------------
263260

264-
The main entry point to the various modules is the `plate_simulation.ui.json <https://github.com/MiraGeoscience/plate-simulation/blob/develop/plate_simulation-assets/uijson/plate_simulation.ui.json>`_
265-
file. The ``ui.json`` serves a dual purpose: (1) rendering a user-interface in
266-
Geoscience ANALYST and (2) storing the input parameters chosen by the user for the
267-
program to run. See the `UIJson documentation <https://mirageoscience-geoh5py.readthedocs-hosted.com/en/latest/content/uijson_format/usage.html>`_
268-
for more information about the ui.json interface.
261+
Advanced Applications
262+
---------------------
269263

270-
Access the user-interface from the Geoscience ANALYST Pro Geophysics menu.
264+
Two other applications are available to assist users in finding the best plate parameters to match observed data.
265+
The sweep application allows users to run a batch of simulations over a range of plate parameters, while the matching application uses an optimization algorithm to find the best fit between simulated and observed data.
271266

272-
.. figure:: /plate-simulation/images/methodology/analyst_geophysics_menu.png
273-
:align: center
274-
:width: 800
275267

276-
The application can also be run from the command line if all required fields in
277-
the ui.json are provided. This approach is useful for advanced users who want to
278-
automate the mesh creation process or re-run an existing mesh with different parameters.
279-
280-
To run the application from the command line, use the following command in a Conda Prompt:
281-
282-
``conda activate plate-simulation``
283-
284-
``python -m plate-simulation.driver input_file.json``
268+
.. toctree::
269+
:maxdepth: 1
285270

286-
where ``input_file.json`` is the path to the input file on disk.
271+
sweep
272+
match

docs/plate-simulation/sweep.rst

Lines changed: 25 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,17 +1,36 @@
11
.. _plate_simulation_batch:
22

3-
Sweep (batch) Simulations
4-
=========================
3+
Batch Simulations
4+
=================
55

6-
The Plate Sweep module provides a user interface for generating and running multiple simulations by sweeping one or more of the input parameters. The user can select which parameters to sweep and the range of values for each parameter. The results of each simulation are stored in a ``*.geoh5`` file named with a unique identifier.
6+
The Plate Sweep module provides a user interface for generating and running a batch of simulations by sweeping one or more of the input parameters. The user can select which parameters to sweep and the range of values for each parameter. The results of each simulation are stored in a ``*.geoh5`` file named with a unique identifier.
7+
8+
9+
10+
Interface
11+
---------
712

813
.. figure:: /plate-simulation/images/sweep/sweep_uijson.png
914
:align: center
1015
:width: 80%
1116

1217
*Rendered user-interface in Geoscience ANALYST.*
1318

14-
.. contents::
19+
Inputs
20+
^^^^^^
21+
22+
- **Plate simulation**: A Plate Simulation group that contains the input parameters for a single plate simulation, as well as the connection to a SimPEG Forward group. Parameters that are not included in the sweep will be taken from this group and used for all simulations.
23+
- **Output directory**: A directory where the results of each simulation will be stored. Each simulation will be saved in a separate ``*.geoh5`` file named with a unique identifier. The directory is created if it does not exist, otherwise simulations are appended to it.
24+
- **Generate summary file**: A boolean option to generate a summary file in the output directory. The summary file is a ``*.xls`` file that contains the input parameters and results of each simulation, allowing users to easily sort over the range of simulation parameters.
25+
- **Sweep block**: For each the following parameters, users can choose a **starting**, **ending** and **step** value to sweep over a range of values. The application will generate a simulation for each value in the range, while keeping all other parameters constant.
26+
- **Background**: Over-writing the
27+
28+
Methodology
29+
-----------
30+
31+
Something
32+
1533

16-
.. toctree::
17-
:maxdepth: 3
34+
Tutorial
35+
--------
36+
To be added.

0 commit comments

Comments
 (0)