fix: seed PNVO pipe series pressure
This commit is contained in:
1 parent
22b35b2945
commit
cca9d1e883
4 files changed
+110
-37
No files matched your search
@@ -324,7 +324,7 @@ class StreamPressureBlockSolver:
|
||||
return failed(str(parent_reason or "parentCausalPathIneligible"))
|
||||
if solver._closed_resistance_pressure_plan:
|
||||
return failed("specialClosedResistancePressureSeed")
|
||||
if solver._pnor_pnl0001_series_plan:
|
||||
if solver._resistance_pnl0001_series_plan:
|
||||
return failed("specialSeriesPressureSeed")
|
||||
selected = self._selected_equation_evaluation
|
||||
if selected is None:
|
||||
@@ -725,10 +725,10 @@ class StreamPressureBlockSolver:
|
||||
f"{binding.neighbor.name}.{binding.neighbor_port}.p",
|
||||
)
|
||||
)
|
||||
for binding in solver._pnor_pnl0001_series_plan:
|
||||
for binding in solver._resistance_pnl0001_series_plan:
|
||||
special_seed_target_ids.extend(
|
||||
(
|
||||
f"{binding.orifice.name}.{binding.orifice_port}.p",
|
||||
f"{binding.resistance.name}.{binding.resistance_port}.p",
|
||||
f"{binding.pipe.name}.{binding.pipe_port}.p",
|
||||
)
|
||||
)
|
||||
@@ -774,7 +774,7 @@ class StreamPressureBlockSolver:
|
||||
# closure deliberately mirrors ``solver.solve(effort_variables=())``:
|
||||
# the primary global solve has already propagated equal pressures.
|
||||
solver._seed_closed_resistance_pressures()
|
||||
solver._seed_pnor_pnl0001_series_pressures()
|
||||
solver._seed_resistance_pnl0001_series_pressures()
|
||||
for unknown in self._selected_flow_unknowns:
|
||||
unknown.write(0.0)
|
||||
for stage in self._selected_explicit_flow_plan:
|
||||
|
||||
Reference in new issue
Block a user