File tree Expand file tree Collapse file tree
src/libecalc/presentation/yaml/yaml_types/components Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -96,7 +96,7 @@ class YamlOverflow(YamlBase):
9696
9797class YamlCommonStreamSetting (YamlBase ):
9898 rate_fractions : list [YamlExpressionType ]
99- overflow : list [YamlOverflow ]
99+ overflow : list [YamlOverflow ] | None = None
100100
101101
102102class YamlCommonStreamDistribution (YamlBase ):
@@ -115,10 +115,28 @@ class YamlIndividualStreamDistribution(YamlBase):
115115]
116116
117117
118+ class YamlProcessConstraints (YamlBase ):
119+ outlet_pressure : YamlExpressionType | None = Field (
120+ None ,
121+ title = "OUTLET_PRESSURE" ,
122+ description = "Target outlet pressure [bara]." ,
123+ )
124+ intermediate_pressure : YamlExpressionType | None = Field (
125+ None ,
126+ title = "INTERMEDIATE_PRESSURE" ,
127+ description = "Intermediate pressure [bara] between stages and the outlet pressure." ,
128+ )
129+
130+
118131class YamlProcessSimulation (YamlBase ):
119132 name : str
120133 target : YamlParallelProcessSystem | YamlSerialProcessSystem | ProcessSystemReference
121134 stream_distribution : YamlStreamDistribution
135+ constraints : dict [ProcessSystemReference , YamlProcessConstraints ] = Field (
136+ default_factory = dict ,
137+ title = "CONSTRAINTS" ,
138+ description = "Optional constraints per process system reference." ,
139+ )
122140
123141
124142YamlProcessUnit = Annotated [
You can’t perform that action at this time.
0 commit comments