Coverage for backend/django/flowsheetInternals/unitops/config/objects/humid_air_stream_config.py: 100%
3 statements
« prev ^ index » next coverage.py v7.10.7, created at 2026-06-23 21:51 +0000
« prev ^ index » next coverage.py v7.10.7, created at 2026-06-23 21:51 +0000
1from common.config_types import *
2from common.config_utils import *
7humid_air_stream_config: ObjectType = ObjectType(
8 displayType="Stream",
9 is_stream=True,
10 propertyPackagePorts={},
11 # TODO: check if streams have inlets and outlets
12 graphicObject=stream_graphic(),
13 indexSets=["phase","compound"],
14 properties=PropertiesType({
15 "mole_frac_comp": PropertyType(
16 displayName="Compounds",
17 propertySetGroup="composition",
18 type="numeric",
19 unitType="ratio",
20 indexSets=["compound"],
21 ),
22 "flow_mass": PropertyType(
23 displayName="Mass Flow",
24 type="numeric",
25 unitType="massflow",
26 ),
27 "flow_mol": PropertyType(
28 displayName="Molar Flow",
29 type="numeric",
30 unitType="molarflow",
31 ),
32 "temperature": PropertyType(
33 displayName="Dry Bulb Temperature",
34 type="numeric",
35 unitType="temperature",
36 ),
37 "temperature_wet_bulb": PropertyType(
38 displayName="Wet Bulb Temperature",
39 type="numeric",
40 unitType="temperature",
41 ),
42 "pressure": PropertyType(
43 displayName="Pressure",
44 type="numeric",
45 unitType="pressure",
46 ),
47 "relative_humidity": PropertyType(
48 displayName="Relative Humidity",
49 type="numeric",
50 unitType="ratio",
51 ),
52 "enth_mol": PropertyType(
53 displayName="Molar Specific Enthalpy",
54 type="numeric",
55 unitType="molarEnthalpy",
56 ),
57 "enth_mass": PropertyType(
58 displayName="Mass Specific Enthalpy",
59 type="numeric",
60 unitType="massEnthalpy",
61 ),
62 "entr_mol": PropertyType(
63 displayName="Molar Specific Entropy",
64 type="numeric",
65 unitType="molarEntropy",
66 ),
67 "entr_mass": PropertyType(
68 displayName="Mass Specific Entropy",
69 type="numeric",
70 unitType="massEntropy",
71 ),
72 "total_energy_flow": PropertyType(
73 displayName="Total Energy Flow",
74 type="numeric",
75 unitType="heatflow",
76 ),
77 "flow_vol": PropertyType(
78 displayName="Volumetric Flow",
79 type="numeric",
80 unitType="volumetricFlow",
81 ),
82 "mole_frac_phase_comp": PropertyType(
83 displayName="Phases",
84 type="numeric",
85 unitType="ratio",
86 indexSets=["phase","compound"],
87 ),
88 }),
89 propertySetGroups={
90 "composition": {
91 "type": "composition",
92 "displayName": "Composition",
93 "stateVars": ("mole_frac_comp",),
94 },
95 "default": {
96 "type": "stateVars",
97 "displayName": "Properties",
98 "stateVars": ("flow_mol", "temperature", "pressure"),
99 },
100 },
101 keyProperties={
102 "mass": [
103 "flow_mass",
104 "temperature",
105 "pressure",
106 "vapor_frac"
107 ],
108 "molar": [
109 "flow_mol",
110 "temperature",
111 "pressure",
112 "vapor_frac"
113 ]
114 }
115)