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

4 statements  

« prev     ^ index     » next       coverage.py v7.10.7, created at 2026-05-13 02:47 +0000

1from common.config_types import * 

2from common.config_utils import * 

3from ..spec_helpers import * 

4 

5direct_steam_injection_config: ObjectType = ObjectType( 

6 displayType="Direct Steam Injection", 

7 displayName="Direct Steam Injection", 

8 ports={ 

9 "inlet": PortType( 

10 many=False, 

11 displayName="Inlet", 

12 type=ConType.Inlet, 

13 streamName="S", 

14 ), 

15 "steam_inlet": PortType( 

16 many=False, 

17 displayName="Steam Inlet", 

18 type=ConType.Inlet, 

19 streamName="S", 

20 ), 

21 "outlet": PortType( 

22 displayName="Outlet", 

23 type=ConType.Outlet, 

24 streamName="S", 

25 ) 

26 }, 

27 # TODO: ensure this will work with n number of inlets & outlets 

28 propertyPackagePorts={ 

29 "": ["inlet", "outlet"], 

30 "Steam": ["steam_inlet"] 

31 }, 

32 graphicObject=unitop_graphic(), 

33 properties=PropertiesType({}), 

34 propertySetGroups={}, 

35 idaes_adapter=UnitModelAdapter( 

36 args=ArgAdapter({ 

37 "property_package": PropertyPackageAdapter(""), 

38 "steam_property_package": PropertyPackageAdapter("Steam"), 

39 }), 

40 properties=SerialisePropertiesAdapter(), 

41 ports=SerialisePortAdapter() 

42 ), 

43)