Material#

class sectionproperties.pre.pre.Material(name: str, elastic_modulus: float, poissons_ratio: float, yield_strength: float, density: float, color: str)[source]#

Bases: object

Class for structural materials.

Provides a way of storing material properties related to a specific material. The color can be a multitude of different formats, refer to https://matplotlib.org/stable/api/colors_api.html and https://matplotlib.org/stable/gallery/color/named_colors.html for more information.

Variables:
  • name (str) – Material name

  • elastic_modulus (float) – Material modulus of elasticity

  • poissons_ratio (float) – Material Poisson’s ratio

  • yield_strength (float) – Material yield strength

  • density (float) – Material density (mass per unit volume)

  • color (str) – Material color for rendering

Example

The following example creates materials for concrete, steel and timber:

from sectionproperties.pre import Material

concrete = Material(
    name="Concrete",
    elastic_modulus=30.1e3,
    poissons_ratio=0.2,
    density=2.4e-6,
    yield_strength=32,
    color="lightgrey",
)
steel = Material(
    name="Steel",
    elastic_modulus=200e3,
    poissons_ratio=0.3,
    density=7.85e-6,
    yield_strength=500,
    color="grey",
)
timber = Material(
    name="Timber",
    elastic_modulus=8e3,
    poissons_ratio=0.35,
    density=6.5e-7,
    yield_strength=20,
    color="burlywood",
)

Methods

Attributes

shear_modulus

Returns the shear modulus of the material.

name

elastic_modulus

poissons_ratio

yield_strength

density

color

property shear_modulus: float#

Returns the shear modulus of the material.

Material shear modulus, derived from the elastic modulus and Poisson’s ratio assuming an isotropic material.

Returns:

Shear modulus of the material