Code reference
==============
.. toctree::
:maxdepth: 3
Main interfaces
---------------
.. mermaid::
flowchart TD
A["bh.Models
Registry of models"]
B["bh.Models.new(...)
create new model"]
C["bh.Models.supported()
list all models"]
D["env = bh.Environment()
create Environment instance"]
E["bh.compute(env, ...)
run with default model"]
B --> A
A --> C
D --> E
A --> E
File structure
--------------
+------------------+-------------------------------------------------+
| Source file | Description |
+==================+=================================================+
| `main.py` | Top level module file |
+------------------+-------------------------------------------------+
| `models.py` | Model registry for BellhopSimulator variants |
+------------------+-------------------------------------------------+
| `bellhop.py` | Class definition of bellhop(3d).exe interface |
+------------------+-------------------------------------------------+
| `constants.py` | Strings and mappings mainly for option parsing |
+------------------+-------------------------------------------------+
| `readers.py` | Functions for reading Bellhop input text files |
+------------------+-------------------------------------------------+
| `writers.py` | Functions for writing Bellhop input text files |
+------------------+-------------------------------------------------+
| `environment.py` | Environment class definition |
+------------------+-------------------------------------------------+
| `compute.py` | Wrapper functions for executing computations |
+------------------+-------------------------------------------------+
| `plot.py` | Plotting functions using Bokeh |
+------------------+-------------------------------------------------+
| `plotutils.py` | Internal interface to Bokeh |
+------------------+-------------------------------------------------+
| `pyplot.py` | Plotting functions using Matplotlib |
+------------------+-------------------------------------------------+