Skip to content

Commit 98b498e

Browse files
committed
fix bug with api Pmax
1 parent bd54ab7 commit 98b498e

File tree

3 files changed

+9
-2
lines changed

3 files changed

+9
-2
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]

0 commit comments

Comments
 (0)