nonlinear_runonce.py

Define the NonlinearRunOnce class.

This is a simple nonlinear solver that just runs the system once.

class openmdao.solvers.nonlinear.nonlinear_runonce.NonLinearRunOnce(*args, **kwargs)[source]

Bases: openmdao.solvers.nonlinear.nonlinear_runonce.NonlinearRunOnce

Deprecated. See NonlinearRunOnce.

SOLVER = 'NL: RUNONCE'
__init__(self, *args, **kwargs)[source]

Deprecated.

Parameters
*argslist of object

Positional args.

**kwargsdict

Named args.

add_recorder(self, recorder)

Add a recorder to the solver’s RecordingManager.

Parameters
recorder<CaseRecorder>

A recorder instance to be added to RecManager.

cleanup(self)

Clean up resources prior to exit.

record_iteration(self, **kwargs)

Record an iteration of the current Solver.

Parameters
**kwargsdict

Keyword arguments (used for abs and rel error).

solve(self)

Run the solver.

class openmdao.solvers.nonlinear.nonlinear_runonce.NonlinearRunOnce(**kwargs)[source]

Bases: openmdao.solvers.solver.NonlinearSolver

Simple solver that runs the containing system once.

This is done without iteration or norm calculation.

SOLVER = 'NL: RUNONCE'
__init__(self, **kwargs)

Initialize all attributes.

Parameters
**kwargsdict

options dictionary.

add_recorder(self, recorder)

Add a recorder to the solver’s RecordingManager.

Parameters
recorder<CaseRecorder>

A recorder instance to be added to RecManager.

cleanup(self)

Clean up resources prior to exit.

record_iteration(self, **kwargs)

Record an iteration of the current Solver.

Parameters
**kwargsdict

Keyword arguments (used for abs and rel error).

solve(self)[source]

Run the solver.