Skip to content

Commit

Permalink
updated solver docs
Browse files Browse the repository at this point in the history
  • Loading branch information
dc-luo committed Jul 11, 2023
1 parent 17d7c55 commit f8a53af
Show file tree
Hide file tree
Showing 3 changed files with 12 additions and 4 deletions.
8 changes: 8 additions & 0 deletions doc/soupy.solver.rst
Original file line number Diff line number Diff line change
@@ -1,6 +1,14 @@
soupy.solver module
=========================

soupy.solver.nonlinearVariationalSolver
-----------------------------------------------

.. automodule:: soupy.solver.nonlinearVariationalSolver
:members:
:undoc-members:
:show-inheritance:

soupy.solver.newtonBacktrackSolver
-----------------------------------------------

Expand Down
4 changes: 2 additions & 2 deletions soupy/solver/newtonBacktrackSolver.py
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ class NewtonBacktrackSolver:
"""
Backtracking Newton solver for the nonlinear variational system
.. math:: r(u,v) = 0 \\forall v
.. math:: \\text{Find } u \in U \qquad r(u,v) = 0 \quad \\forall v \in V
The user must provide the variational forms for the residual form, \
an initial guess, boundary conditions, and optionally, \
Expand Down Expand Up @@ -81,7 +81,7 @@ def solve(self, residual_form, u, bcs=None, J_form = None, energy_form=None, sol
"""
Solve the nonlinear variational system
.. math:: r(u,v) = 0 \\forall v
.. math:: \\text{Find } u \in U \qquad r(u,v) = 0 \quad \\forall v \in V
given using a backtracking Newton method with supplied initial guess
Expand Down
4 changes: 2 additions & 2 deletions soupy/solver/nonlinearVariationalSolver.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ class NonlinearVariationalSolver:
"""
Solver for the nonlinear variational problem
.. math:: r(u,v) = 0 \\forall v
.. math:: \\text{Find } u \in U \qquad r(u,v) = 0 \quad \\forall v \in V
The user must provide the variational forms for the residual form, \
an initial guess, boundary conditions, and optionally, \
Expand All @@ -30,7 +30,7 @@ def solve(self, residual_form, u, bcs, J_form, form_compiler_parameters=None):
"""
Solve the nonlinear variational system
.. math:: r(u,v) = 0 \\forall v
.. math:: \\text{Find } u \in U \qquad r(u,v) = 0 \quad \\forall v \in V
given using the `dolfin.NonlinearVariationalSolver` with a supplied initial guess
Expand Down

0 comments on commit f8a53af

Please sign in to comment.