Skip to content

SteadyState.solve()

Documentation TODO

This page is a work in progress.

fullflow.SteadyState.solve

Solve the network steady-state nonlinear system.

solve() adjusts network iteration variables until all component and balance residual equations satisfy the requested residual tolerance.

The nonlinear system is solved using scipy.optimize.least_squares().

Parameters

Name Type Description
modelstr, optional

Model to solve. If omitted, all registered Models use their currently active option.

evaluate_all_model_optionsbool, optional

If True, attempts every option in the selected Model and returns successful solutions.

filenamestr, optional

Output file used to save results.

return_type{"dict", "dataframe"}, optional

Format of returned solution data.

verbosebool, optional

Print solver diagnostics.

staticbool, optional

Perform a static evaluation instead of a nonlinear solve.

print_solutionbool, optional

Print exported solution values.

solver_method{"trf", "dogbox", "lm"}, optional

Nonlinear least-squares algorithm.

jacobian_method{"2-point", "3-point"}, optional

Finite-difference Jacobian scheme.

ftolfloat, optional

Cost-function convergence tolerance.

xtolfloat, optional

Variable convergence tolerance.

gtolfloat, optional

Gradient convergence tolerance.

rtolfloat, optional

Maximum acceptable residual magnitude.

state_max_passesint, optional

Maximum number of state-settling passes.

state_tolerancefloat, optional

Convergence tolerance for derived-state propagation.

Returns

Name Type Description
solutiondict or pandas.DataFrame

Solved network results.