> For the complete documentation index, see [llms.txt](https://enercalc.com/docs/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://enercalc.com/docs/e3d-verification-manual/examples-and-reference/step-by-step-examples/example-8-brick-patch-test.md). Agents can also search and read this documentation through its [MCP server](https://enercalc.com/docs/~gitbook/mcp).

# Example 8: Brick Patch Test

Step-by-step example verifying that the brick element passes the MacNeal-Harder constant-strain patch test.

**Problem Description**

This is a patch test for a unit cube \[Ref. 4 pp3-20]. The cube is modeled with 7 eight-node brick elements. Nodal coordinates, element connectivity and boundary conditions are given in the following tables. Boundary conditions are given as forced displacements. No additional loads are prescribed.

Material: E = 1.e6 psi; ν = 0.25

Find stresses for each element.

![](https://4072467611-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FxKaQxkfUtvHFmxF5Qzwp%2Fuploads%2Fgit-blob-77900b96f11a773db146aae09f61e0d64f8b8b5b%2FE-04%20\(Brick%20Patch%20Test\)1.jpg?alt=media)

| Nodal coordinates (inch) | Displacement field u = 0.001 \* (2x + y + z) / 2 v = 0.001 \* (x + 2y + z) / 2 w = 0.001 \* (x + y + 2z) / 2 Forced displacements (inch) on boundary All strains are constant. For example ![](https://4072467611-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FxKaQxkfUtvHFmxF5Qzwp%2Fuploads%2Fgit-blob-707ea46f77fd754c80546d2345e492b94e595089%2FE-04%20\(Brick%20Patch%20Test\)4.jpg?alt=media) ![](https://4072467611-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FxKaQxkfUtvHFmxF5Qzwp%2Fuploads%2Fgit-blob-3b5773813d7bc5fd5efab7a2b5e682c1a668bc12%2FE-04%20\(Brick%20Patch%20Test\)5.jpg?alt=media) |
| ------------------------ | ---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |

**Element Connectivity**

| Element | Node1 | Node2 | Node3 | Node4 | Node5 | Node6 | Node7 | Node8 |
| ------- | ----- | ----- | ----- | ----- | ----- | ----- | ----- | ----- |
| 1       | 1     | 2     | 3     | 4     | 5     | 6     | 7     | 8     |
| 2       | 4     | 3     | 11    | 12    | 8     | 7     | 15    | 16    |
| 3       | 9     | 10    | 2     | 1     | 13    | 14    | 6     | 5     |
| 4       | 2     | 10    | 11    | 3     | 6     | 14    | 15    | 7     |
| 5       | 9     | 1     | 4     | 12    | 13    | 5     | 8     | 16    |
| 6       | 9     | 10    | 11    | 12    | 1     | 2     | 3     | 4     |
| 7       | 5     | 6     | 7     | 8     | 13    | 14    | 15    | 16    |

**Suggested Modeling Steps**

* Set proper units from Settings and Tools > Units & Precisions.
* Input the nodal coordinates by Tables > Nodes.
* Modify the default material by Tables > Materials.
* Input the bricks by Tables > Bricks. Use the default material (=1).
* Input the boundary conditions by Tables > Supports. Enter the support flag “111000” for each support. Enter the forced displacements according to the table above.
* Set the analysis options by Analysis > Analysis Options. Choose the model type “3D Brick”.

**Results**

The comparison of stresses (psi) between the program and the referenced results is excellent. Each stress component is uniform in all seven elements.

|             | Sxx      | Syy      | Szz      | Sxy     | Syz     | Sxz     |
| ----------- | -------- | -------- | -------- | ------- | ------- | ------- |
| ENERCALC 3D | 1999.982 | 1999.982 | 1999.982 | 399.999 | 399.999 | 399.999 |
| \[Ref. 4]   | 2000     | 2000     | 2000     | 400     | 400     | 400     |

**Comments**

The brick element passes the patch test. Therefore, “the results for any problem solved with the element will converge toward the correct solution as the elements are subdivided.” \[Ref. 4] The tiny differences in stresses are due to the penalty approach employed in support enforcement.


---

# 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://enercalc.com/docs/e3d-verification-manual/examples-and-reference/step-by-step-examples/example-8-brick-patch-test.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.
