xslope 0.1.12__py3-none-any.whl → 0.1.14__py3-none-any.whl
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- xslope/_version.py +1 -1
- xslope/advanced.py +3 -3
- xslope/fem.py +3 -3
- xslope/fileio.py +427 -240
- xslope/mesh.py +80 -27
- xslope/plot.py +194 -47
- xslope/plot_seep.py +7 -7
- xslope/seep.py +9 -9
- xslope/slice.py +31 -9
- xslope/solve.py +20 -8
- {xslope-0.1.12.dist-info → xslope-0.1.14.dist-info}/METADATA +1 -1
- xslope-0.1.14.dist-info/RECORD +21 -0
- xslope-0.1.12.dist-info/RECORD +0 -21
- {xslope-0.1.12.dist-info → xslope-0.1.14.dist-info}/LICENSE +0 -0
- {xslope-0.1.12.dist-info → xslope-0.1.14.dist-info}/NOTICE +0 -0
- {xslope-0.1.12.dist-info → xslope-0.1.14.dist-info}/WHEEL +0 -0
- {xslope-0.1.12.dist-info → xslope-0.1.14.dist-info}/top_level.txt +0 -0
xslope/_version.py
CHANGED
xslope/advanced.py
CHANGED
|
@@ -23,7 +23,7 @@ def rapid_drawdown(df, method_name, debug_level=1):
|
|
|
23
23
|
Performs rapid drawdown analysis using a three-stage approach.
|
|
24
24
|
|
|
25
25
|
Parameters:
|
|
26
|
-
df
|
|
26
|
+
df: pandas.DataFrame
|
|
27
27
|
Slice data with all required columns including rapid drawdown specific data:
|
|
28
28
|
- c, phi: current strength parameters
|
|
29
29
|
- c1, phi1: original strength parameters (for stage 3)
|
|
@@ -32,9 +32,9 @@ def rapid_drawdown(df, method_name, debug_level=1):
|
|
|
32
32
|
- u2: pore pressure for lowered pool (stage 2)
|
|
33
33
|
- dload, d_x, d_y: distributed loads (stage 1)
|
|
34
34
|
- dload2, d_x2, d_y2: distributed loads for lowered pool (stage 2)
|
|
35
|
-
method_name
|
|
35
|
+
method_name: str
|
|
36
36
|
The method name to use ('oms', 'bishop', 'spencer', etc.)
|
|
37
|
-
debug_level
|
|
37
|
+
debug_level: int
|
|
38
38
|
0: no output, 1: print FS at each stage, >1: detailed debug info
|
|
39
39
|
|
|
40
40
|
Returns:
|
xslope/fem.py
CHANGED
|
@@ -204,8 +204,8 @@ def build_fem_data(slope_data, mesh=None):
|
|
|
204
204
|
elif "profile_lines" in slope_data:
|
|
205
205
|
# Check if one of the profile lines is designated as piezo
|
|
206
206
|
for line in slope_data["profile_lines"]:
|
|
207
|
-
if
|
|
208
|
-
piezo_line_coords = line
|
|
207
|
+
if line.get('type') == 'piezo':
|
|
208
|
+
piezo_line_coords = line['coords']
|
|
209
209
|
break
|
|
210
210
|
|
|
211
211
|
if piezo_line_coords:
|
|
@@ -226,7 +226,7 @@ def build_fem_data(slope_data, mesh=None):
|
|
|
226
226
|
u[i] = 0.0
|
|
227
227
|
|
|
228
228
|
elif pp_option == "seep":
|
|
229
|
-
# Use existing
|
|
229
|
+
# Use existing seep solution
|
|
230
230
|
if "seepage_solution" in slope_data:
|
|
231
231
|
seepage_solution = slope_data["seepage_solution"]
|
|
232
232
|
if isinstance(seepage_solution, np.ndarray) and len(seepage_solution) == n_nodes:
|