Skip to content

Commit 8b78816

Browse files
authored
Merge pull request #27 from TchilDill/fix/pmax_api
v0.7.1
2 parents bd54ab7 + 450de12 commit 8b78816

File tree

4 files changed

+10
-3
lines changed

4 files changed

+10
-3
lines changed

CHANGELOG.md

+7
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,13 @@ The format is based on [Keep a Changelog](http://keepachangelog.com/)
77
and this project adheres to [Semantic Versioning](http://semver.org/),
88
and [PEP 440](https://www.python.org/dev/peps/pep-0440/).
99

10+
## [0.7.1] - 2023-11-21
11+
12+
### Fixed
13+
14+
- maximum resistance in API_clay where Pmax was wrongly calculated based on depth instead of diameter, credits to Zhenghui Qiu for spotting this.
15+
16+
1017
## [0.7.0] - 2023-11-12
1118

1219
### Added

src/openpile/globals.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,2 @@
11
# version of the package
2-
VERSION = "0.7.0"
2+
VERSION = "0.7.1"

src/openpile/utils/py_curves.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -349,7 +349,7 @@ def api_clay(
349349
# Calculate Pmax (regular API)
350350
## Pmax for shallow and deep zones (regular API)
351351
Pmax_shallow = (3 * Su + sig) * D + J * Su * X
352-
Pmax_deep = 9 * Su * X
352+
Pmax_deep = 9 * Su * D
353353
Pmax = min(Pmax_deep, Pmax_shallow)
354354

355355
ylist_in = [0.0, 0.1 * y50, 0.21 * y50, 1 * y50, 3 * y50, 8 * y50, 15 * y50, ymax]

test/test_pycurves.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,7 @@ def make(
4949
J: float,
5050
):
5151

52-
return min(9 * Su * X, (3 * Su + sig) * D + J * Su * X)
52+
return min(9 * Su * D, (3 * Su + sig) * D + J * Su * X)
5353

5454
return make
5555

0 commit comments

Comments
 (0)