Registry Mirror
Skip to content

use of "abstract" classes #50

Open

Description

@dietmarw

@boerrebj: Abstract classes (partial classes in Modelica terminology) are useful for collecting common parts of multiple detailed models. As
an example,

  • AbstractPipe basis class for both rigid water column pipe as well as elastic
    water pipe
  • AbstractValve basis class for different types of valves
  • AbstractTurbine basis class for different turbine types

Activity

  1. added
    rewrite
    on Jun 19, 2023
  2. added this to the v3.0.0 milestone on Jun 19, 2023
  3. dietmarw commented on Jun 19, 2023

    @dietmarw
    CollaboratorAuthor

    I would probably tend to call those:

    • BasePipe
    • BaseValve
    • BaseTurbine
  4. boerrebj commented on Jun 19, 2023

    @boerrebj
    Collaborator

    One possible alternative could be:
    AbstractTwoPortElement ->

    • AbstractPipe
    • AbstractSingularLossElement (typical for trash racks, contractions/expansions etc.)
    • AbstractControlledElement (typical for both gates and valves)
    • AbstractTurbine
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    rewrite

    Type

    No type

    Projects

    No projects

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions