接入test_mql P4环网剩余管路
This commit is contained in:
1 parent
8c8b4f26e9
commit
f74b414b24
3 files changed
+388
-22
No files matched your search
@@ -4674,6 +4674,25 @@ class TestMqlSystem:
|
||||
p4_port1_far_primary_chamber = self.network.components[
|
||||
p4_port1_far_primary_chamber_alias
|
||||
]
|
||||
p4_port1_far_port1 = self._pnl0002_connection_for_node_port(
|
||||
p4_port1_far_node_alias,
|
||||
"port_1",
|
||||
)
|
||||
p4_port1_far_port1_line = self.pnl0002_assembly.lines[
|
||||
p4_port1_far_port1.line_alias
|
||||
]
|
||||
p4_port1_next_node_alias = p4_port1_far_port1.remote_node_alias
|
||||
p4_port1_next_node = self.node4_assembly[p4_port1_next_node_alias]
|
||||
p4_port1_next_primary = self._p4_primary_connection_for_node(
|
||||
p4_port1_next_node_alias
|
||||
)
|
||||
p4_port1_next_primary_line = self.pnl0001_assembly.lines[
|
||||
p4_port1_next_primary.line_alias
|
||||
]
|
||||
p4_port1_next_primary_chamber_alias = p4_port1_next_primary.chamber_alias
|
||||
p4_port1_next_primary_chamber = self.network.components[
|
||||
p4_port1_next_primary_chamber_alias
|
||||
]
|
||||
p4_port1_remote_orifice = self.pneumatic_assembly.variable_orifices[
|
||||
p4_port1_remote_neighborhood.port_4.orifice_alias
|
||||
]
|
||||
@@ -4713,6 +4732,25 @@ class TestMqlSystem:
|
||||
p4_port3_far_primary_chamber = self.network.components[
|
||||
p4_port3_far_primary_chamber_alias
|
||||
]
|
||||
p4_port3_far_port3 = self._pnl0002_connection_for_node_port(
|
||||
p4_port3_far_node_alias,
|
||||
"port_3",
|
||||
)
|
||||
p4_port3_far_port3_line = self.pnl0002_assembly.lines[
|
||||
p4_port3_far_port3.line_alias
|
||||
]
|
||||
p4_port3_next_node_alias = p4_port3_far_port3.remote_node_alias
|
||||
p4_port3_next_node = self.node4_assembly[p4_port3_next_node_alias]
|
||||
p4_port3_next_primary = self._p4_primary_connection_for_node(
|
||||
p4_port3_next_node_alias
|
||||
)
|
||||
p4_port3_next_primary_line = self.pnl0001_assembly.lines[
|
||||
p4_port3_next_primary.line_alias
|
||||
]
|
||||
p4_port3_next_primary_chamber_alias = p4_port3_next_primary.chamber_alias
|
||||
p4_port3_next_primary_chamber = self.network.components[
|
||||
p4_port3_next_primary_chamber_alias
|
||||
]
|
||||
p4_port3_remote_orifice = self.pneumatic_assembly.variable_orifices[
|
||||
p4_port3_remote_neighborhood.port_4.orifice_alias
|
||||
]
|
||||
@@ -4751,6 +4789,14 @@ class TestMqlSystem:
|
||||
raise TypeError(
|
||||
f"{p4_port3_far_primary_chamber_alias} is not an AMESim pneumatic volume"
|
||||
)
|
||||
if not isinstance(p4_port1_next_primary_chamber, AmesimPneumaticVolume):
|
||||
raise TypeError(
|
||||
f"{p4_port1_next_primary_chamber_alias} is not an AMESim pneumatic volume"
|
||||
)
|
||||
if not isinstance(p4_port3_next_primary_chamber, AmesimPneumaticVolume):
|
||||
raise TypeError(
|
||||
f"{p4_port3_next_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"
|
||||
@@ -4778,6 +4824,10 @@ class TestMqlSystem:
|
||||
p4_port1_far_node=p4_port1_far_node,
|
||||
p4_port1_far_primary_line=p4_port1_far_primary_line,
|
||||
p4_port1_far_primary_chamber=p4_port1_far_primary_chamber,
|
||||
p4_port1_far_port1_line=p4_port1_far_port1_line,
|
||||
p4_port1_next_node=p4_port1_next_node,
|
||||
p4_port1_next_primary_line=p4_port1_next_primary_line,
|
||||
p4_port1_next_primary_chamber=p4_port1_next_primary_chamber,
|
||||
p4_port1_remote_orifice=p4_port1_remote_orifice,
|
||||
p4_port1_remote_orifice_line=p4_port1_remote_orifice_line,
|
||||
p4_port1_remote_orifice_node=p4_port1_remote_orifice_node,
|
||||
@@ -4789,6 +4839,10 @@ class TestMqlSystem:
|
||||
p4_port3_far_node=p4_port3_far_node,
|
||||
p4_port3_far_primary_line=p4_port3_far_primary_line,
|
||||
p4_port3_far_primary_chamber=p4_port3_far_primary_chamber,
|
||||
p4_port3_far_port3_line=p4_port3_far_port3_line,
|
||||
p4_port3_next_node=p4_port3_next_node,
|
||||
p4_port3_next_primary_line=p4_port3_next_primary_line,
|
||||
p4_port3_next_primary_chamber=p4_port3_next_primary_chamber,
|
||||
p4_port3_remote_orifice=p4_port3_remote_orifice,
|
||||
p4_port3_remote_orifice_line=p4_port3_remote_orifice_line,
|
||||
p4_port3_remote_orifice_node=p4_port3_remote_orifice_node,
|
||||
|
||||
Reference in new issue
Block a user