> For the complete documentation index, see [llms.txt](https://tlcfem.gitbook.io/suanpan-manual/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://tlcfem.gitbook.io/suanpan-manual/integrator/implicit/newmark/leenewmarkiterative.md).

# LeeNewmarkIterative

## Syntax

```
integrator LeeNewmarkIterative (1) (2) (3) ((4) (5) (6) [7...]...)
# (1) int, unique integrator tag
# (2) double, alpha in Newmark method
# (3) double, beta in Newmark method
# (4) string, type identifier
# (5) double, \zeta_p
# (6) double, \omega_p
# (7...) double/int, parameters associated with the mode
```

## Remarks

1. The definition of parameters is **identical** to that of [`LeeNewmarkFull`](/suanpan-manual/integrator/implicit/newmark/leenewmarkfull.md).
2. Instead of unrolling all modes into a single sparse damping matrix, this integrator uses an iterative procedure to solve system. The convergence rate is **linear**.
3. Since the convergence rate is linear even with [`Newton`](/suanpan-manual/solver/newton.md) method, one may use the [`(L)BFGS`](/suanpan-manual/solver/bfgs.md) method to achieve a super-linear convergence rate.

The damping force is obtained via matrix operations, which include matrix inversion. In this phase, some sparse matrices will be formed, to control what solver to be used to solve sparse matrix, one can set the subsystem solver via the following commands.

```
set sub_system_solver MUMPS
set sub_system_solver SuperLU
set sub_system_solver PARDISO ! if MKL is available
set sub_system_solver FGMRES ! if MKL is available
set sub_system_solver CUDA ! if CUDA is available
# currently no iterative solver is available
```

It is recommended to use a dense matrix storage for the system with a [`(L)BFGS`](/suanpan-manual/solver/bfgs.md) solver. This configuration can maximize the performance. For example,

```
step dynamic 1 10
solver LBFGS 1 50
# the following are the default
set banded_mat true
set symm_mat false
set sparse_mat false
set system_solver SPIKE
set sub_system_solver SuperLU

integrator LeeNewmarkIterative 1 .25 .5 ...
```

The above configuration uses a dense banded asymmetric matrix to store the system matrix. The equation of motion will be solved via the SPIKE solver. For damping force computation, the relevant sparse matrices will be solved by the SuperLU solver.


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## Querying This Documentation
If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter, and the optional `goal` query parameter:

```
GET https://tlcfem.gitbook.io/suanpan-manual/integrator/implicit/newmark/leenewmarkiterative.md?ask=<question>&goal=<endgoal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is optional and describes the broader end goal you are ultimately trying to accomplish on behalf of the user. GitBook uses it to tailor the answer towards what is most useful for that goal.

The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
