接入test_mql P4主线气室
This commit is contained in:
1 parent
fafce0af87
commit
8af0a27e4c
3 files changed
+57
-38
No files matched your search
@@ -4480,8 +4480,6 @@ class TestMqlSystem:
|
||||
resistance_boundary_pressure_pa: float,
|
||||
inlet_node_temperature_k: float = 293.15,
|
||||
resistance_boundary_temperature_k: float = 293.15,
|
||||
p4_primary_boundary_pressure_pa: float = 100_000.0,
|
||||
p4_primary_boundary_temperature_k: float = 293.15,
|
||||
p4_port1_boundary_pressure_pa: float = 100_000.0,
|
||||
p4_port1_boundary_temperature_k: float = 293.15,
|
||||
p4_port3_boundary_pressure_pa: float = 100_000.0,
|
||||
@@ -4523,7 +4521,17 @@ class TestMqlSystem:
|
||||
)
|
||||
node = self.node3_assembly[spec.outlet_node_alias]
|
||||
p4_node = self.node4_assembly[p4_node_alias]
|
||||
p4_primary_line = self._pnl0001_line_for_node_port(p4_node_alias, "port_2")
|
||||
p4_primary_line_spec = self._pnl0001_spec_for_node_port(
|
||||
p4_node_alias,
|
||||
"port_2",
|
||||
)
|
||||
p4_primary_line = self.pnl0001_assembly.lines[p4_primary_line_spec.alias]
|
||||
p4_primary_chamber_alias = (
|
||||
p4_primary_line_spec.target_component
|
||||
if p4_primary_line_spec.source_component == p4_node_alias
|
||||
else p4_primary_line_spec.source_component
|
||||
)
|
||||
p4_primary_chamber = self.network.components[p4_primary_chamber_alias]
|
||||
p4_port1_line = self._pnl0002_line_for_node_port(p4_node_alias, "port_1")
|
||||
p4_port3_line = self._pnl0002_line_for_node_port(p4_node_alias, "port_3")
|
||||
volume = self.network.components[spec.volume_alias]
|
||||
@@ -4531,6 +4539,10 @@ class TestMqlSystem:
|
||||
outlet_orifice = self.network.components[spec.outlet_orifice_alias]
|
||||
if not isinstance(volume, AmesimPneumaticVolume):
|
||||
raise TypeError(f"{spec.volume_alias} is not an AMESim pneumatic volume")
|
||||
if not isinstance(p4_primary_chamber, AmesimPneumaticVolume):
|
||||
raise TypeError(
|
||||
f"{p4_primary_chamber_alias} is not an AMESim pneumatic volume"
|
||||
)
|
||||
if not isinstance(inlet_orifice, AmesimPneumaticOrifice):
|
||||
raise TypeError(
|
||||
f"{spec.inlet_orifice_alias} is not an AMESim pneumatic orifice"
|
||||
@@ -4549,6 +4561,7 @@ class TestMqlSystem:
|
||||
node=node,
|
||||
p4_node=p4_node,
|
||||
p4_primary_line=p4_primary_line,
|
||||
p4_primary_chamber=p4_primary_chamber,
|
||||
p4_port1_line=p4_port1_line,
|
||||
p4_port3_line=p4_port3_line,
|
||||
volume=volume,
|
||||
@@ -4564,10 +4577,6 @@ class TestMqlSystem:
|
||||
pressure_pa=resistance_boundary_pressure_pa,
|
||||
temperature_k=resistance_boundary_temperature_k,
|
||||
),
|
||||
p4_primary_boundary=TestMqlPneumaticBoundaryCondition(
|
||||
pressure_pa=p4_primary_boundary_pressure_pa,
|
||||
temperature_k=p4_primary_boundary_temperature_k,
|
||||
),
|
||||
p4_port1_boundary=TestMqlPneumaticBoundaryCondition(
|
||||
pressure_pa=p4_port1_boundary_pressure_pa,
|
||||
temperature_k=p4_port1_boundary_temperature_k,
|
||||
@@ -4586,8 +4595,6 @@ class TestMqlSystem:
|
||||
resistance_boundary_pressure_pa: float,
|
||||
inlet_node_temperature_k: float = 293.15,
|
||||
resistance_boundary_temperature_k: float = 293.15,
|
||||
p4_primary_boundary_pressure_pa: float = 100_000.0,
|
||||
p4_primary_boundary_temperature_k: float = 293.15,
|
||||
p4_port1_boundary_pressure_pa: float = 100_000.0,
|
||||
p4_port1_boundary_temperature_k: float = 293.15,
|
||||
p4_port3_boundary_pressure_pa: float = 100_000.0,
|
||||
@@ -4601,8 +4608,6 @@ class TestMqlSystem:
|
||||
resistance_boundary_pressure_pa=resistance_boundary_pressure_pa,
|
||||
inlet_node_temperature_k=inlet_node_temperature_k,
|
||||
resistance_boundary_temperature_k=resistance_boundary_temperature_k,
|
||||
p4_primary_boundary_pressure_pa=p4_primary_boundary_pressure_pa,
|
||||
p4_primary_boundary_temperature_k=p4_primary_boundary_temperature_k,
|
||||
p4_port1_boundary_pressure_pa=p4_port1_boundary_pressure_pa,
|
||||
p4_port1_boundary_temperature_k=p4_port1_boundary_temperature_k,
|
||||
p4_port3_boundary_pressure_pa=p4_port3_boundary_pressure_pa,
|
||||
|
||||
Reference in new issue
Block a user