weac 2.5.1__py3-none-any.whl → 2.6.0__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.
- weac/__init__.py +1 -1
- weac/tools.py +10 -2
- weac-2.6.0.dist-info/LICENSE +24 -0
- {weac-2.5.1.dist-info → weac-2.6.0.dist-info}/METADATA +35 -13
- weac-2.6.0.dist-info/RECORD +12 -0
- {weac-2.5.1.dist-info → weac-2.6.0.dist-info}/WHEEL +1 -1
- weac-2.5.1.dist-info/LICENSE +0 -3
- weac-2.5.1.dist-info/RECORD +0 -12
- {weac-2.5.1.dist-info → weac-2.6.0.dist-info}/top_level.txt +0 -0
weac/__init__.py
CHANGED
weac/tools.py
CHANGED
|
@@ -284,6 +284,9 @@ def touchdown_distance(
|
|
|
284
284
|
-------
|
|
285
285
|
first_contact : float
|
|
286
286
|
Cut length at first contact (mm).
|
|
287
|
+
full_contact : float
|
|
288
|
+
Cut length at which the slab comes into full contact (more than
|
|
289
|
+
a singular point) with the base layer (mm).
|
|
287
290
|
steady_state : float
|
|
288
291
|
Steady-state touchdown distance (mm).
|
|
289
292
|
"""
|
|
@@ -302,10 +305,15 @@ def touchdown_distance(
|
|
|
302
305
|
touchdown.calc_segments(L=1e5, a=0, phi=phi)
|
|
303
306
|
first_contact = touchdown.calc_a1()
|
|
304
307
|
|
|
308
|
+
# Compute ut length at which the slab comes into full contact (more
|
|
309
|
+
# than a singular point) with the base layer
|
|
310
|
+
full_contact = touchdown.calc_a2()
|
|
311
|
+
|
|
305
312
|
# Compute steady-state touchdown distance in a dummy PST with a cut
|
|
306
313
|
# of 5 times the first contact distance
|
|
307
314
|
touchdown.calc_segments(L=1e5, a=5*first_contact, phi=phi)
|
|
308
315
|
steady_state = touchdown.calc_lC()
|
|
309
316
|
|
|
310
|
-
# Return first-contact cut length
|
|
311
|
-
|
|
317
|
+
# Return first-contact cut length, full-contact cut length,
|
|
318
|
+
# and steady-state touchdown distance (mm)
|
|
319
|
+
return first_contact, full_contact, steady_state
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
Creative Commons Attribution-NonCommercial-ShareAlike 4.0 International
|
|
2
|
+
|
|
3
|
+
WEAC (c) 2024 is licensed under the Creative Commons Attribution-NonCommercial-ShareAlike 4.0 International License. To view a copy of this license, visit http://creativecommons.org/licenses/by-nc-sa/4.0/.
|
|
4
|
+
|
|
5
|
+
You are free to:
|
|
6
|
+
|
|
7
|
+
- Share — copy and redistribute the material in any medium or format
|
|
8
|
+
- Adapt — remix, transform, and build upon the material.
|
|
9
|
+
|
|
10
|
+
Under the following terms:
|
|
11
|
+
|
|
12
|
+
- Attribution — You must give appropriate credit, provide a link to the license, and indicate if changes were made. You may do so in any reasonable manner, but not in any way that suggests the licensor endorses you or your use.
|
|
13
|
+
|
|
14
|
+
- NonCommercial — You may not use the material for commercial purposes.
|
|
15
|
+
|
|
16
|
+
- ShareAlike — If you remix, transform, or build upon the material, you must distribute your contributions under the same license as the original.
|
|
17
|
+
|
|
18
|
+
No additional restrictions — You may not apply legal terms or technological measures that legally restrict others from doing anything the license permits.
|
|
19
|
+
|
|
20
|
+
Notices:
|
|
21
|
+
|
|
22
|
+
You do not have to comply with the license for elements of the material in the public domain or where your use is permitted by an applicable exception or limitation.
|
|
23
|
+
|
|
24
|
+
No warranties are given. The license may not give you all of the permissions necessary for your intended use. For example, other rights such as publicity, privacy, or moral rights may limit how you use the material.
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
Metadata-Version: 2.
|
|
1
|
+
Metadata-Version: 2.2
|
|
2
2
|
Name: weac
|
|
3
|
-
Version: 2.
|
|
3
|
+
Version: 2.6.0
|
|
4
4
|
Summary: Weak layer anticrack nucleation model
|
|
5
5
|
Home-page: https://github.com/2phi/weac
|
|
6
6
|
Author: 2phi GbR
|
|
@@ -20,7 +20,7 @@ Requires-Dist: matplotlib
|
|
|
20
20
|
Requires-Dist: numpy
|
|
21
21
|
Requires-Dist: scipy
|
|
22
22
|
Provides-Extra: interactive
|
|
23
|
-
Requires-Dist: jupyter
|
|
23
|
+
Requires-Dist: jupyter; extra == "interactive"
|
|
24
24
|
|
|
25
25
|
<!-- LOGO AND TITLE-->
|
|
26
26
|
<!-- <p align="right"><img src="https://github.com/2phi/weac/raw/main/img/logo.png" alt="Logo" width="80" height="80"></p> -->
|
|
@@ -144,12 +144,11 @@ git clone https://github.com/2phi/weac
|
|
|
144
144
|
```
|
|
145
145
|
for local use.
|
|
146
146
|
|
|
147
|
-
Needs
|
|
147
|
+
Needs (see also [requirements.txt](https://github.com/2phi/weac/blob/main/weac/requirements.txt)):
|
|
148
148
|
- [Python](https://www.python.org/downloads/release/python-3100/) ≥ 3.10
|
|
149
|
-
- [Numpy](https://numpy.org/)
|
|
150
|
-
- [Scipy](https://www.scipy.org/)
|
|
151
|
-
- [
|
|
152
|
-
- [Matplotlib](https://matplotlib.org/) for plotting
|
|
149
|
+
- [Numpy](https://numpy.org/) ≥ 2.0.1
|
|
150
|
+
- [Scipy](https://www.scipy.org/) ≥ 1.14.0
|
|
151
|
+
- [Matplotlib](https://matplotlib.org/) ≥ 3.9.1
|
|
153
152
|
|
|
154
153
|
<!-- USAGE EXAMPLES -->
|
|
155
154
|
## Usage
|
|
@@ -213,15 +212,25 @@ x_cm, tau_kPa = skier.get_weaklayer_shearstress(x=xwl, z=z, unit='kPa')
|
|
|
213
212
|
|
|
214
213
|
See the [open issues](https://github.com/2phi/weac/issues) for a list of proposed features and known issues.
|
|
215
214
|
|
|
216
|
-
###
|
|
215
|
+
### v3.0
|
|
216
|
+
|
|
217
|
+
- [ ] New mathematical foundation to improve the weak-layer representation
|
|
218
|
+
- [ ] Complex terrain through the addition of out-of-plane tilt
|
|
219
|
+
- [ ] Up, down, and cross-slope cracks
|
|
220
|
+
|
|
221
|
+
### v2.7
|
|
217
222
|
- [ ] Finite fracture mechanics implementation for layered snow covers
|
|
218
223
|
|
|
219
|
-
### v2.
|
|
224
|
+
### v2.6
|
|
220
225
|
- [ ] Implement anistropic weak layer
|
|
221
226
|
- [ ] Add demo gif
|
|
222
227
|
|
|
223
228
|
## Release history
|
|
224
229
|
|
|
230
|
+
### v2.5
|
|
231
|
+
- Analyze slab touchdown in PST experiments by setting `touchdown=True`
|
|
232
|
+
- Completely redesigned and significantly improved API documentation
|
|
233
|
+
|
|
225
234
|
### v2.4
|
|
226
235
|
- Choose between slope-normal (`'-pst'`, `'pst-'`) or vertial (`'-vpst'`, `'vpst-'`) PST boundary conditions
|
|
227
236
|
|
|
@@ -274,18 +283,31 @@ See the [open issues](https://github.com/2phi/weac/issues) for a list of propose
|
|
|
274
283
|
5. Open a pull request
|
|
275
284
|
|
|
276
285
|
|
|
277
|
-
<!--
|
|
286
|
+
<!-- WORKFLOWS -->
|
|
278
287
|
## Workflows
|
|
279
288
|
[](https://github.com/2phi/weac/actions/workflows/release.yml)<br>
|
|
280
289
|
[](https://github.com/2phi/weac/actions/workflows/docs.yml)
|
|
281
290
|
|
|
282
291
|
|
|
292
|
+
|
|
283
293
|
<!-- LICENSE -->
|
|
284
294
|
## License
|
|
285
295
|
|
|
286
|
-
|
|
296
|
+
<p xmlns:cc="http://creativecommons.org/ns#" xmlns:dct="http://purl.org/dc/terms/">WEAC is licensed under <a href="https://creativecommons.org/licenses/by-nc-sa/4.0/" target="_blank" rel="license noopener noreferrer" style="display:inline-block;">CC BY-NC-SA 4.0 <img style="height:22px!important;margin-left:3px;vertical-align:text-bottom;" src="https://mirrors.creativecommons.org/presskit/icons/cc.svg?ref=chooser-v1" alt=""><img style="height:22px!important;margin-left:3px;vertical-align:text-bottom;" src="https://mirrors.creativecommons.org/presskit/icons/by.svg?ref=chooser-v1" alt=""><img style="height:22px!important;margin-left:3px;vertical-align:text-bottom;" src="https://mirrors.creativecommons.org/presskit/icons/nc.svg?ref=chooser-v1" alt=""><img style="height:22px!important;margin-left:3px;vertical-align:text-bottom;" src="https://mirrors.creativecommons.org/presskit/icons/sa.svg?ref=chooser-v1" alt=""></a></p>
|
|
297
|
+
|
|
298
|
+
You are free to:
|
|
299
|
+
|
|
300
|
+
- **Share** — copy and redistribute the material in any medium or format
|
|
301
|
+
- **Adapt** — remix, transform, and build upon the material for any purpose, even commercially.
|
|
302
|
+
|
|
303
|
+
Under the following terms:
|
|
304
|
+
|
|
305
|
+
- **Attribution** — You must give [appropriate credit](https://creativecommons.org/licenses/by-nc-sa/4.0/?ref=chooser-v1#ref-appropriate-credit), provide a link to the license, and [indicate if changes were made](https://creativecommons.org/licenses/by-nc-sa/4.0/?ref=chooser-v1#ref-indicate-changes). You may do so in any reasonable manner, but not in any way that suggests the licensor endorses you or your use.
|
|
306
|
+
|
|
307
|
+
- **NonCommercial** — You may not use the material for [commercial purposes](https://creativecommons.org/licenses/by-nc-sa/4.0/?ref=chooser-v1#ref-commercial-purposes).
|
|
308
|
+
|
|
309
|
+
- **ShareAlike** — If you remix, transform, or build upon the material, you must distribute your contributions under the [same license](https://creativecommons.org/licenses/by-nc-sa/4.0/?ref=chooser-v1#ref-same-license) as the original.
|
|
287
310
|
|
|
288
|
-
We currently do not offer an open-source license. Please contact us for private licensing options.
|
|
289
311
|
|
|
290
312
|
|
|
291
313
|
<!-- CONTACT -->
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
weac/__init__.py,sha256=mKK2r2XOcQPpaIYJO6ec1M7MYI03uyKgTtiHRhp7VgE,359
|
|
2
|
+
weac/eigensystem.py,sha256=a-RBqON9Sta2c0z412BXgrfxM96heDKNyfiD0PbYLmM,22476
|
|
3
|
+
weac/inverse.py,sha256=pfpE5PaMgKA2sMVk4t-Q6mPJisA-Yyo873XCKI_-HtA,1980
|
|
4
|
+
weac/layered.py,sha256=S18d1PwGrj9K6HFu2u1JBiA94zzM8mX_JiKBGaph9_I,2064
|
|
5
|
+
weac/mixins.py,sha256=NPkhZVwYpcxhMkS9t3ismvfgeQdZZNTg4rz7Y1DH6EQ,70269
|
|
6
|
+
weac/plot.py,sha256=-s0aOV-c2KEgMa5HypiLgIgASsNVz0BR80_7h8J5o68,20705
|
|
7
|
+
weac/tools.py,sha256=ddieeBfXh8APlgxjIf1HuoCjk7UgTSwvS5XKv77dS0M,9961
|
|
8
|
+
weac-2.6.0.dist-info/LICENSE,sha256=CZlY87tZ1Kq7QxKLVrMknnDXGpc1yEZ8SKoXMAk-d4k,1463
|
|
9
|
+
weac-2.6.0.dist-info/METADATA,sha256=tpyRnWRgtJpCzamOcZr1CfmS2paHTLebGD4MczeE9Kg,19484
|
|
10
|
+
weac-2.6.0.dist-info/WHEEL,sha256=52BFRY2Up02UkjOa29eZOS2VxUrpPORXg1pkohGGUS8,91
|
|
11
|
+
weac-2.6.0.dist-info/top_level.txt,sha256=8tyXUHPFU4Ba_5kPtpwvXo5l6GjJmOnODVBJFygpdeE,5
|
|
12
|
+
weac-2.6.0.dist-info/RECORD,,
|
weac-2.5.1.dist-info/LICENSE
DELETED
weac-2.5.1.dist-info/RECORD
DELETED
|
@@ -1,12 +0,0 @@
|
|
|
1
|
-
weac/__init__.py,sha256=5_KHE81CCZ6C9a_-12Ln7Trbla2nVy6ZP4_Mi6frgPQ,359
|
|
2
|
-
weac/eigensystem.py,sha256=a-RBqON9Sta2c0z412BXgrfxM96heDKNyfiD0PbYLmM,22476
|
|
3
|
-
weac/inverse.py,sha256=pfpE5PaMgKA2sMVk4t-Q6mPJisA-Yyo873XCKI_-HtA,1980
|
|
4
|
-
weac/layered.py,sha256=S18d1PwGrj9K6HFu2u1JBiA94zzM8mX_JiKBGaph9_I,2064
|
|
5
|
-
weac/mixins.py,sha256=NPkhZVwYpcxhMkS9t3ismvfgeQdZZNTg4rz7Y1DH6EQ,70269
|
|
6
|
-
weac/plot.py,sha256=-s0aOV-c2KEgMa5HypiLgIgASsNVz0BR80_7h8J5o68,20705
|
|
7
|
-
weac/tools.py,sha256=CtZQgzsJtODSPyYLNHhehn24ma13rNGfyYhUVcdp9mk,9605
|
|
8
|
-
weac-2.5.1.dist-info/LICENSE,sha256=kZ_nAN1upf01GX0XTvH6LSOveV_dXX1xazrr-fI1qj8,129
|
|
9
|
-
weac-2.5.1.dist-info/METADATA,sha256=w62iA_tpWfPxqkzb61PS5dzGYppsqOsQM9WDsus4mzg,17290
|
|
10
|
-
weac-2.5.1.dist-info/WHEEL,sha256=GJ7t_kWBFywbagK5eo9IoUwLW6oyOeTKmQ-9iHFVNxQ,92
|
|
11
|
-
weac-2.5.1.dist-info/top_level.txt,sha256=8tyXUHPFU4Ba_5kPtpwvXo5l6GjJmOnODVBJFygpdeE,5
|
|
12
|
-
weac-2.5.1.dist-info/RECORD,,
|
|
File without changes
|