Material Database โ
The material database turns a standard grade name into a consistent elastic material, so you do not have to type
๐ง Grasshopper component โ

NameMaterial NameType a grade name directly, e.g. S235.
DBPathDatabasePathPath to a custom JSON database with the same schema as the built-in ones.
ColourThe colour the material is drawn in when Model View colours the elements by material โ every grade of the list, with Grade set to All.
Options โ
Three dropdowns live on the component body, under the Library menu:
| Dropdown | Values | Default |
|---|---|---|
| Type | Steel, Concrete, Timber, Plastic, Reinforcement โ plus any type found in a custom database | Steel |
| Grade | All, then the grades of the selected type | S235 |
| Model | Uniaxial or nD | Uniaxial |
Set Grade to All for every grade of the type as a list, in the order the database lists them โ weakest first for steel, S235 to S450. Pick from it with List Item and a slider to let an optimisation choose the grade. Connect a Panel to the output to read the list: each material shows as its name.
Built-in grades:
| Type | Grades |
|---|---|
| Steel | S235, S275, S355, S450 |
| Concrete | C12_15 to C90_105 (EN 1992-1-1 Table 3.1), and C28_35 and C32_40 |
| Timber | GOB_Green_Oak; C14 to C50 and D30 to D70 (EN 338:2016); GL20h to GL32h and GL20c to GL32c (EN 14080) |
| Plastic | PVC, HDPE, PE, PP, PS, PET, PC, PLA, PVA, PTFE, PEEK, PVDF |
| Reinforcement | B400A, B400B, B400C, B450A, B450C, B500A, B500B, B500C, B550B (EN 1992-1-1 3.2 and Annex C) |
๐ก How the properties are derived โ
Each database entry stores E and G in MPa and rho in kg/mยณ. The component:
- Converts
EandGtokN/mยฒby ร1000. - Derives Poisson's ratio from the pair,
ฮฝ = E/(2G) โ 1, clamped to[0, 0.4999]. - Recomputes
G = E / (2(1+ฮฝ))so the triple is internally consistent. - Passes
rhothrough unchanged.
The grade name becomes the material name.
๐ก Design grade โ
For a steel grade the material also carries its design grade โ
The timber classes follow EN 338:2016 (solid timber) and EN 14080 (glulam). The analysis takes E_mean as E0_05, the strengths and, for glulam, G_05 are for the check alone.
A concrete carries its class of EN 1992-1-1 Table 3.1, from its name โ C30_37 is C30/37 โ and a reinforcement its C30/37, has. C28_35 and C32_40, which national annexes add, are worked out from the expressions under the table, rounded as it rounds.
๐ก Custom databases โ
A custom database is a JSON object keyed by grade name. The built-in steel file looks like this:
{
"S235": {
"rho": 7850,
"E": 210000,
"G": 80769,
"fy": 235,
"fu": 360,
"fy_40_80": 215,
"fu_40_80": 360,
"epsilon_yield": 0.015,
"epsilon_max_Stress": 0.11,
"strainAtRupture": 0.17,
"material_type": "Steel"
}
}E, G, rho and material_type make the elastic material. material_type is what the Type dropdown lists, so give every entry in one file the same value.
An entry whose material_type is Steel and which gives fy is also a design grade, for Utilisation: fy and fu in N/mmยฒ for plates up to 40 mm thick, and fy_40_80 and fu_40_80, if given, for 40 to 80 mm. Strain values are not read.
An entry whose material_type is Reinforcement is a reinforcing steel: fyk in N/mmยฒ, kepsilon_uk in %, and ductility_class A, B or C; k and epsilon_uk left out take the class's least, Table C.1.
An entry whose material_type is Timber is a timber class, with the keys of the built-in timber file, all in N/mmยฒ but the densities in kg/mยณ: fm_k, ft_0_k, ft_90_k, fc_0_k, fc_90_k, fv_k, E_mean, E0_05, G_mean, rho_k, rho_mean, and G_05 where it is tabulated. A type of Glulam makes it glulam; anything else is solid timber. The check needs fm_k, ft_0_k, fc_0_k, fv_k, E0_05 and G_mean; a class without one is left unchecked.
๐ When to use it โ
Use it when
- You want a standard grade and want
E,Gandฮฝto agree with each other. - Your office has its own grades or a national standard not in the default set โ point DatabasePath at a JSON file.
Do not use it when
- The material is non-standard โ use Uniaxial or nD directly.
- You need non-linearity โ the database is elastic only. See Moment Curvature for
Concrete01,Steel01andReinforcingSteel.
