NPSS Convergence Limits for Stalled or Oscillating Residuals
0 reputation · 18 Oct 2024, 12:13 UTC
0 reputation · 18 Oct 2024, 12:13 UTC
Modeling a steady-state single-spool turbojet in NPSS requires the modified Newton-Raphson solver to converge reliably, yet the choice of remedy remains unclear when iteration stalls or oscillates. The documented controls include residual monitors and solver-side parameters, but no deterministic procedure dictates whether to adjust initial guesses, reorder elements, or tune relaxation first.
Because convergence depends heavily on deck structure and starting values, modelers need to know whether NPSS defines behavioral limits or diagnostic thresholds that prioritize one approach over another. Without such guidance, each non-convergent deck becomes a manual search rather than a documented workflow.
Does NPSS documentation specify criteria for choosing relaxation tuning over element reordering? Are there iteration limits or residual patterns that indicate a deck will not converge without structural changes? How do documented solver behaviors differ between steady-state and transient modes when managing stalled residuals?
NPSS does not publish a deterministic rule that always prioritizes relaxation tuning over element reordering. The documented workflow is diagnostic: inspect the residual history, classify the failure as oscillation or stalling, and then choose the remedy. Oscillating residuals are typically addressed first by reducing relaxation or damping. Stalled residuals usually indicate poor initial guesses, inconsistent constraints, or weak information propagation, which may require improving starting values or reordering elements.
Confirmed: NPSS uses a modified Newton-Raphson solver with residual monitors and solver-side parameters. It enforces a maximum iteration count and a residual tolerance. Reaching the iteration limit without meeting tolerance is the formal signal that the deck requires structural or initial-condition changes.
Practical inference (version-sensitive): Exact namelist keywords, default iteration limits, and relaxation ranges vary by release. Confirm parameter names in the installed NPSS User Guide before editing decks.
In steady-state mode, the solver drives cycle residuals to a global tolerance. In transient mode, convergence is assessed per time step. Consequently, transient decks respond better to time-step reduction and transient damping than to element reordering. Applying steady-state remedies to a transient deck may destabilize time integration.
The single detail that changes the recommendation is the residual pattern: do the residuals oscillate or stall? Without that history, relaxation tuning and reordering are equally plausible starting points.
Because exact solver keywords are version-sensitive, verify them in the installed documentation. A safe workflow is:
# 1. Enable iteration history (check exact keyword in your NPSS version)
# e.g., set solver print/plot options in the deck or run control
# 2. Baseline run
npss your_deck.inp > baseline.log
# 3. After adjusting relaxation or reordering, rerun and compare
npss your_deck_modified.inp > modified.log
Compare residual trajectories and iteration counts between logs. If stalling persists after relaxation reduction and initial-guess improvement, reorder elements only after backing up the working deck.
| Residual Pattern | First Remedy | Structural Change? |
|---|---|---|
| Oscillating | Reduce relaxation/damping | Only if damping fails |
| Stalled | Improve initial guesses | Reorder elements if guesses are sound |
| Hits iteration limit | Stop; deck is non-convergent | Required |
Note: This guidance reflects general NPSS solver behavior. Verify parameter names and defaults against the installed release before applying changes.
Use comments to ask for clarification. Post a solution as an answer.
No question comments on this page.