run_once.py

The RunOnce solver just performs solve_nonlinear on the system hierarchy with no iteration.

class openmdao.solvers.run_once.RunOnce[source]

Bases: openmdao.solvers.solver_base.NonLinearSolver

The RunOnce solver just performs solve_nonlinear on the system hierarchy with no iteration.

Options:

options[‘iprint’] : int(0)

Set to 0 to disable printing, set to 1 to print the residual to stdout each iteration, set to 2 to print subiteration residuals as well.

solve(params, unknowns, resids, system, metadata=None)[source]

Executes each item in the system hierarchy sequentially.

Args:

params : VecWrapper

VecWrapper containing parameters. (p)

unknowns : VecWrapper

VecWrapper containing outputs and states. (u)

resids : VecWrapper

VecWrapper containing residuals. (r)

system : System

Parent System object.