补充test_mql PNVO焓流诊断与系数校正
This commit is contained in:
1 parent
a219cddc0b
commit
331435e78a
8 files changed
+1164
-20
No files matched your search
@@ -12,7 +12,10 @@ from PythonModels.scripts.run_test_mql_full_state_comparison import (
|
||||
TestMqlFullStateComparisonPathConfig,
|
||||
TestMqlFullStateComparisonScriptConfig,
|
||||
TestMqlPnl0001EnergyFlowDiagnostic,
|
||||
TestMqlP4NodeEnthalpyBreakdownDiagnostic,
|
||||
TestMqlPnl0003EnergyDiagnostic,
|
||||
TestMqlPnch012EnergyEquationDiagnostic,
|
||||
TestMqlPnvoUpstreamEnthalpyDiagnostic,
|
||||
TestMqlPnl0001PressureLossCalibrationDiagnostic,
|
||||
TestMqlPnvoEventBoundaryDiagnostic,
|
||||
TestMqlPnvoEventWindowDiagnostic,
|
||||
@@ -286,6 +289,86 @@ class RunTestMqlFullStateComparisonScriptTests(unittest.TestCase):
|
||||
python_to_amesim_cm_ratio=0.93,
|
||||
),
|
||||
),
|
||||
pnvo_upstream_enthalpy_diagnostics=(
|
||||
TestMqlPnvoUpstreamEnthalpyDiagnostic(
|
||||
orifice_alias="pn_morifice_1",
|
||||
upstream_line_alias="pneumatic_87",
|
||||
time_s=0.05,
|
||||
amesim_orifice_port_2_enthalpy_flow_w=-18851.7,
|
||||
amesim_orifice_port_2_mass_flow_g_s=456.8,
|
||||
amesim_orifice_port_3_enthalpy_flow_w=18851.7,
|
||||
amesim_orifice_port_3_mass_flow_g_s=-456.8,
|
||||
amesim_upstream_line_center_enthalpy_flow_w=15823.7,
|
||||
amesim_upstream_line_center_mass_flow_g_s=-454.2,
|
||||
amesim_upstream_line_port_2_temperature_k=287.7,
|
||||
amesim_upstream_line_port_2_pressure_pa=13.871e6,
|
||||
amesim_orifice_port_2_implied_reference_temperature_k=290.2,
|
||||
amesim_orifice_port_2_implied_temperature_delta_to_line_k=2.5,
|
||||
amesim_upstream_line_port_2_reference_enthalpy_flow_w=-24714.8,
|
||||
amesim_upstream_line_port_2_reference_enthalpy_error_w=-5863.1,
|
||||
amesim_upstream_line_port_2_real_gas_reference_enthalpy_flow_w=-19240.8,
|
||||
amesim_upstream_line_port_2_real_gas_reference_enthalpy_error_w=-389.1,
|
||||
python_orifice_to_node_flow_kg_s=0.4637,
|
||||
python_upstream_line_port_2_temperature_k=282.2,
|
||||
python_upstream_line_port_2_pressure_pa=13.84e6,
|
||||
python_current_port_2_enthalpy_flow_w=679490.8,
|
||||
python_reference_port_2_enthalpy_flow_w=-38478.5,
|
||||
python_real_gas_reference_port_2_enthalpy_flow_w=-32998.5,
|
||||
python_current_port_2_enthalpy_error_w=698342.5,
|
||||
python_reference_port_2_enthalpy_error_w=-19626.8,
|
||||
python_real_gas_reference_port_2_enthalpy_error_w=-14146.8,
|
||||
),
|
||||
),
|
||||
pnl0003_energy_diagnostics=(
|
||||
TestMqlPnl0003EnergyDiagnostic(
|
||||
line_alias="pneumatic_87",
|
||||
time_s=0.05,
|
||||
amesim_port_1_temperature_k=293.1,
|
||||
amesim_port_2_temperature_k=287.7,
|
||||
amesim_port_1_pressure_pa=15.2e6,
|
||||
amesim_port_2_pressure_pa=13.9e6,
|
||||
amesim_port_1_mass_flow_g_s=-8.5,
|
||||
amesim_port_1_enthalpy_flow_w=85.0,
|
||||
amesim_center_mass_flow_g_s=-454.2,
|
||||
amesim_center_enthalpy_flow_w=15823.7,
|
||||
amesim_port_2_mass_flow_g_s=-456.8,
|
||||
amesim_port_2_enthalpy_flow_w=18851.7,
|
||||
amesim_port_1_storage_mass_derivative_g_s=-462.7,
|
||||
amesim_port_1_storage_enthalpy_sum_w=15908.7,
|
||||
amesim_port_2_storage_mass_derivative_g_s=-2.6,
|
||||
amesim_port_2_storage_enthalpy_sum_w=3028.0,
|
||||
amesim_total_mass_derivative_fd_g_s=-470.0,
|
||||
amesim_total_mass_derivative_backward_g_s=-540.0,
|
||||
amesim_total_mass_derivative_forward_g_s=-400.0,
|
||||
amesim_total_storage_mass_derivative_g_s=-465.3,
|
||||
amesim_total_storage_mass_derivative_residual_g_s=4.7,
|
||||
amesim_center_flow_python_sign_equivalent_g_s=454.2,
|
||||
amesim_center_flow_python_sign_error_g_s=-0.2,
|
||||
python_center_mass_flow_g_s=454.0,
|
||||
python_total_mass_derivative_kg_s=-0.47,
|
||||
amesim_port_1_temperature_derivative_fd_k_s=-210.0,
|
||||
amesim_port_1_temperature_derivative_backward_k_s=-420.0,
|
||||
amesim_port_1_temperature_derivative_forward_k_s=100.0,
|
||||
amesim_port_2_temperature_derivative_fd_k_s=-540.0,
|
||||
amesim_port_2_temperature_derivative_backward_k_s=-600.0,
|
||||
amesim_port_2_temperature_derivative_forward_k_s=120.0,
|
||||
amesim_port_1_pn2vol_dtemp_k_s=-220.0,
|
||||
amesim_port_2_pn2vol_dtemp_k_s=-530.0,
|
||||
amesim_port_1_pn2vol_dtemp_residual_k_s=-10.0,
|
||||
amesim_port_2_pn2vol_dtemp_residual_k_s=10.0,
|
||||
python_port_1_temperature_k=293.15,
|
||||
python_port_2_temperature_k=282.2,
|
||||
python_port_1_pressure_pa=15.3e6,
|
||||
python_port_2_pressure_pa=13.8e6,
|
||||
python_port_1_mass_derivative_kg_s=-0.46,
|
||||
python_port_2_mass_derivative_kg_s=-0.01,
|
||||
python_port_1_current_dtemp_k_s=0.0,
|
||||
python_port_2_current_dtemp_k_s=-1200.0,
|
||||
python_port_1_real_gas_reference_dtemp_k_s=-100.0,
|
||||
python_port_2_real_gas_reference_dtemp_k_s=-650.0,
|
||||
python_port_2_temperature_error_to_amesim_k=-5.5,
|
||||
),
|
||||
),
|
||||
pnl0001_energy_flow_diagnostics=(
|
||||
TestMqlPnl0001EnergyFlowDiagnostic(
|
||||
line_alias="pneumatic_69",
|
||||
@@ -331,6 +414,34 @@ class RunTestMqlFullStateComparisonScriptTests(unittest.TestCase):
|
||||
python_reference_pn2vol2_dtemp_node_minus_dh1_k_s=-11200.0,
|
||||
),
|
||||
),
|
||||
p4_node_enthalpy_breakdown_diagnostics=(
|
||||
TestMqlP4NodeEnthalpyBreakdownDiagnostic(
|
||||
node_alias="pnnode4_16",
|
||||
time_s=0.05,
|
||||
amesim_port_1_enthalpy_flow_w=-1000.0,
|
||||
amesim_port_1_mass_flow_g_s=-30.0,
|
||||
amesim_port_3_enthalpy_flow_w=-2000.0,
|
||||
amesim_port_3_mass_flow_g_s=-40.0,
|
||||
amesim_port_4_enthalpy_flow_w=-15664.2,
|
||||
amesim_port_4_mass_flow_g_s=508.3,
|
||||
amesim_port_2_enthalpy_flow_w=-18664.2,
|
||||
amesim_port_2_mass_flow_g_s=438.3,
|
||||
python_port_1_enthalpy_flow_w=-900.0,
|
||||
python_port_1_mass_flow_g_s=-29.0,
|
||||
python_port_3_enthalpy_flow_w=-2100.0,
|
||||
python_port_3_mass_flow_g_s=-41.0,
|
||||
python_port_4_enthalpy_flow_w=643000.0,
|
||||
python_port_4_mass_flow_g_s=500.0,
|
||||
python_port_2_enthalpy_flow_w=640000.0,
|
||||
python_port_2_mass_flow_g_s=430.0,
|
||||
python_reference_port_1_enthalpy_flow_w=-800.0,
|
||||
python_reference_port_3_enthalpy_flow_w=-1700.0,
|
||||
python_reference_port_4_enthalpy_flow_w=-16000.0,
|
||||
python_reference_port_2_enthalpy_flow_w=-18500.0,
|
||||
python_port_2_enthalpy_error_w=658664.2,
|
||||
python_reference_port_2_enthalpy_error_w=164.2,
|
||||
),
|
||||
),
|
||||
pnch012_energy_equation_diagnostics=(
|
||||
TestMqlPnch012EnergyEquationDiagnostic(
|
||||
chamber_alias="pn_c1_8",
|
||||
@@ -403,6 +514,34 @@ class RunTestMqlFullStateComparisonScriptTests(unittest.TestCase):
|
||||
self.assertIn("python_cm=0.0147", summary)
|
||||
self.assertIn("cm_ratio=0.93", summary)
|
||||
self.assertIn("amesim_gasvel=885.9", summary)
|
||||
self.assertIn("pnvo_upstream_enthalpy@pn_morifice_1", summary)
|
||||
self.assertIn("amesim_dh2=-18851.7", summary)
|
||||
self.assertIn("amesim_line_dhctr=15823.7", summary)
|
||||
self.assertIn("amesim_implied_t2=290.2", summary)
|
||||
self.assertIn("amesim_implied_t2_delta=2.5", summary)
|
||||
self.assertIn("amesim_ref_dh2=-24714.8", summary)
|
||||
self.assertIn("amesim_real_ref_dh2=-19240.8", summary)
|
||||
self.assertIn("amesim_real_ref_dh2_error=-389.1", summary)
|
||||
self.assertIn("python_current_dh2=679490.8", summary)
|
||||
self.assertIn("python_ref_dh2=-38478.5", summary)
|
||||
self.assertIn("python_real_ref_dh2=-32998.5", summary)
|
||||
self.assertIn("pnl0003_energy@pneumatic_87", summary)
|
||||
self.assertIn("amesim_sdm1=-462.7", summary)
|
||||
self.assertIn("amesim_sdh2=3028.0", summary)
|
||||
self.assertIn("amesim_fd_dmgas=-470.0", summary)
|
||||
self.assertIn("amesim_back_dmgas=-540.0", summary)
|
||||
self.assertIn("amesim_fwd_dmgas=-400.0", summary)
|
||||
self.assertIn("amesim_storage_dmgas=-465.3", summary)
|
||||
self.assertIn("amesim_storage_dmgas_residual=4.7", summary)
|
||||
self.assertIn("amesim_dmctr_py_sign=454.2", summary)
|
||||
self.assertIn("python_center_dm=454.0", summary)
|
||||
self.assertIn("python_center_dm_error=-0.2", summary)
|
||||
self.assertIn("python_dmgas_dt=-0.47", summary)
|
||||
self.assertIn("amesim_back_dT2=-600.0", summary)
|
||||
self.assertIn("amesim_fwd_dT2=120.0", summary)
|
||||
self.assertIn("amesim_pn2vol_dT2=-530.0", summary)
|
||||
self.assertIn("python_real_ref_dT2=-650.0", summary)
|
||||
self.assertIn("python_t2_error=-5.5", summary)
|
||||
self.assertIn("energy_flow@pneumatic_69", summary)
|
||||
self.assertIn("amesim_dh1=-4248.6", summary)
|
||||
self.assertIn("amesim_node_dh2=-18664.2", summary)
|
||||
@@ -427,6 +566,11 @@ class RunTestMqlFullStateComparisonScriptTests(unittest.TestCase):
|
||||
self.assertIn("amesim_fd_dT=277.3", summary)
|
||||
self.assertIn("amesim_pn2vol2_dT_node_plus_dh1=-9000.0", summary)
|
||||
self.assertIn("python_ref_pn2vol2_dT_node_minus_dh1=-11200.0", summary)
|
||||
self.assertIn("p4_node_enthalpy@pnnode4_16", summary)
|
||||
self.assertIn("amesim_p4_dh=-15664.2", summary)
|
||||
self.assertIn("python_p4_dh=643000.0", summary)
|
||||
self.assertIn("python_ref_p2_dh=-18500.0", summary)
|
||||
self.assertIn("python_ref_p2_dh_error=164.2", summary)
|
||||
self.assertIn("pnch012_energy@pn_c1_8", summary)
|
||||
self.assertIn("amesim_fd_dmgas=370.8", summary)
|
||||
self.assertIn("amesim_dmgas_residual=49.1", summary)
|
||||
|
||||
Reference in new issue
Block a user