Skip to content

Commit

Permalink
Some doc changes and building pit updates (#99)
Browse files Browse the repository at this point in the history
* add building pits to docs

* add 3D building pit elements
- add 3D versions of building pit elements (leaky and impermeable)
- allow resistance to be passed as array (LeakyBuildingPit)
- update docs

* add building pits to docs

* start of new docs (#93) (#98)

* start of new docs

* Create tutorial0_well_single_layer.ipynb

first tutorial notebook

* add sections following tip by @Hugovdberg
- merge nb output streams
- improve some toctrees
- improve tutorial nb (start w/ H1 heading)

* modified tutorial 0 and added tutorial 1

* renamed tutorial 0

---------

Co-authored-by: Mark Bakker <markbak@gmail.com>

* update nb

* Update index.rst

fixed some links

* update circular pit nb

* return intnormflux per layer and line segment

* update nb

* Updated documentation of intnormflux

* up version

* fix parallel builds for coveralls

* get rid of extra github icon

---------

Co-authored-by: Davíd Brakenhoff <d.brakenhoff@artesia-water.nl>
  • Loading branch information
mbakker7 and dbrakenhoff committed Dec 6, 2023
1 parent 940a847 commit d980d6a
Show file tree
Hide file tree
Showing 12 changed files with 619 additions and 134 deletions.
10 changes: 10 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -44,4 +44,14 @@ jobs:
- name: Publish to coveralls.io
uses: coverallsapp/github-action@v2
with:
parallel: true
github-token: ${{ secrets.GITHUB_TOKEN }}

finish:
needs: test
runs-on: ubuntu-latest
steps:
- name: Close parallel build
uses: coverallsapp/github-action@v2
with:
parallel-finished: true
12 changes: 9 additions & 3 deletions docs/00tutorials/index.rst
Original file line number Diff line number Diff line change
Expand Up @@ -8,9 +8,15 @@ TimML tutorials.
:hidden:
:glob:

tutorial0_well_single_layer
tutorial0_well_single_layer_aquifer
tutorial1_well_multi_layer_aquifer


`Tutorial 1 - Well in a single aquifer`_
`Tutorial 0 - Well in a single aquifer`_

.. _Tutorial 1 - Well in a single aquifer: tutorial0_well_single_layer.html
.. _Tutorial 0 - Well in a single aquifer: tutorial0_well_single_layer_aquifer.html


`Tutorial 1 - Well in a multi-aquifer system`_

.. _Tutorial 1 - Well in a multi aquifer system: tutorial1_well_multi_layer_aquifer.html
18 changes: 14 additions & 4 deletions docs/01howto/elements/inhoms.rst
Original file line number Diff line number Diff line change
@@ -1,7 +1,9 @@
Inhomogeneities
===============

Polygonal inhomogeneities can be added in the following ways:
The following polygonal inhomogeneities are available in TimML. Note that there are
inhomogeneities for both multi-aquifer style models (:class:`~timml.model.ModelMaq`)
and single aquifer models (with multiple layers, :class:`~timml.model.Model3D`).

1. :class:`~timml.inhomogeneity.PolygonInhomMaq`, which is an inhomogeneity consisting
of a regular sequence of aquifer - leaky layer - aquifer - leaky layer, aquifer, etc.
Expand All @@ -12,10 +14,18 @@ Polygonal inhomogeneities can be added in the following ways:
the resistance from the middle of one layer to the middle of the next layer. Vertical
anisotropy can be specified. The system may be bounded on top by a leaky layer.

3. :class:`~timml.inhomogeneity.BuildingPit`, which is an inhomogeneity similar to
3. :class:`~timml.inhomogeneity.BuildingPitMaq`, which is an inhomogeneity similar to
`PolygonInhomMaq` in which impermeable walls can be placed along the edges of the
imhomogeneity in specified layers.

4. :class:`~timml.inhomogeneity.LeakyBuildingPit`, which is an inhomogeneity like
`BuildingPit` but with leaky walls instead of impermeable walls. The resistance of the
4. :class:`~timml.inhomogeneity.BuildingPit3D`, which is an inhomogeneity similar to
`PolygonInhom3D` in which impermeable walls can be placed along the edges of the
imhomogeneity in specified layers.

5. :class:`~timml.inhomogeneity.LeakyBuildingPitMaq`, which is an inhomogeneity like
`BuildingPitMaq` but with leaky walls instead of impermeable walls. The resistance of the
leaky walls can be specified.

6. :class:`~timml.inhomogeneity.LeakyBuildingPit3D`, which is an inhomogeneity like
`BuildingPit3D` but with leaky walls instead of impermeable walls. The resistance of the
leaky walls can be specified.
16 changes: 8 additions & 8 deletions docs/conf.py
Original file line number Diff line number Diff line change
Expand Up @@ -49,14 +49,14 @@
"github_url": "https://github.com/mbakker7/timml",
"use_edit_page_button": True,
"header_links_before_dropdown": 6,
"icon_links": [
{
"name": "GitHub", # Label for this link
"url": "https://github.com/mbakker7/timml", # required
"icon": "fab fa-github-square",
"type": "fontawesome", # Default is fontawesome
}
],
# "icon_links": [
# {
# "name": "GitHub", # Label for this link
# "url": "https://github.com/mbakker7/timml", # required
# "icon": "fab fa-github-square",
# "type": "fontawesome", # Default is fontawesome
# }
# ],
}

html_context = {
Expand Down
22 changes: 11 additions & 11 deletions notebooks/BuildingPit.ipynb

Large diffs are not rendered by default.

143 changes: 99 additions & 44 deletions notebooks/circular_buildingpit.ipynb

Large diffs are not rendered by default.

6 changes: 4 additions & 2 deletions timml/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -18,8 +18,10 @@
from .circareasink import CircAreaSink
from .constant import Constant, ConstantStar
from .inhomogeneity import (
BuildingPit,
LeakyBuildingPit,
BuildingPit3D,
BuildingPitMaq,
LeakyBuildingPit3D,
LeakyBuildingPitMaq,
PolygonInhom3D,
PolygonInhomMaq,
)
Expand Down
10 changes: 5 additions & 5 deletions timml/equation.py
Original file line number Diff line number Diff line change
Expand Up @@ -523,9 +523,9 @@ def equation(self):
/ self.aqout.Tcol[self.layers]
)

mat[
istart : istart + self.nlayers, ieq : ieq + e.nunknowns
] = flux - self.resfac * (headin - headout)
mat[istart : istart + self.nlayers, ieq : ieq + e.nunknowns] = (
flux - self.resfac * (headin - headout)
)
ieq += e.nunknowns
else:
flux = self.intflux(
Expand Down Expand Up @@ -562,7 +562,7 @@ def equation(self):
/ self.aqout.T[self.layers]
)

rhs[istart : istart + self.nlayers] += -flux + self.resfac * (
headin - headout
rhs[istart : istart + self.nlayers] += (
-flux + self.resfac.squeeze() * (headin - headout)
)
return mat, rhs
Loading

0 comments on commit d980d6a

Please sign in to comment.