Nonlinear solvers - SNES: Examples

The Scalable Nonlinear Equations Solvers (SNES) component provides an easy-to-use interface to Newton-based methods for solving systems of nonlinear equations. SNES users can set various algorithmic options at runtime via the options database (e.g., specifying a trust region method via -snes_type tr ). SNES internally employs KSP for the solution of its linear systems. SNES users can also set KSP options directly in application codes by first extracting the KSP context from the SNES context via SNESGetKSP() and then directly calling various KSP (and KSP and PC) routines (e.g., PCSetType() ).

ex1.c: Newton's method for a two-variable system, sequential
ex2.c: Newton method to solve u'' + u^{2} = f, sequentially
ex3.c: Newton methods to solve u'' + u^{2} = f in parallel
ex4.c: Nonlinear PDE in 2d
ex4tu.c: Nonlinear PDE in 2d
ex5.c: Bratu nonlinear PDE in 2d
ex5s.c: 2d Bratu problem in shared memory parallel with SNES
ex6.c: u`` + u^{2} = f
ex7.c: Nonlinear PDE in 2d
ex8.c: Nonlinear PDE in 2d
ex10.c:
ex12.c: Bratu nonlinear PDE in 2d
ex14.c: Bratu nonlinear PDE in 3d
ex18.c: Nonlinear Radiative Transport PDE with multigrid in 2d
ex19.c: Nonlinear driven cavity with multigrid in 2d
ex19tu.c: Nonlinear driven cavity with multigrid in 2d
ex20.c: Nonlinear Radiative Transport PDE with multigrid in 3d
ex21.c: Solves PDE optimization problem
ex22.c: Solves PDE optimization problem
ex23.c: Solves PDE problem from ex22
ex24.c: Solves PDE optimization problem of ex22
ex25.c: Minimum surface problem\n\
ex26.c: Grad-Shafranov solver for one dimensional CHI equilibrium
ex27.c: Nonlinear driven cavity with multigrid and pseudo timestepping 2d
ex28.c:
ex29.c: Hall MHD with in two dimensions with time stepping and multigrid
ex30.c: static char help[] =
ex31.c: Model multi-physics solver\n\n
ex32.c: Model multi-physics solver
ex38.c: u`` + u^{2} = f
ex42.c: Newton's method to solve a two-variable system that comes from the Rosenbrock function
ex43.c: Newton's method to solve a many-variable system that comes from the 2 variable Rosenbrock function + trivial
ex44.c: u`` + u^{2} = f
ex45.c: u`` + u^{2} = f
ex46.c: Surface processes in geophysics
ex48.c:
ex49.c: Nonlinear driven cavity with multigrid in 2d
ex50.c: Nonlinear driven cavity with multigrid in 2d
ex51.c:
ex52.c: Testbed for FEM operations on the GPU\n\n
ex53.c:
ex54.c: Cahn-Hilliard-2d problem for constant mobility and triangular elements
ex55.c: Allen-Cahn-2d problem for constant mobility and triangular elements
ex58.c:
ex59.c: Tries to solve u`` + u^{2} = f for an easy case and an impossible case\n\n
ex60.c: 2D coupled Allen-Cahn and Cahn-Hilliard equation for constant mobility and triangular elements
ex61.c: 2D coupled Allen-Cahn and Cahn-Hilliard equation for constant mobility and triangular elements
ex61gen.c: Generates random numbers for radioactive events for ex61
ex61view.c: Loads data generated by ex61 and VTK file suitable for Paraview or Visit\n\n
ex63.c: 1D coupled Allen-Cahn and Cahn-Hilliard equation for degenerate mobility and triangular elements
ex64.c: 1D coupled Allen-Cahn and Cahn-Hilliard equation for constant mobility
ex65.c: 2D coupled Allen-Cahn and Cahn-Hilliard equation for constant mobility
makefile