接入test_mql pn_node3_14固定气室支路
This commit is contained in:
1 parent
8e1263833b
commit
a1bddfcd98
3 files changed
+254
-16
No files matched your search
@@ -4615,6 +4615,15 @@ class TestMqlSystem:
|
||||
return self.node3_assembly[line_spec.source_component]
|
||||
raise KeyError(f"No remote PN3 node found for {line_alias}")
|
||||
|
||||
def chamber_segment_for_inlet_node(node_alias: str):
|
||||
chamber_specs = (
|
||||
self.discover_pneumatic_branch_topology().chamber_segment_specs
|
||||
)
|
||||
for chamber_spec in chamber_specs:
|
||||
if chamber_spec.inlet_node_alias == node_alias:
|
||||
return chamber_spec
|
||||
raise KeyError(f"No fixed chamber segment starts at {node_alias}")
|
||||
|
||||
inlet_line = self.pnl0001_assembly.lines[spec.inlet_line_alias]
|
||||
outlet_line = self.pnl0001_assembly.lines[spec.outlet_line_alias]
|
||||
node_line_spec = self._pnl0003_spec_for_node_port(
|
||||
@@ -4812,6 +4821,24 @@ class TestMqlSystem:
|
||||
p4_port3_next_orifice_output_line = self.pnl0001_assembly.lines[
|
||||
p4_port3_next_orifice_output_spec.alias
|
||||
]
|
||||
p4_port3_next_chamber_spec = chamber_segment_for_inlet_node(
|
||||
p4_port3_next_orifice_node.alias
|
||||
)
|
||||
p4_port3_next_chamber_inlet_line = self.pnl0001_assembly.lines[
|
||||
p4_port3_next_chamber_spec.inlet_line_alias
|
||||
]
|
||||
p4_port3_next_chamber = self.network.components[
|
||||
p4_port3_next_chamber_spec.volume_alias
|
||||
]
|
||||
p4_port3_next_chamber_outlet_line = self.pnl0001_assembly.lines[
|
||||
p4_port3_next_chamber_spec.outlet_line_alias
|
||||
]
|
||||
p4_port3_next_chamber_inlet_orifice = self.pneumatic_assembly.fixed_orifices[
|
||||
p4_port3_next_chamber_spec.inlet_orifice_alias
|
||||
]
|
||||
p4_port3_next_chamber_outlet_orifice = self.pneumatic_assembly.fixed_orifices[
|
||||
p4_port3_next_chamber_spec.outlet_orifice_alias
|
||||
]
|
||||
p4_port3_remote_orifice = self.pneumatic_assembly.variable_orifices[
|
||||
p4_port3_remote_neighborhood.port_4.orifice_alias
|
||||
]
|
||||
@@ -4897,6 +4924,18 @@ class TestMqlSystem:
|
||||
raise TypeError(
|
||||
f"{p4_port3_next_orifice_alias} is not an AMESim pneumatic orifice"
|
||||
)
|
||||
if not isinstance(p4_port3_next_chamber, AmesimPneumaticVolume):
|
||||
raise TypeError(
|
||||
f"{p4_port3_next_chamber_spec.volume_alias} is not an AMESim pneumatic volume"
|
||||
)
|
||||
if not isinstance(p4_port3_next_chamber_inlet_orifice, AmesimPneumaticOrifice):
|
||||
raise TypeError(
|
||||
f"{p4_port3_next_chamber_spec.inlet_orifice_alias} is not an AMESim pneumatic orifice"
|
||||
)
|
||||
if not isinstance(p4_port3_next_chamber_outlet_orifice, AmesimPneumaticOrifice):
|
||||
raise TypeError(
|
||||
f"{p4_port3_next_chamber_spec.outlet_orifice_alias} is not an AMESim pneumatic orifice"
|
||||
)
|
||||
if not isinstance(p4_bridge_primary_chamber, AmesimPneumaticVolume):
|
||||
raise TypeError(
|
||||
f"{p4_bridge_primary_chamber_alias} is not an AMESim pneumatic volume"
|
||||
@@ -4960,6 +4999,12 @@ class TestMqlSystem:
|
||||
p4_port3_next_orifice_line=p4_port3_next_orifice_line,
|
||||
p4_port3_next_orifice_node=p4_port3_next_orifice_node,
|
||||
p4_port3_next_orifice_output_line=p4_port3_next_orifice_output_line,
|
||||
p4_port3_next_chamber_inlet_line=p4_port3_next_chamber_inlet_line,
|
||||
p4_port3_next_chamber=p4_port3_next_chamber,
|
||||
p4_port3_next_chamber_outlet_line=p4_port3_next_chamber_outlet_line,
|
||||
p4_port3_next_chamber_inlet_orifice=p4_port3_next_chamber_inlet_orifice,
|
||||
p4_port3_next_chamber_outlet_orifice=p4_port3_next_chamber_outlet_orifice,
|
||||
p4_port3_next_chamber_spec=p4_port3_next_chamber_spec,
|
||||
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