Skip to content

Commit e434727

Browse files
committed
first version of the docs
1 parent 0ad772f commit e434727

20 files changed

+1312
-306
lines changed

LICENSE

Lines changed: 668 additions & 15 deletions
Large diffs are not rendered by default.

README.md

Lines changed: 66 additions & 35 deletions
Original file line numberDiff line numberDiff line change
@@ -1,47 +1,32 @@
1-
[![Code style: black](https://img.shields.io/badge/code%20style-black-000000.svg)](https://github.com/ambv/black)
2-
3-
Welcome to ogs5py
4-
=================
5-
6-
Purpose
7-
-------
8-
ogs5py is A python-API for the OpenGeoSys 5 scientific modeling package.
9-
10-
11-
Installation
12-
------------
13-
You can install the latest version with the following command:
14-
15-
pip install https://github.com/GeoStat-Framework/ogs5py/archive/master.zip
1+
# Welcome to ogs5py
162

3+
[![Code style: black](https://img.shields.io/badge/code%20style-black-000000.svg)](https://github.com/ambv/black)
174

18-
Contents
19-
--------
20-
With ogs5py you can setup, control and start an OGS5 model within python.
5+
<p align="center">
6+
<img src="https://raw.githubusercontent.com/GeoStat-Framework/ogs5py/master/docs/source/pics/OGS.png" alt="ogs5py-LOGO" width="251px"/>
7+
</p>
218

22-
It comes along with a set of handy readers for almost all output formats:
9+
## Purpose
2310

24-
* VTK Domain output
11+
ogs5py is A python-API for the [OpenGeoSys 5][ogs5_link] scientific modeling package.
2512

26-
ogs5py.reader.readvtk
2713

28-
* PVD Domain output
14+
## Installation
2915

30-
ogs5py.reader.readpvd
16+
You can install the latest version with the following command:
3117

32-
* TECPLOT point output
18+
pip install https://github.com/GeoStat-Framework/ogs5py/archive/master.zip
3319

34-
ogs5py.reader.readtec_point
3520

36-
* TECPLOT polyline output
21+
## Documentation for ogs5py
3722

38-
ogs5py.reader.readtec_polyline
23+
You can find the documentation under (...will follow soon...)
3924

4025

41-
Example
42-
-------
26+
### Tutorials and Examples
4327

44-
In the following a simple transient pumping test is simulated on a radial symmetric mesh. The point output at the observation well is plotted afterwards.
28+
In the following a simple transient pumping test is simulated on a radial symmetric mesh.
29+
The point output at the observation well is plotted afterwards.
4530

4631
```python
4732
from ogs5py import OGS
@@ -127,12 +112,58 @@ plt.plot(time, head)
127112
plt.show()
128113
```
129114

130-
Requirements
131-
------------
132-
The ogs5 executable needs to be in your sys-path. Otherwise you need to specify the path to the executable within the run command:
115+
<p align="center">
116+
<img src="https://raw.githubusercontent.com/GeoStat-Framework/ogs5py/master/docs/source/01_pump_test_drawdown.png" alt="Drawdown" width="600px"/>
117+
</p>
118+
119+
120+
### Reader
121+
122+
It comes along with a set of handy readers for almost all output formats:
123+
124+
* VTK Domain output
125+
126+
ogs5py.reader.readvtk
127+
128+
* PVD Domain output
129+
130+
ogs5py.reader.readpvd
131+
132+
* TECPLOT point output
133+
134+
ogs5py.reader.readtec_point
135+
136+
* TECPLOT polyline output
137+
138+
ogs5py.reader.readtec_polyline
139+
140+
141+
### OGS5 executable
142+
143+
The OGS5 executable needs to be in your sys-path under ``ogs``.
144+
Otherwise you need to specify the path to the executable within the run command:
133145

134146
ogs.run_model(ogs_root="path/to/ogs")
135147

136-
Created April 2018, Copyright Sebastian Mueller 2018
137148

138-
(inspired by Falk Hesse and Miao Jing)
149+
## Requirements:
150+
151+
- [NumPy >= 1.13.0](https://www.numpy.org)
152+
- [Pandas >= 0.23.0](https://pandas.pydata.org/)
153+
- [whichcraft](https://github.com/pydanny/whichcraft)
154+
- [meshio](https://github.com/nschloe/meshio)
155+
- [lxml](https://github.com/lxml/lxml)
156+
- [vtk](https://vtk.org/)
157+
- [pexpect](https://github.com/pexpect/pexpect)
158+
159+
## Contact
160+
161+
You can contact us via <[email protected]>.
162+
163+
164+
## License
165+
166+
[GPL][gpl_link] © 2018-2019 (inspired by Falk Hesse and Miao Jing)
167+
168+
[gpl_link]: https://github.com/GeoStat-Framework/ogs5py/blob/master/LICENSE
169+
[ogs5_link]: https://www.opengeosys.org/ogs-5/

docs/Makefile

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,8 +3,8 @@
33

44
# You can set these variables from the command line.
55
SPHINXOPTS =
6-
SPHINXBUILD = sphinx-build
7-
SPHINXPROJ = ogs5py
6+
SPHINXBUILD = python3 -msphinx
7+
SPHINXPROJ = GeoStatTools
88
SOURCEDIR = source
99
BUILDDIR = build
1010

docs/requirements.txt

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
#required for readthedocs.org
2+
numpy>=1.13
3+
pandas>=0.23.0
4+
whichcraft
5+
meshio
6+
lxml
7+
vtk
8+
pexpect

docs/source/_templates/layout.html

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
{% extends "!layout.html" %}
2+
{% block menu %}
3+
<p class="link caption"><span class="link caption-text">Documentation</span></p>
4+
{{ super() }}
5+
<br />
6+
<p class="link caption"><span class="link caption-text">ogs5py Links</span></p>
7+
<a href="https://github.com/GeoStat-Framework/GSTools">ogs5py GitHub</a>
8+
<a href="">ogs5py Zenodo DOI</a>
9+
<a href="">ogs5py PyPI</a>
10+
<br />
11+
<p class="link caption"><span class="link caption-text">GeoStat Framework</span></p>
12+
<a href="https://geostat-framework.org">GeoStat Website</a>
13+
<a href="https://github.com/GeoStat-Framework">GeoStat Github</a>
14+
<a href="https://geostat-framework.readthedocs.io">GeoStat ReadTheDocs</a>
15+
<a href="https://pypi.org/user/geostatframework/">GeoStat PyPI</a>
16+
<br />
17+
<br />
18+
<a href="genindex.html">Index</a>
19+
<a href="contents.html">Sitemap</a>
20+
{% endblock %}

0 commit comments

Comments
 (0)