ln_gauss_seidel.py

OpenMDAO LinearSolver that uses linear Gauss Seidel.

class openmdao.solvers.ln_gauss_seidel.LinearGaussSeidel[source]

Bases: openmdao.solvers.solver_base.LinearSolver

LinearSolver that uses linear Gauss Seidel.

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