完善通用求解器回归与前端交互
- 引入因果坐标内核、热流体恢复和递进长时回归\n- 完善正交连线、线桥、视图保持与结果曲线缩放\n- 补充依赖约束、CI、测试基线和北京时间更新日志
This commit is contained in:
1 parent
143e8dd309
commit
b435daecf2
65 files changed
+172271
-701
No files matched your search
@@ -60,6 +60,16 @@ class StreamResolver:
|
||||
for component in self._components
|
||||
if not isinstance(component, DynamicComponent)
|
||||
)
|
||||
# State ownership and pressure-flow stream sensitivity are independent
|
||||
# classifications. Compile this hook by behavior so algebraic
|
||||
# components such as PNL00R receive their upstream-temperature
|
||||
# references without dispatching a no-op to every component at runtime.
|
||||
self._flow_temperature_reference_components = tuple(
|
||||
component
|
||||
for component in self._components
|
||||
if type(component).update_flow_temperature_references
|
||||
is not Component.update_flow_temperature_references
|
||||
)
|
||||
self._ports = tuple(
|
||||
(component.name, port_name, port)
|
||||
for component in self._components
|
||||
@@ -122,6 +132,16 @@ class StreamResolver:
|
||||
)
|
||||
return values
|
||||
|
||||
@profile_phase("simulation.refresh", minimum_mode="audit")
|
||||
def refresh_flow_temperature_references(self) -> None:
|
||||
"""Refresh pressure-flow property inputs without changing stream outflows."""
|
||||
|
||||
connected = self.connected_temperature_reference_enthalpies()
|
||||
for component in self._flow_temperature_reference_components:
|
||||
component.update_flow_temperature_references(
|
||||
connected[component.name]
|
||||
)
|
||||
|
||||
@profile_phase("simulation.refresh", minimum_mode="audit")
|
||||
def _refresh_dynamic_components(self) -> None:
|
||||
for component in self._dynamic_components:
|
||||
|
||||
Reference in new issue
Block a user