# 3.4.3: 从文件中读取材料列表 (Read Material Table from File)

![图3.4.3.1：默认材料数据库的局部视图。](/files/-M9XuTMkWpu3V4aXnB9s)

Karamba3D自带一个预定义材料列表。csv文件“Materialproperties.csv”位于Karamba3D的安装文件夹中。默认情况下，**“ReadMatTable（读取材料列表）”**&#x8FD0;算器将获取此文件并从中创建材料列表。上述列表可&#x5728;**“Material（材料）”**&#x8F93;出端获取。该数据库目前包含“steel（钢材）”、“concrete（混凝土）”、“wood（木材）”和“aluminum（铝材）”的材料属性。包括不同类型的钢材、混凝土等。使用通用术语“concrete（混凝土）”程序会自动选择普通类型的混凝土（根据欧洲规范2的C25/30）。也可给出更具体的描述：查看数据库以获取概述。假设通过表格指定的材料特性是以国际单位制表示的，在英制单位的语境中使用时，它们会自动转换。

![图3.4.3.2：由“ReadMatTable（读取材料列表）”运算器读取默认材料数据库产生的材料清单。](/files/-M9XuTMlSn1Ynlf54gdU)

图3.4.3.1 显示了如何通过表格定义各向同性材料的示例。对于正交各向异性材料，则需要将“D”纵列中的项目设置为与“iso”不同的项目。从“E”列开始的正交各向异性材料参数的顺序&#x4E0E;**“Material Property（材料特性）”**&#x8FD0;算器的顺序相对应：$$E\_1$$, $$E\_2$$, $$G\_{12}$$,$$\nu\_{12}$$,$$G\_{31}$$, $$G\_{32}$$,$$\gamma$$,$$\alpha\_{T1}$$,$$\alpha\_{T2}$$,$$f\_{y1}$$,$$f\_{y2}$$ 和“Color（颜色）”。

扩展名.csv代表“comma separated value（逗号分隔值）”。可以使用任何文本编辑器打开该文件，并且该文件包含以分号分隔的列表条目。不过，最好是使用OpenOffice或Excel（两者都可读取和写入csv文件）：它们以整齐的格式呈现数据（请参见图3.48）。确保使用一个“.”而不是将“，”设置为小数点分隔符。在某些国家/地区，使用“.”分隔千与万，需对其进行调整。在Windows操作系统下，可以通过“system settings（系统设置）”中的“regional settings”（区域设置）”更改设置。列表中以“＃”开头的所有行均为注释。用户可以随意定义自己的材料。

可通过两种方式更改材料数据库的文件路径：第一种方式，右键单击该运算器，然后在弹出的上、下文菜单中单&#x51FB;**“Select file path to material definitions（选择材料定义的文件路径）”**。第二种方式，将带有文件路径的书写面板接&#x5165;**“Path（路径）”**。相对路径是相对于用户定义所在的目录。


---

# Agent Instructions: 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:

```
GET https://manual-1-3.karamba3d.com/chinese_1_3_3/3-in-depth-component-reference/3.4-material/3.4.3-read-material-table-from-file.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
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.
