Coverage for backend/flowsheetInternals/unitops/config/objects/wind_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
2from core.auxiliary.enums.unitsOfMeasure import UnitOfMeasure
4from common.config_types import *
5from common.config_utils import *
7wind_config: ObjectType = ObjectType.model_validate({
8 "displayType": "Wind",
9 "displayName": "Wind",
11 "ports": {
12 "outlet": {
13 "displayName": "Generated Power",
14 "type": ConType.Outlet,
15 "streamType": "energy_stream",
16 "streamName": "PS"
18 }
19 },
20 "propertyPackagePorts": default_property_package_ports(),
21 "graphicObject": unitop_graphic(),
22 "properties": {
23 "efficiency": {
24 "displayName": "Efficiency",
25 "type": "numeric",
26 "unitType": "ratio",
27 "hasTimeIndex":False
28 },
29 "windspeed": {
30 "displayName": "Windspeed",
31 "type": "numeric",
32 "unitType": "velocity"
33 },
34 "pressure": {
35 "displayName": "Air Pressure",
36 "type": "numeric",
37 "unitType": "pressure"
38 },
39 "air_temp": {
40 "displayName": "Air Temperature",
41 "type": "numeric",
42 "unitType": "temperature"
43 },
44 "humidity": {
45 "displayName": "Air Humidity",
46 "type": "numeric",
47 "unitType": "ratio"
48 },
49 "rotor_diameter": {
50 "displayName": "Rotor Diameter",
51 "type": "numeric",
52 "unitType": "distance",
53 "hasTimeIndex":False
55 },
56 "turbine_count": {
57 "displayName": "Number of Turbines",
58 "type": "numeric",
59 "unitType": "ratio",
60 "hasTimeIndex":False
62 },
63 },
64 "propertySetGroups": {
65 "default": {
66 "type": "stateVars",
67 "displayName": "Properties",
68 "stateVars": ("efficiency","windspeed","pressure","air_temp","humidity","rotor_diameter","turbine_count" ),
69 }
70 },
71 "keyProperties": [
72 "efficiency"
73 ]
74})