接入test_mql pneumatic_69传输焓RHS
This commit is contained in:
1 parent
f8af99ace1
commit
021ea63a2b
6 files changed
+96
-24
No files matched your search
@@ -4190,21 +4190,24 @@ class TestMqlFullStateClosure:
|
||||
chamber_properties = getattr(snapshot.pneumatic, chamber_field)
|
||||
chamber_to_line_flow = getattr(snapshot.pneumatic, chamber_flow_field)
|
||||
node_to_line_flow = getattr(snapshot.pneumatic, node_flow_field)
|
||||
line_derivative = line.derivatives_from_connections(
|
||||
p4_balance = snapshot.pneumatic.p4_port3_remote_balance
|
||||
p4_port_2_mass_flow_kg_s = p4_balance.port_2_mass_flow_g_s * 1.0e-3
|
||||
node_connected_h = (
|
||||
line_properties.h
|
||||
if abs(p4_port_2_mass_flow_kg_s) <= 1.0e-12
|
||||
else p4_balance.port_2_enthalpy_flow_w / p4_port_2_mass_flow_kg_s
|
||||
)
|
||||
line_derivative = line.derivatives_from_transport_enthalpy_connections(
|
||||
port_1_m_flow=chamber_to_line_flow,
|
||||
connected_h_1=chamber_properties.h,
|
||||
port_2_m_flow=node_to_line_flow,
|
||||
connected_h_2=line_properties.h,
|
||||
connected_h_2=node_connected_h,
|
||||
)
|
||||
port_1_inlet_u = (
|
||||
chamber_properties.h / line.gas.gamma
|
||||
if chamber_to_line_flow > 0.0
|
||||
else line_properties.u
|
||||
port_1_inlet_h = (
|
||||
chamber_properties.h if chamber_to_line_flow > 0.0 else line_properties.h
|
||||
)
|
||||
port_2_inlet_u = (
|
||||
line_properties.h / line.gas.gamma
|
||||
if node_to_line_flow > 0.0
|
||||
else line_properties.u
|
||||
port_2_inlet_h = (
|
||||
node_connected_h if node_to_line_flow > 0.0 else line_properties.h
|
||||
)
|
||||
thermal_energy_flow = (
|
||||
line.heat_transfer_coefficient
|
||||
@@ -4221,8 +4224,8 @@ class TestMqlFullStateClosure:
|
||||
chamber_to_line_flow_kg_s=chamber_to_line_flow,
|
||||
node_to_line_flow_kg_s=node_to_line_flow,
|
||||
mass_derivative_kg_s=line_derivative.m,
|
||||
port_1_energy_flow_w=chamber_to_line_flow * port_1_inlet_u,
|
||||
port_2_energy_flow_w=node_to_line_flow * port_2_inlet_u,
|
||||
port_1_energy_flow_w=chamber_to_line_flow * port_1_inlet_h,
|
||||
port_2_energy_flow_w=node_to_line_flow * port_2_inlet_h,
|
||||
thermal_energy_flow_w=thermal_energy_flow,
|
||||
energy_derivative_w=line_derivative.U,
|
||||
)
|
||||
|
||||
Reference in new issue
Block a user