packageInterfaces
Extends from Modelica.Icons.InterfacesPackage (Icon for packages containing interfaces).
Information
Interfaces
In the OpenHPL, two types of connectors are typically used. The first type is the standard Modelica real input/output connector, the other type is a set of connectors that represent the water flow and are modelled similar to the connection in an electrical circuit with voltage and current, or similar to the idea of potential and flow in Bond Graph models.
Contact Connector
The water flow connector which is called Contact in the library, contains information about
the pressure in the connector and mass flow rate that flows through the connector. An example of a
Modelica code for defining the Contact connector looks as follows:
connector Contact "Water flow connector" Modelica.SIunits.Pressure p "Contact pressure"; flow Modelica.SIunits.MassFlowRate mdot "Mass flow rate through the contact"; annotation (...); end Contact;
Extensions of Contact Connector
In addition, some extensions of this water flow connector are developed for better use in the library:
TwoContacts
TwoContacts is an extension from the Contact model which provides a model of
two connectors of inlet and outlet contacts:
partial model TwoContact "Model of two connectors" Contact i "Inlet contact"; Contact o "Outlet contact"; end TwoContact;
TurbineContacts
TurbineContacts is an extension from TwoContacts model and provides the real
input and output connectors, additionally. This model is used for turbine modelling:
partial model TurbineContacts "Model of turbine connectors" extends TwoContacts; input Modelica.Blocks.Interfaces.RealInput u_t "[Guide vane|nozzle] opening of the turbine" ; Modelica.Blocks.Interfaces.RealOutput P_out "Mechanical Output power" ; end TurbineContacts;
Contents
| Name | Description |
|---|---|
| Water flow connector | |
| Inlet contact | |
| Outlet contact | |
| Elevation | Overconstrained elevation record for connector balance |
| TurbineContacts | Model of turbine connectors |
| TwoContacts | Model of two connectors |