ogs6py.classes.linsolvers

Copyright (c) 2012-2021, OpenGeoSys Community (http://www.opengeosys.org)
Distributed under a Modified BSD License.

See accompanying file LICENSE or http://www.opengeosys.org/project/license

class ogs6py.classes.linsolvers.LinSolvers

Bases: BuildTree

Class for defining a linear solvers in the project file”

add_lin_solver(**args)

Adds a linear solver

Parameters:
  • name (str) –

  • kind (str) – one of petsc, eigen or lis

  • solver_type (str) –

  • precon_type (str, optional) –

  • max_iteration_step (int, optional) –

  • scaling (str, optional) – 1 or 0

  • prefix (str, optional) – required for petsc solver

classmethod populate_tree(tag, text='', attr=None, children=None)

method to create dictionary from an xml entity