Coverage for backend/django/flowsheetInternals/unitops/config/objects/pressure_exchanger_config.py: 100%
4 statements
« prev ^ index » next coverage.py v7.10.7, created at 2026-05-13 02:47 +0000
« prev ^ index » next coverage.py v7.10.7, created at 2026-05-13 02:47 +0000
1from common.config_types import *
2from common.config_utils import *
3from ..spec_helpers import *
6pressure_exchanger_config: ObjectType = ObjectType(
7 displayType="Pressure Exchanger",
8 displayName="Pressure Exchanger",
9 ports={
10 "feed_inlet": PortType(
11 many=False,
12 displayName="Feed Inlet",
13 type=ConType.Inlet,
14 default=1,
15 streamName="Feed S",
16 ),
17 "feed_outlet": PortType(
18 many=False,
19 displayName="Feed Outlet",
20 type=ConType.Outlet,
21 default=1,
22 streamName="Feed S",
23 ),
24 "brine_inlet": PortType(
25 many=False,
26 displayName="Brine Inlet",
27 type=ConType.Inlet,
28 default=1,
29 streamName="Brine S",
30 ),
31 "brine_outlet": PortType(
32 many=False,
33 displayName="Brine Outlet",
34 type=ConType.Outlet,
35 default=1,
36 streamName="Brine S",
37 ),
38 },
39 propertyPackagePorts={
40 "": ["feed_inlet", "feed_outlet", "brine_inlet", "brine_outlet"]
41 },
42 graphicObject=unitop_graphic(),
43 properties=PropertiesType({
44 "efficiency_pressure_exchanger": PropertyType(
45 displayName="Pressure Exchanger Efficiency",
46 type="numeric",
47 unitType="ratio",
48 ),
49 "feed_side.deltaP": PropertyType(
50 displayName="Feed Side Pressure Change",
51 type="numeric",
52 unitType="pressure",
53 ),
54 "brine_side.deltaP": PropertyType(
55 displayName="Brine Side Pressure Change",
56 type="numeric",
57 unitType="pressure",
58 ),
59 "feed_side.work": PropertyType(
60 displayName="Feed Side Mechanical Work",
61 type="numeric",
62 unitType="heatflow",
63 ),
64 "brine_side.work": PropertyType(
65 displayName="Brine Side Mechanical Work",
66 type="numeric",
67 unitType="heatflow",
68 ),
69 }),
70 propertySetGroups={
71 "default": {
72 "type": "stateVars",
73 "displayName": "Properties",
74 "stateVars": (),
75 }
76 },
77 keyProperties=[
78 "efficiency_pressure_exchanger",
79 "feed_side.deltaP",
80 "brine_side.deltaP",
81 "feed_side.work",
82 "brine_side.work",
83 ],
84 idaes_adapter=UnitModelAdapter(
85 args=ArgAdapter({
86 "property_package": PropertyPackageAdapter(),
87 }),
88 properties=SerialisePropertiesAdapter(),
89 ports=SerialisePortAdapter(),
90 ),
91)