Solvers#

Newton solver#

This module provides a class for configuring a Newton solver with PETSc options, designed for solving nonlinear problems in finite element analysis.

class phasefieldx.solvers.newton.NewtonSolver(problem)[source]#

Bases: object

A class that encapsulates the configuration of a Newton solver with PETSc options.

Methods

save_log_info(logger)

Save the configuration settings of the NewtonSolver and Krylov solver to a logger.

save_log_info(logger)[source]#

Save the configuration settings of the NewtonSolver and Krylov solver to a logger.

Parameters:
loggerlogging.Logger

The logger to save the information to.