接入test_mql pneumatic_69传输焓RHS

This commit is contained in:
huojiarong committed 2026-07-28 02:20:33 +00:00
1 parent f8af99ace1
commit 021ea63a2b
6 files changed
+96 -24

No files matched your search

@@ -1056,14 +1056,14 @@ def _pnl0001_energy_flow_diagnostic(
snapshot.p4_port3_remote_balance.port_2_enthalpy_flow_w
/ p4_node_port_2_mass_flow_kg_s
)
p4_node_port_2_inlet_u = (
p4_node_port_2_connected_h / line.gas.gamma
p4_node_port_2_inlet_h = (
p4_node_port_2_connected_h
if rhs_diagnostic.node_to_line_flow_kg_s > 0.0
else line_properties.u
else line_properties.h
)
p4_node_port_2_counterfactual_energy_derivative = (
rhs_diagnostic.port_1_energy_flow_w
+ rhs_diagnostic.node_to_line_flow_kg_s * p4_node_port_2_inlet_u
+ rhs_diagnostic.node_to_line_flow_kg_s * p4_node_port_2_inlet_h
+ rhs_diagnostic.thermal_energy_flow_w
)
p4_node_port_2_counterfactual_dtemp = (