.. _RaphsonNewton: Raphson Newton Algorithm ************************ .. tabs:: .. tab:: Tcl .. function:: algorithm RaphsonNewton <-iterate $tangIter> <-increment $tangIncr> <-factorOnce> .. tab:: Python .. code-block:: python ops.algorithm('RaphsonNewton', '-iterate', tangIter, '-increment', tangIncr, '-factorOnce') .. csv-table:: :header: "Argument", "Type", "Description" :widths: 10, 10, 40 $tangIter, |string|, "tangent formed at every iteration after the first: **current** or **initial** (optional: default = current)" $tangIncr, |string|, "tangent formed at the start of each step: **current**, **initial** or **noTangent** (optional: default = current)" -factorOnce, |string|, "assemble and factor the increment tangent in the first step, and keep it for all later steps, until the domain changes (optional). Also accepted as ``-factorIncrementOnce``" .. rubric:: Discussion This command is used to construct a RaphsonNewton algorithm. It is the :ref:`Newton` method, in which a new tangent is formed at every iteration, but the tangent used at the start of each step (**-increment**) and the tangent used in the later iterations (**-iterate**) can be chosen separately. For example, ``-increment initial -iterate current`` uses the initial stiffness for the first iteration of each step and the current tangent for the others. With the default options it is the same as the :ref:`Newton` algorithm. .. note:: The ``-factorOnce`` option behaves as for the :ref:`KrylovNewton` algorithm. .. admonition:: Example: The following example creates a RaphsonNewton algorithm that uses the initial stiffness at the start of each step and the current tangent in the later iterations. .. tabs:: .. tab:: Tcl .. code-block:: tcl algorithm RaphsonNewton -increment initial -iterate current .. tab:: Python .. code-block:: python ops.algorithm('RaphsonNewton', '-increment', 'initial', '-iterate', 'current') Code Developed by: |mhs|