xslope 0.1.2__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/__init__.py +1 -0
- xslope/_version.py +4 -0
- xslope/advanced.py +460 -0
- xslope/fem.py +2753 -0
- xslope/fileio.py +671 -0
- xslope/global_config.py +59 -0
- xslope/mesh.py +2719 -0
- xslope/plot.py +1484 -0
- xslope/plot_fem.py +1658 -0
- xslope/plot_seep.py +634 -0
- xslope/search.py +416 -0
- xslope/seep.py +2080 -0
- xslope/slice.py +1075 -0
- xslope/solve.py +1259 -0
- xslope-0.1.2.dist-info/LICENSE +196 -0
- xslope-0.1.2.dist-info/METADATA +56 -0
- xslope-0.1.2.dist-info/NOTICE +14 -0
- xslope-0.1.2.dist-info/RECORD +20 -0
- xslope-0.1.2.dist-info/WHEEL +5 -0
- xslope-0.1.2.dist-info/top_level.txt +1 -0
xslope/global_config.py
ADDED
|
@@ -0,0 +1,59 @@
|
|
|
1
|
+
# Copyright 2025 Norman L. Jones
|
|
2
|
+
#
|
|
3
|
+
# Licensed under the Apache License, Version 2.0 (the "License");
|
|
4
|
+
# you may not use this file except in compliance with the License.
|
|
5
|
+
# You may obtain a copy of the License at
|
|
6
|
+
#
|
|
7
|
+
# http://www.apache.org/licenses/LICENSE-2.0
|
|
8
|
+
#
|
|
9
|
+
# Unless required by applicable law or agreed to in writing, software
|
|
10
|
+
# distributed under the License is distributed on an "AS IS" BASIS,
|
|
11
|
+
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
12
|
+
# See the License for the specific language governing permissions and
|
|
13
|
+
# limitations under the License.
|
|
14
|
+
|
|
15
|
+
##################################################################
|
|
16
|
+
#### This file contains global variables used in the project. ####
|
|
17
|
+
##################################################################
|
|
18
|
+
|
|
19
|
+
"""Global variables used throughout the project, documented for mkdocstrings."""
|
|
20
|
+
|
|
21
|
+
#: [lb/ft^3] Unit weight of water
|
|
22
|
+
gamma_water = 62.4
|
|
23
|
+
|
|
24
|
+
#: [ft] Depth of the crack
|
|
25
|
+
tcrack_depth = 0.0
|
|
26
|
+
|
|
27
|
+
#: [ft] Water level in the crack
|
|
28
|
+
tcrack_water = 0.0
|
|
29
|
+
|
|
30
|
+
#: List of profile lines, each a list of (x, y) tuples.
|
|
31
|
+
profile_lines = []
|
|
32
|
+
# Example: profile_lines = [[(x1, y1), (x2, y2)], [(x3, y3), (x4, y4)]]
|
|
33
|
+
|
|
34
|
+
#: List of material property dictionaries.
|
|
35
|
+
materials = []
|
|
36
|
+
# Example: materials = [{'gamma': 120, 'c': 30, 'phi': 20, 'piezo': 0.5, 'sigma_gamma': 0.1, 'sigma_c': 0.1, 'sigma_phi': 0.1}]
|
|
37
|
+
|
|
38
|
+
#: List of (x, y) coordinates defining the piezometric line.
|
|
39
|
+
piezo_line = []
|
|
40
|
+
# Example: piezo_line = [(x1, y1), (x2, y2)]
|
|
41
|
+
|
|
42
|
+
#: [ft] Maximum depth for circular failure surfaces.
|
|
43
|
+
max_depth = 0.0
|
|
44
|
+
|
|
45
|
+
#: List of circular failure surface dictionaries.
|
|
46
|
+
circles = []
|
|
47
|
+
# Example: circles = [{'Xo': 120, 'Yo': 80, 'Option': "Depth", 'Depth': -10, 'Xi': 5, 'Yi': 5}]
|
|
48
|
+
|
|
49
|
+
#: List of points in a non-circular surface with movement options.
|
|
50
|
+
non_circ = []
|
|
51
|
+
# Example: non_circ = [{'X': 120, 'Y': 80, 'Movement': "Free"}, {'X': 130, 'Y': 90, 'Movement': "Horiz"}]
|
|
52
|
+
|
|
53
|
+
#: List of distributed load dictionaries.
|
|
54
|
+
dloads = []
|
|
55
|
+
# Example: dloads = [{'X': 120, 'Y': 80, 'Normal': 100}, {'X': 130, 'Y': 90, 'Normal': 150}]
|
|
56
|
+
|
|
57
|
+
#: List of reinforcement line dictionaries.
|
|
58
|
+
reinforce_lines = []
|
|
59
|
+
# Example: reinforce_lines = [{'X': 120, 'Y': 80, 'T': 10, 'E': 200000, 'Area': 0.001}, {'X': 130, 'Y': 90, 'T': 15, 'E': 200000, 'Area': 0.001}]
|