> For the complete documentation index, see [llms.txt](https://manual-1-3.karamba3d.com/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://manual-1-3.karamba3d.com/2-getting-started/2-getting-started-1/setting-up-a-structural-analysis/2.2.7-specify-materials.md).

# 2.2.7: Specify Materials

Materials can be either defined by manually setting their mechanic properties or by selection from a library of predefined materials (see fig. 2.2.7.1 (3)). Materials attach to cross sections. There are two options for assigning materials:

![Fig. 2.2.7.1: Definition of materials via element names](/files/-M9XuRnKh8vcpJxtHXhv)

1. Assignment via the **“Assemble”**-component (see fig. 2.2.7.1). The **“Elem|Id”** input-plug specifies the names of the elements to which the material shall be attached. Alternatively a regular expression can be used to select elements. Leaving **“Elem|Id”** empty sets the material for all elements. Materials are not attached to elements directly but to the element’s cross section.&#x20;
2. Direct input at the **“Cross Section”**-component like in fig. 2.2.7.2.

![ Fig. 2.2.7.2: Definition of a material directly at the "Element"-component](/files/-M9XuRnLZULqINGpBAMS)

Fig. 2.2.7.1 shows how materials can be defined by element names **“Elem|Id”**: definition of an isotropic custom material (1); definition of an orthotropic custom material (2); selection of a material from the material library (3).

{% hint style="info" %}
Assignment via the **“Assemble”**-component overrides direct assignment in the cross section.
{% endhint %}

{% hint style="info" %}
Should you not assign a material to your beam or shell elements, the [default material ](/2-getting-started/2-getting-started-1/karamba3d-entities.md#default-settings)will be used.
{% endhint %}


---

# 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://manual-1-3.karamba3d.com/2-getting-started/2-getting-started-1/setting-up-a-structural-analysis/2.2.7-specify-materials.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.
