Skip to content

Conversation

@caio-ramos
Copy link
Contributor

@caio-ramos caio-ramos commented Oct 30, 2025

Added a new pump type and torque data support to enable PCP pump modeling and simulation.

Key Changes

1. New Pump Type

  • Added ProgressiveCavityPump enum value to PumpType.
  • Updated pump equipment schema to accept the new pump type

2. Torques Field in TablePumpDescription

  • Added optional torques array field to TablePumpDescription class
  • Flexible validation: torques can be empty OR match the length of other table fields (speeds, void_fractions, flow_rates, etc.)
  • Maintains backward compatibility with existing pump models

3. Schema Updates

  • Updated pump_equipment_description_schema to include progressive_cavity_pump
  • Added torques as optional field in table_pump_description_schema

4. Documentation

  • Updated TablePumpDescription documentation with torques field description
  • Added torque unit reference documentation
  • Updated test fixtures for schema and docstring generation

ASIM-6417

@caio-ramos caio-ramos changed the title Add progressive_cavity_pump type to PumpType enum Add PCP type to PumpType enum Oct 30, 2025
@caio-ramos caio-ramos force-pushed the fb-ASIM-6417-PCP-pump-model branch from 593b0bd to eb8f6db Compare October 30, 2025 12:48
- 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
@caio-ramos caio-ramos force-pushed the fb-ASIM-6417-PCP-pump-model branch from eb8f6db to 3913e94 Compare October 30, 2025 12:50
@caio-ramos caio-ramos changed the title Add PCP type to PumpType enum Add ProgressiveCavityPump type to PumpType enum Oct 30, 2025
@caio-ramos caio-ramos changed the title Add ProgressiveCavityPump type to PumpType enum Add Progressive Cavity Pump (PCP) Support Oct 30, 2025
@caio-ramos caio-ramos force-pushed the fb-ASIM-6417-PCP-pump-model branch 4 times, most recently from 521c3cf to 5372546 Compare October 30, 2025 14:42
Added optional 'torques' array field to TablePumpDescription class
to support PCP (Progressive Cavity Pump) pump models.

Changes:
- Add torques field to TablePumpDescription with
  validation logic allowing either empty or matching array length
- Update TablePumpDescription schema definition
- Update documentation in TablePumpDescription.txt
- Update test fixtures for schema and docstring generation
- Add documentation reference for torque units
- Update CHANGELOG.rst

ASIM-6417
@caio-ramos caio-ramos force-pushed the fb-ASIM-6417-PCP-pump-model branch from 8ad2d43 to 7627831 Compare October 30, 2025 14:59
@sonarqubecloud
Copy link

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants