修复test_mql事件后积分步长控制
This commit is contained in:
1 parent
a0855018d5
commit
2120901909
12 files changed
+222
-27
No files matched your search
@@ -3870,6 +3870,7 @@ class TestMqlVariableChamberRhsDiagnostic:
|
||||
port_a_energy_flow_w: float
|
||||
port_b_energy_flow_w: float
|
||||
boundary_work_w: float
|
||||
thermal_energy_flow_w: float
|
||||
energy_derivative_w: float
|
||||
|
||||
|
||||
@@ -4120,6 +4121,9 @@ class TestMqlFullStateClosure:
|
||||
port_a_energy_flow = port_a_mass_flow * port_a_inlet_h
|
||||
port_b_energy_flow = port_b_mass_flow * port_b_inlet_h
|
||||
boundary_work = -chamber_properties.p * chamber.volume_rate_m3_s()
|
||||
thermal_energy_flow = chamber.thermal_energy_flow_w(
|
||||
chamber_properties.T
|
||||
)
|
||||
return TestMqlVariableChamberRhsDiagnostic(
|
||||
chamber_alias=chamber_alias,
|
||||
piston_alias=piston_alias,
|
||||
@@ -4133,8 +4137,12 @@ class TestMqlFullStateClosure:
|
||||
port_a_energy_flow_w=port_a_energy_flow,
|
||||
port_b_energy_flow_w=port_b_energy_flow,
|
||||
boundary_work_w=boundary_work,
|
||||
thermal_energy_flow_w=thermal_energy_flow,
|
||||
energy_derivative_w=(
|
||||
port_a_energy_flow + port_b_energy_flow + boundary_work
|
||||
port_a_energy_flow
|
||||
+ port_b_energy_flow
|
||||
+ boundary_work
|
||||
+ thermal_energy_flow
|
||||
),
|
||||
)
|
||||
|
||||
|
||||
@@ -229,6 +229,9 @@ def _build_chamber(
|
||||
gas=gas,
|
||||
p0=initial_pressure_pa,
|
||||
T0=_component_temperature(component),
|
||||
heat_transfer_coefficient=component.parameter_value("kth"),
|
||||
heat_transfer_area=component.parameter_value("sth"),
|
||||
external_temperature_k=_component_temperature(component),
|
||||
)
|
||||
return AmesimPneumaticVolume.from_liters(
|
||||
name=component.alias,
|
||||
@@ -236,6 +239,9 @@ def _build_chamber(
|
||||
gas=gas,
|
||||
p0=initial_pressure_pa,
|
||||
T0=_component_temperature(component),
|
||||
heat_transfer_coefficient=component.parameter_value("kth"),
|
||||
heat_transfer_area=component.parameter_value("sth"),
|
||||
external_temperature_k=_component_temperature(component),
|
||||
)
|
||||
|
||||
|
||||
|
||||
Reference in new issue
Block a user