接入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

+4 -2
View File
@@ -773,7 +773,8 @@ class TestMqlPn3P4NodeChamberSegmentTests(unittest.TestCase):
)
rhs = closure.rhs_at(0.04, state)
line = closure.pneumatic_closure.components.p4_port3_remote_primary_line
expected_line_derivative = line.derivatives_from_connections(
expected_line_derivative = (
line.derivatives_from_transport_enthalpy_connections(
port_1_m_flow=(
open_snapshot.p4_port3_remote_chamber_to_line_flow
),
@@ -781,7 +782,8 @@ class TestMqlPn3P4NodeChamberSegmentTests(unittest.TestCase):
port_2_m_flow=(
open_snapshot.p4_port3_remote_node_to_primary_line_flow
),
connected_h_2=node_inlet_h,
connected_h_2=node_inlet_h,
)
)
self.assertAlmostEqual(rhs[45], expected_line_derivative.U)
self.assertAlmostEqual(