Coverage for backend/django/flowsheetInternals/unitops/config/objects/stoich_hda_config.py: 100%
4 statements
« prev ^ index » next coverage.py v7.10.7, created at 2026-05-13 02:47 +0000
« 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 *
5stoich_hda_config: ObjectType = ObjectType(
6 displayType="Stoichiometric HDA",
7 ports={
8 "inlet": PortType(
9 displayName="Inlet",
10 type=ConType.Inlet,
11 streamName="S"
12 ),
13 "outlet": PortType(
14 many=False,
15 displayName="Outlet",
16 type=ConType.Outlet,
17 default=1, # default number of outlets
18 minimum=1, # minimum number of outlets
19 streamName="S"
20 ),
21 },
22 propertyPackagePorts=default_property_package_ports(),
23 graphicObject=unitop_graphic(),
24 indexSets=[],
25 properties=PropertiesType({
26 "hda_extent": PropertyType(
27 displayName="Extent",
28 type="numeric",
29 unitType="molarflow",
30 ),
31 "heat_duty": PropertyType(
32 displayName="Heat Duty",
33 type="numeric",
34 unitType="heatflow",
35 ),
36 }),
37 propertySetGroups={
38 "default": {
39 "type": "stateVars",
40 "displayName": "Properties",
41 "stateVars": ("hda_extent", "heat_duty"),
42 }
43 },
44 idaes_adapter=UnitModelAdapter(
45 args=ArgAdapter({
46 "property_package": ConstantSchemaAdapter(ReactorPPArgSchema()),
47 "has_heat_transfer": ConstantArg(True),
48 "has_holdup": ConstantArg(False),
49 "dynamic": ConstantArg(False),
50 "reaction_package": ConstantSchemaAdapter(ReactionPPArgSchema()),
51 }),
52 properties=SerialisePropertiesAdapter(),
53 ports=SerialisePortAdapter()
54 ),
55)