> 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/material3d/elastic/isotropicnonlinearelastic3d.md).

# IsotropicNonlinearElastic3D

General Nonlinear Elastic Isotropic 3D Material Framework

The `IsotropicNonlinearElastic3D` class is an abstract general purpose framework.

It offers an interface to allow users to define arbitrary strain energy potential based on volumetric strain and equivalent strain (squared), that is

$$
W=f\left(\varepsilon\_v,\varepsilon\_p^2\right),
$$

where

$$
\varepsilon\_v=\text{trace}\left(\varepsilon\right),\qquad\varepsilon\_p=\sqrt{\dfrac{2}{3}\varepsilon\_d:
\varepsilon\_d}.
$$

Note it is normally expressed in terms of equivalent strain rather than its square. However, the derivation of tangent stiffness would be too cumbersome.

## Overridden Method

The `IsotropicNonlinearElastic3D` provides a method that shall be overridden.

```cpp
virtual vec compute_derivative(double, double) = 0;
```

The first argument is $$\varepsilon\_v$$. The second argument is $$\varepsilon\_s=\varepsilon\_p^2$$.

The method shall return a vector of size six with the following values computed.

| **index** | **value**                                                             |
| --------- | --------------------------------------------------------------------- |
| $$0$$     | $$\dfrac{\partial{}W}{\partial\varepsilon\_v}$$                       |
| $$1$$     | $$\dfrac{\partial{}W}{\partial\varepsilon\_s}$$                       |
| $$2$$     | $$\dfrac{\partial^2W}{\partial\varepsilon\_v^2}$$                     |
| $$3$$     | $$\dfrac{\partial^2W}{\partial\varepsilon\_s^2}$$                     |
| $$4$$     | $$\dfrac{\partial^2W}{\partial\varepsilon\_v\partial\varepsilon\_s}$$ |
| $$5$$     | $$\dfrac{\partial^2W}{\partial\varepsilon\_s\partial\varepsilon\_v}$$ |


---

# 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/material3d/elastic/isotropicnonlinearelastic3d.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.
