-
Notifications
You must be signed in to change notification settings - Fork 5
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
update doc/readme; Add another example
- Loading branch information
1 parent
6e6c4f8
commit 9cc0011
Showing
7 changed files
with
53 additions
and
20 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,3 @@ | ||
# -*- coding: utf-8 -*- | ||
"""Provide a central version""" | ||
__version__ = "1.0.0.dev0" | ||
__version__ = "1.0.0.rc1" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,28 @@ | ||
# -*- coding: utf-8 -*- | ||
import numpy as np | ||
from matplotlib import pyplot as plt | ||
from anaflow import theis, thiem | ||
|
||
|
||
time = [10, 100, 1000] | ||
rad = np.geomspace(0.1, 10) | ||
r_ref = np.full_like(rad, 10.0) | ||
|
||
head_ref = theis(time, r_ref, storage=1e-3, transmissivity=1e-4, rate=-1e-4) | ||
head1 = theis(time, rad, storage=1e-3, transmissivity=1e-4, rate=-1e-4) - head_ref | ||
head2 = theis(time, rad, storage=1e-3, transmissivity=1e-4, rate=-1e-4, r_bound=r_ref[0]) | ||
head3 = thiem(rad, r_ref[0], transmissivity=1e-4, rate=-1e-4) | ||
|
||
for i, step in enumerate(time): | ||
label_1 = "Theis quasi steady" if i == 0 else None | ||
label_2 = "Theis bounded" if i == 0 else None | ||
plt.plot(rad, head1[i], label=label_1, color="C"+str(i), linestyle="--") | ||
plt.plot(rad, head2[i], label=label_2, color="C"+str(i)) | ||
|
||
plt.plot(rad, head3, label="Thiem", color="k", linestyle=":") | ||
|
||
plt.xlabel("r in [m]") | ||
plt.ylabel("h in [m]") | ||
plt.legend() | ||
plt.tight_layout() | ||
plt.show() |