Coverage for backend/django/flowsheetInternals/unitops/config/objects/plate_heat_exchanger_config.py: 100%
3 statements
« prev ^ index » next coverage.py v7.10.7, created at 2025-12-18 04:00 +0000
« prev ^ index » next coverage.py v7.10.7, created at 2025-12-18 04:00 +0000
1from common.config_types import *
2from common.config_utils import *
5plate_heat_exchanger_config: ObjectType = ObjectType.model_validate({
6 "displayType": "Plate Heat Exchanger",
7 "displayName": "Plate Heat Exchanger",
9 "ports": {
10 "coldInlet": {
11 "displayName": "Cold Inlet",
12 "type": "inlet",
13 "streamOffset": 1,
14 "streamName": "CS",
15 },
16 "hotInlet": {
17 "displayName": "Hot Inlet",
18 "type": "inlet",
19 "streamOffset": 1,
20 "streamName": "HS",
21 },
22 "coldOutlet": {
23 "displayName": "Cold Outlet",
24 "type": "outlet",
25 "streamOffset": 1,
26 "streamName": "CS",
27 },
28 "hotOutlet": {
29 "displayName": "Hot Outlet",
30 "type": "outlet",
31 "streamOffset": 1,
32 "streamName": "HS",
33 },
34 },
35 "propertyPackagePorts": {
36 "Cold Side": ["coldInlet", "coldOutlet"],
37 "Hot Side": ["hotInlet", "hotOutlet"]
38 },
39 "graphicObject": unitop_graphic(),
40 "properties": {
41 "area":{
42 "displayName": "Heat Exchange Area",
43 "type": "numeric",
44 "unitType": "area",
45 "hasTimeIndex": False,
46 },
47 "plate_length":{
48 "displayName": "Plate Length",
49 "type": "numeric",
50 "unitType": "distance",
51 },
52 "plate_width":{
53 "displayName": "Plate Width",
54 "type": "numeric",
55 "unitType": "distance",
56 },
57 "plate_thickness":{
58 "displayName": "Plate Thickness",
59 "type": "numeric",
60 "unitType": "distance",
61 },
62 "plate_pact_length":{
63 "displayName": "Compressed Plate Pact Length",
64 "type": "numeric",
65 "unitType": "distance",
66 },
67 "port_diameter":{
68 "displayName": "Port Diameter",
69 "type": "numeric",
70 "unitType": "diameter",
71 },
72 "plate_therm_cond":{
73 "displayName": "Plate Thermal Conductivity",
74 "type": "numeric",
75 "unitType": "thermalConductivity",
76 },
77 },
78 "propertySetGroups": {
79 "default": {
80 "type": "stateVars",
81 "displayName": "Properties",
82 "stateVars": ("area","plate_length","plate_width", "plate_thickness", "plate_pact_length",
83 "port_diameter", "plate_therm_cond")
84 }
85 },
86 "keyProperties": [
87 "port_diameter",
88 "plate_therm_cond",
89 ]
90})