> 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/material/material1d/viscosity/maxwell.md).

# Maxwell

Maxwell Model Using An Iterative Solving Algorithm

This material model does respond to both displacement and velocity.

## References

1. [10.1016/j.ymssp.2021.108795](https://doi.org/10.1016/j.ymssp.2021.108795)

## Syntax

```
material Maxwell (1) (2) (3) [4] [5] [6]
# (1) int, unique tag
# (2) int, damper tag
# (3) int, spring tag
# [4] bool string, whether to use matrix formulation, default: false
# [5] int, the maximum unconverged substep allowed, default: 0
# [6] double, local time integration parameter, default: 0.5
```

## Remarks

1. When `[4]` is set to true, the matrix formulation is used, that is, a 3-by-3 matrix is used in local iterations. However, the inverse of the Jacobian is not computed numerically, but analytically. When it is set to false, the scalar iteration is performed. In general, a scalar algorithm requires fewer floating number operations but may be less numerically stable.
2. The parameter `[5]` can be set to a nonzero positive integer to allow some unconverged substeps to be accumulated to avoid sharp transition regions that may cause numerical issues. As a result, the response may not be as smooth as in other regions.
3. The parameter `[6]` is used to control how local strain is integrated. A value of $$0.0$$ indicates it would be automatically computed based on the input strain and strain rate increments. A value of $$0.5$$ indicates a linear distribution of spring strain over time.

## Recording

This model supports the following additional history variables to be recorded.

| variable label | physical meaning        |
| -------------- | ----------------------- |
| SD, SS, S      | stress                  |
| ED             | damper strain           |
| VD             | damper strain rate      |
| ES             | spring strain           |
| VS             | spring strain rate      |
| E              | total strain            |
| V              | total strain rate       |
| LITR           | local iteration counter |


---

# 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 by asking a question.

Perform an HTTP GET request on the following URL with the `ask` and `goal` query parameters:

```
GET https://tlcfem.gitbook.io/suanpan-manual/material/material1d/viscosity/maxwell.md?ask=<question>&goal=<user_goal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is what the user is ultimately trying to achieve, the reason they need the answer. Sharing it helps GitBook give you a better, more relevant answer. A goal is most helpful when it describes the outcome the user wants rather than restating the question. For example, with `ask=how do I create an API token`, a goal like `automate deployments from our CI pipeline` lets GitBook tailor the answer to that use case.

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.
