Coverage for backend/flowsheetInternals/unitops/config/objects/reactor_config.py: 100%

3 statements  

« 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 * 

3 

4reactor_config: ObjectType = ObjectType.model_validate({ 

5 "displayType": "CSTR Reactor", 

6 "displayName": "CSTR Reactor", 

7 

8 "ports": { 

9 "inlet": { 

10 "displayName": "Inlet", 

11 "type": ConType.Inlet, 

12 "streamName": "S" 

13 }, 

14 "outlet": { 

15 "many": False, 

16 "displayName": "Outlet", 

17 "type": ConType.Outlet, 

18 "default": 1, # default number of outlets 

19 "minimum": 1, # minimum number of outlets 

20 "streamName": "S" 

21 }, 

22 }, 

23 "propertyPackagePorts": default_property_package_ports(), 

24 "graphicObject": unitop_graphic(), 

25 "indexSets": [], 

26 "properties": { 

27 "volume": { 

28 "displayName": "Volume", 

29 "type": "numeric", 

30 "unitType": "volume", 

31 }, 

32 }, 

33 "propertySetGroups": { 

34 "default": { 

35 "type": "stateVars", 

36 "displayName": "Properties", 

37 "stateVars": ("volume",), 

38 } 

39 }, 

40})