优化压力流量求解并达到四路性能门槛
This commit is contained in:
1 parent
6572defaa4
commit
6a064892e2
20 files changed
+711
-175
No files matched your search
@@ -279,7 +279,7 @@ class MechanicalStateReducer:
|
||||
mechanical_ports = {
|
||||
(component.name, definition.name)
|
||||
for component in self.network.components.values()
|
||||
for definition in component.port_definitions
|
||||
for definition in component.active_port_definitions
|
||||
if definition.kind == "physical" and definition.domain == "mechanical"
|
||||
}
|
||||
parents = {
|
||||
@@ -339,7 +339,7 @@ class MechanicalStateReducer:
|
||||
for component in masses:
|
||||
ports = [
|
||||
(component.name, definition.name)
|
||||
for definition in component.port_definitions
|
||||
for definition in component.active_port_definitions
|
||||
if definition.kind == "physical"
|
||||
and definition.domain == "mechanical"
|
||||
]
|
||||
@@ -354,7 +354,7 @@ class MechanicalStateReducer:
|
||||
for component in masses:
|
||||
first_port = next(
|
||||
(component.name, definition.name)
|
||||
for definition in component.port_definitions
|
||||
for definition in component.active_port_definitions
|
||||
if definition.kind == "physical"
|
||||
and definition.domain == "mechanical"
|
||||
)
|
||||
|
||||
Reference in new issue
Block a user