Coverage for backend/flowsheetInternals/unitops/config/objects/energy_mixer_config.py: 100%
3 statements
« prev ^ index » next coverage.py v7.10.7, created at 2025-11-06 23:27 +0000
« prev ^ index » next coverage.py v7.10.7, created at 2025-11-06 23:27 +0000
1from common.config_types import *
2from common.config_utils import *
4energy_mixer_config: ObjectType = ObjectType.model_validate({
5 "displayType": "Energy Mixer",
6 "displayName": "Energy Mixer",
7 "ports": {
8 "inlet": {
9 "many": True,
10 "displayName": "Power Inlet",
11 "type": ConType.Inlet,
12 "streamType": "energy_stream",
13 "streamName": "PS",
14 "default": 2, # default number of inlets
15 "minimum": 2, # minimum number of inlets
16 },
17 "outlet": {
18 "displayName": "Power Outlet",
19 "type": ConType.Outlet,
20 "streamType": "energy_stream",
21 "streamName": "PS"
22 }
23 },
24 "propertyPackagePorts": default_property_package_ports(),
25 "graphicObject": unitop_graphic(),
26 "properties": {
27 "efficiency": {
28 "displayName": "Efficiency",
29 "type": "numeric",
30 "unitType": "ratio"
31 },
32 "capacity": {
33 "displayName": "Capacity",
34 "type": "numeric",
35 "unitType": "heatflow",
36 "hasTimeIndex": False,
37 },
38 },
39 "propertySetGroups": {
40 "default": {
41 "type": "stateVars",
42 "displayName": "Properties",
43 "stateVars": ("efficiency","capacity"),
44 }
45 },
46 "keyProperties": [
47 "efficiency"
48 ]
49})