Skip to content

Commit 5ba9e13

Browse files
author
Caio Silva Ramos
committed
Add progressive_cavity_pump type to PumpType enum
- Add 'progressive_cavity_pump' option to PumpType enum in constants.py - Update pump_equipment_description_schema to include the new pump type - Update CHANGELOG.rst to document the new feature ASIM-6417
1 parent 4e6fc16 commit 5ba9e13

File tree

4 files changed

+5
-3
lines changed

4 files changed

+5
-3
lines changed

CHANGELOG.rst

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,7 @@ CHANGELOG
77
==================
88

99
* Types are now exported and can be verified by type-checkers such as ``mypy``.
10+
* Add ``progressive_cavity_pump`` as a new pump type option in ``PumpType`` enum.
1011

1112

1213
1.3.0 (2025-10-07)

src/alfasim_sdk/_internal/alfacase/schema.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1021,7 +1021,7 @@
10211021
Optional("flow_direction"): Enum(['forward', 'backward']),
10221022
Optional("thermal_efficiency"): Map({"value": Float(), "unit": Str()}),
10231023
Optional("thermal_efficiency_model"): Enum(['constant', 'efficiency_curve_based']),
1024-
Optional("type"): Enum(['constant_pressure', 'table_interpolation', 'electric_submersible_pump']),
1024+
Optional("type"): Enum(['constant_pressure', 'table_interpolation', 'electric_submersible_pump', 'progressive_cavity_pump']),
10251025
Optional("pressure_boost"): Map({"value": Float(), "unit": Str()}),
10261026
Optional("table"): table_pump_description_schema,
10271027
Optional("speed_curve"): speed_curve_description_schema,
@@ -1238,4 +1238,4 @@
12381238
Optional("walls"): Seq(wall_description_schema),
12391239
}
12401240
)
1241-
# [[[end]]] (sum: LuOXM+VOhO)
1241+
# [[[end]]] (checksum: 4764f881b7b772de1f87f7a48ee18c55)

src/alfasim_sdk/_internal/constants.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -380,6 +380,7 @@ class PumpType(Enum):
380380
ConstantPressure = "constant_pressure"
381381
TableInterpolation = "table_interpolation"
382382
ElectricSubmersiblePump = "electric_submersible_pump"
383+
ProgressiveCavityPump = "progressive_cavity_pump"
383384

384385

385386
class ValveOpeningType(Enum):

tests/alfacase/test_generate_case_schema/test_generate_schema_for_all_cases.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1080,7 +1080,7 @@ pump_equipment_description_schema = Map(
10801080
Optional("flow_direction"): Enum(['forward', 'backward']),
10811081
Optional("thermal_efficiency"): Map({"value": Float(), "unit": Str()}),
10821082
Optional("thermal_efficiency_model"): Enum(['constant', 'efficiency_curve_based']),
1083-
Optional("type"): Enum(['constant_pressure', 'table_interpolation', 'electric_submersible_pump']),
1083+
Optional("type"): Enum(['constant_pressure', 'table_interpolation', 'electric_submersible_pump', 'progressive_cavity_pump']),
10841084
Optional("pressure_boost"): Map({"value": Float(), "unit": Str()}),
10851085
Optional("table"): table_pump_description_schema,
10861086
Optional("speed_curve"): speed_curve_description_schema,

0 commit comments

Comments
 (0)