Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add 'set_vertical_balance' method to DSheetPilingModel #182

Merged
merged 13 commits into from
Dec 4, 2024
6 changes: 5 additions & 1 deletion tests/models/dsheetpiling/test_dsheetpiling_acceptance.py
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@
Sheet,
SheetPileModelPlasticCalculationProperties,
SheetPileProperties,
WoodenSheetPileProperties,
WoodenSheetPileProperties, VerticalBalance,
)
from geolib.models.dsheetpiling.dsheetpiling_model import (
DiaphragmModelType,
Expand Down Expand Up @@ -198,6 +198,10 @@ def test_run_sheet_model_acceptance_different_calculation_types(
top_level=level_top, elements=[sheet_element_1, sheet_element_2]
)

# Add vertical balance properties
vertical_balance = VerticalBalance(max_point_resistance=0.5, xi_factor=1.24)
model.set_vertical_balance(vertical_balance=vertical_balance)

# Add soil
# Set clay material
soil_clay = Soil(name="Clay", color=Color("green"))
Expand Down
2 changes: 1 addition & 1 deletion tests/models/dsheetpiling/test_dsheetpiling_model.py
Original file line number Diff line number Diff line change
Expand Up @@ -910,7 +910,7 @@ def test_duplicate_loads(self, model: DSheetPilingModel):
model.add_surcharge_load(load=testload, side=Side.LEFT, stage_id=0)

@pytest.mark.unittest
def test_add_vertical_balance(self, model: DSheetPilingModel):
def test_set_vertical_balance(self, model: DSheetPilingModel):
# Set up vertical balance
vertical_balance = VerticalBalance(max_point_resistance=1, xi_factor=2)

Expand Down
Loading