Index
subsurfaceio.pile_group
Pile group API.
Place piles in plan and compute group efficiency:
from subsurfaceio.pile_group import Pile, PileGroup
PileGroup(piles=[Pile(center_x=0, center_y=0, diameter=0.5)]).calculate()
Classes:
| Name | Description |
|---|---|
EfficiencyFactor |
Pairwise pile interaction efficiency factor. |
Pile |
Single pile location and diameter in a group. |
PileGroup |
Pile group efficiency factor calculation. |
PileGroupResults |
Pile group efficiency-factor results. |
PileGroupResultsData |
Per-pile efficiency-factor results. |
PileGroupResultsMetadata |
Group-level efficiency factor. |
EfficiencyFactor
pydantic-model
Bases: BaseModel
Pairwise pile interaction efficiency factor.
Fields:
-
respect_to(int) -
configuration(Literal['leading', 'trailing', 'side-by-side', 'skewed']) -
value(float)
Pile
pydantic-model
Bases: BaseModel
Single pile location and diameter in a group.
Fields:
PileGroup
pydantic-model
Bases: Model
Pile group efficiency factor calculation.
Force is applied from right to left. rotate() turns the group when
the force is along another plan direction.
References
- ensoftGROUPtechnicalmanual
Fields:
-
piles(list[Pile]) -
results(PileGroupResults | None)
calculate
Run the calculation and store results.
Returns:
| Type | Description |
|---|---|
Self
|
|
from_dxf
classmethod
Build a pile group from circle entities in a DXF file.
Other entities are skipped. results are left unset.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
source
|
str | Path
|
Path to a DXF file. |
required |
Returns:
| Type | Description |
|---|---|
Self
|
A new pile group with one pile per circle. |
get_leading
staticmethod
Leading-pile efficiency factor (group-manual figure 6.5).
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
distance
|
float
|
Center-to-center spacing. |
required |
diameter
|
float
|
Target pile diameter. |
required |
Returns:
| Type | Description |
|---|---|
float
|
Efficiency factor clipped to at most 1. |
get_side_by_side
staticmethod
Side-by-side efficiency factor (group-manual figure 6.4).
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
distance
|
float
|
Center-to-center spacing. |
required |
diameter
|
float
|
Target pile diameter. |
required |
Returns:
| Type | Description |
|---|---|
float
|
Efficiency factor clipped to at most 1. |
get_trailing
staticmethod
Trailing-pile efficiency factor (group-manual figure 6.6).
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
distance
|
float
|
Center-to-center spacing. |
required |
diameter
|
float
|
Target pile diameter. |
required |
Returns:
| Type | Description |
|---|---|
float
|
Efficiency factor clipped to at most 1. |
plot
Draw the pile group in plan.
Circles and pile indexes are drawn from the coordinates. After
calculate(), each pile is also labeled with its efficiency
factor and the title includes the group factor.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
plot_module
|
Literal['plotly', 'mpl']
|
Figure backend. |
'plotly'
|
Returns:
| Type | Description |
|---|---|
Any
|
Plotted figure for the selected backend. |
Raises:
| Type | Description |
|---|---|
ValueError
|
If |
rotate
Rotate pile centers counter-clockwise about a plan point.
Efficiency is always computed for a force pointing left. Rotating the piles counter-clockwise is equivalent to turning that force clockwise on the original plan.
- 0 degrees: force pointing left
- 90 degrees: force pointing up
- 180 degrees: force pointing right
- 270 degrees: force pointing down
The plot arrow stays leftward because the piles move and the force
axis does not. Stored results are cleared.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
angle
|
float
|
Rotation in degrees. Positive is counter-clockwise. |
required |
origin_x
|
float
|
Pivot x coordinate. |
required |
origin_y
|
float
|
Pivot y coordinate. |
required |
Returns:
| Type | Description |
|---|---|
Self
|
|
PileGroupResults
pydantic-model
Bases: BaseModel
Pile group efficiency-factor results.
Fields:
PileGroupResultsData
pydantic-model
Bases: BaseModel
Per-pile efficiency-factor results.
Fields:
-
efficiency_factors(list[EfficiencyFactor]) -
efficiency_factor(float)