Coverage for backend/flowsheetInternals/unitops/config/objects/boiler_config.py: 100%
4 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 core.auxiliary.enums.unitsOfMeasure import UnitOfMeasure
3from common.config_types import *
4from common.config_utils import *
6boiler_config: ObjectType = ObjectType.model_validate({
7 "displayType": "Boiler",
8 "ports": {
9 "outlet": {
10 "displayName": "Outlet",
11 "type": ConType.Outlet,
12 "streamType": "energy_stream"
13 }
14 },
15 "propertyPackagePorts": default_property_package_ports(),
16 "graphicObject": unitop_graphic(),
17 "properties": {
18 "efficiency": {
19 "displayName": "Efficiency",
20 "type": "numeric",
21 "unitType": "ratio"
22 },
23 "irradiation": {
24 "displayName": "Solar Irradiation",
25 "type": "numeric",
26 "unitType": "irradiance"
27 },
28 "area": {
29 "displayName": "Panel Area",
30 "type": "numeric",
31 "unitType": "area"
32 },
33 "panel_count": {
34 "displayName": "Number of Panels",
35 "type": "numeric",
36 "unitType": "ratio"
37 },
38 },
39 "propertySetGroups": {
40 "default": {
41 "type": "stateVars",
42 "displayName": "Properties",
43 "stateVars": ("efficiency","irradiation","area","panel_count" ),
44 }
45 },
46 "keyProperties": [
47 "efficiency"
48 ]
49})