ln_explicit.py

OpenMDAO LinearSolver that explicitly solves the linear system using linalg.solve. Inherits from ScipyGMRES just for the mult function.

class openmdao.solvers.ln_explicit.ExplicitSolver[source]

Bases: openmdao.solvers.scipy_gmres.ScipyGMRES

OpenMDAO LinearSolver that explicitly solves the linear system using linalg.solve.

solve(rhs_mat, system, mode)[source]

Solves the linear system for the problem in self.system. The full solution vector is returned.

Args:

rhs_mat : dict of ndarray

Dictionary containing one ndarry per top level quantity of interest. Each array contains the right-hand side for the linear solve.

system : System

Parent System object.

mode : string

Derivative mode, can be ‘fwd’ or ‘rev’.

Returns:

dict of ndarray : Solution vectors