DOLFIN User Manual - FEniCS Project
DOLFIN User Manual - FEniCS Project DOLFIN User Manual - FEniCS Project
Chapter 8Nonlinear solver◮ Developer’s note: This chapter is currently being written. . .DOLFIN provides tools for solving nonlinear equations of the formF (x) = 0 (8.1)where F : R n → R n . The nonlinear solvers are based on Newton’s methodand utilise functions from PETSc [11].To use the nonlinear solver, a nonlinear function must be defined. The nonlinearsolver is then initialised with this function and a solution computed.8.1 Nonlinear functionsTo solve a nonlinear problem, the user must defined a class which . The classshould be derived from the DOLFINclass NonlinearFunction. The classshould contain the necessary functions to form the function F (u) and theJacobian matrix J = ∂F/∂u. The precise form of the user defined class willdepend on the PDE being solved and the numerical method. The structu ofa user defined class MyNonlinearFunction is shown below.53
- Page 1 and 2: DOLFIN User ManualFebruary 24, 2006
- Page 3 and 4: ContentsAbout this manual 91 Introd
- Page 5 and 6: DOLFIN User ManualHoffman, Jansson,
- Page 7: DOLFIN User ManualHoffman, Jansson,
- Page 12 and 13: DOLFIN User ManualHoffman, Jansson,
- Page 14 and 15: DOLFIN User ManualHoffman, Jansson,
- Page 16 and 17: DOLFIN User ManualHoffman, Jansson,
- Page 18 and 19: DOLFIN User ManualHoffman, Jansson,
- Page 20 and 21: DOLFIN User ManualHoffman, Jansson,
- Page 22 and 23: DOLFIN User ManualHoffman, Jansson,
- Page 25 and 26: Chapter 3Linear algebra◮ Develope
- Page 27 and 28: DOLFIN User ManualHoffman, Jansson,
- Page 29 and 30: Chapter 4The mesh◮ Developer’s
- Page 31 and 32: DOLFIN User ManualHoffman, Jansson,
- Page 33 and 34: Chapter 5Functions◮ Developer’s
- Page 35 and 36: DOLFIN User ManualHoffman, Jansson,
- Page 37 and 38: DOLFIN User ManualHoffman, Jansson,
- Page 39 and 40: DOLFIN User ManualHoffman, Jansson,
- Page 41 and 42: DOLFIN User ManualHoffman, Jansson,
- Page 43: Chapter 6Ordinary differential equa
- Page 46 and 47: DOLFIN User ManualHoffman, Jansson,
- Page 48 and 49: DOLFIN User ManualHoffman, Jansson,
- Page 50 and 51: DOLFIN User ManualHoffman, Jansson,
- Page 54 and 55: DOLFIN User ManualHoffman, Jansson,
- Page 57 and 58: Chapter 9Input/outputDOLFIN relies
- Page 59 and 60: DOLFIN User ManualHoffman, Jansson,
- Page 61 and 62: DOLFIN User ManualHoffman, Jansson,
- Page 63: DOLFIN User ManualHoffman, Jansson,
- Page 66 and 67: DOLFIN User ManualHoffman, Jansson,
- Page 68 and 69: DOLFIN User ManualHoffman, Jansson,
- Page 70 and 71: DOLFIN User ManualHoffman, Jansson,
- Page 73 and 74: Chapter 11The parameter system◮ D
- Page 75 and 76: DOLFIN User ManualHoffman, Jansson,
- Page 77 and 78: Chapter 12Solvers◮ Developer’s
- Page 79 and 80: DOLFIN User ManualHoffman, Jansson,
- Page 81 and 82: DOLFIN User ManualHoffman, Jansson,
- Page 83: DOLFIN User ManualHoffman, Jansson,
- Page 87 and 88: Appendix AReference elementsA.1 The
- Page 89 and 90: DOLFIN User ManualHoffman, Jansson,
- Page 91 and 92: DOLFIN User ManualHoffman, Jansson,
- Page 93 and 94: DOLFIN User ManualHoffman, Jansson,
- Page 95 and 96: DOLFIN User ManualHoffman, Jansson,
- Page 97 and 98: Appendix BInstallationThe source co
- Page 99 and 100: DOLFIN User ManualHoffman, Jansson,
- Page 101 and 102: DOLFIN User ManualHoffman, Jansson,
Chapter 8Nonlinear solver◮ Developer’s note: This chapter is currently being written. . .<strong>DOLFIN</strong> provides tools for solving nonlinear equations of the formF (x) = 0 (8.1)where F : R n → R n . The nonlinear solvers are based on Newton’s methodand utilise functions from PETSc [11].To use the nonlinear solver, a nonlinear function must be defined. The nonlinearsolver is then initialised with this function and a solution computed.8.1 Nonlinear functionsTo solve a nonlinear problem, the user must defined a class which . The classshould be derived from the <strong>DOLFIN</strong>class NonlinearFunction. The classshould contain the necessary functions to form the function F (u) and theJacobian matrix J = ∂F/∂u. The precise form of the user defined class willdepend on the PDE being solved and the numerical method. The structu ofa user defined class MyNonlinearFunction is shown below.53