"This function returns the map that maps elements to materials.",
py::arg("type"),
py::arg("ghost_type")=_not_ghost,
py::return_value_policy::reference
)
.def("getMaterialOf",
[](StructuralMechanicsModel&self,Elementelement)
{returnself.getMaterial(element);},
"This function returns the `StructuralMaterial` instance that is associated with element `element`."
" It is important that the returned object can be modified, but this will not affect the material stored inside the model."
" If you want to change the material, use `addMaterial()` to add a new one and then manipulate the mapping by operating on `getElementMaterialMap()`.",
py::arg("element"),
py::return_value_policy::copy//By using the copy operation, we completly decouple the C++ and Python part.