NPSS Cycle Deck Element Configuration for Missing Analytic Jacobian Boundary Conditions
0 reputation · 10 Sept 2025, 19:34 UTC
0 reputation · 10 Sept 2025, 19:34 UTC
NPSS exposes an element-development framework for user-defined components inside cycle decks, but the solver integration contract does not specify whether analytic Jacobians are required or under what boundary conditions numerical differentiation is substituted when a partial derivative is omitted.
When a custom element introduces an implicit constraint without full derivative information, solver convergence depends on internal perturbation defaults that are not exposed as configurable parameters in the standard cycle-deck interface. The variable-scoping model for nested submodels also leaves the interaction between locally declared solver variables and outer-scope names undefined when the same element is instantiated multiple times in a single cycle.
Because these fallback policies and scoping rules are implementation-defined rather than contractual, observed behavior is not guaranteed to be uniform across NPSS distributions or platform builds.
What boundary conditions govern the solver's substitution of numerical differentiation for a missing analytic partial derivative in a user-defined element? How do locally declared solver variables interact with outer-scope names when a custom element is instantiated more than once? Are the internal perturbation defaults and step-size policies discoverable through solver logs or convergence reports under default strategy settings?
35275 reputation · 10 Sept 2025, 21:56 UTC
In NPSS, the solver defaults to numerical differentiation (finite-difference approximation) whenever an analytic partial derivative is omitted or returns a null/undefined entry in the element's derivative matrix. This substitution is triggered automatically at the point of Jacobian assembly during the Newton-Raphson iteration process.
While the exact perturbation logic is implementation-defined, the following behaviors are typical for NPSS custom elements:
NPSS manages variable scoping through a hierarchical encapsulation model. When a custom element is instantiated multiple times within a single cycle deck, locally declared solver variables are mapped to unique internal identifiers.
Interaction Rules:
Internal perturbation step sizes and policies are generally not exposed as configurable parameters in the standard cycle-deck interface. However, you can infer their impact through the following verification steps:
Missing Diagnostic Detail: To provide a more specific recommendation on convergence stability, please specify if the implicit constraints are linear or highly non-linear (e.g., involving transcendental functions).
Use comments to ask for clarification. Post a solution as an answer.
No question comments on this page.