Skip to content

compas_model.materials ¤

Classes¤

Concrete ¤

Concrete(
    fck: float,
    fck_cube: float | None = None,
    fcm: float | None = None,
    fctm: float | None = None,
    Ecm: float | None = None,
    density: float = 2400,
    poisson: float = 0.2,
    name: str | None = None,
)

Class representing a generic concrete material.

Parameters:

  • fck (float) –

    Characteristic cylinder compressive strength in [MPa].

  • fck_cube (float, default: None ) –

    Characteristic cube compressive strength in [MPa]. If not provided, fck_cube = 1.25 * fck is used.

  • fctm (float, default: None ) –

    Mean tensile strength in [MPa]. If not provided, fctm = 0.1 * fck is used.

  • Ecm (float, default: None ) –

    Modulus of elasticity in [GPa].

  • density (float, default: 2400 ) –

    Density of the material in [kg/m3]. If not provided, 2400 kg/m3 is used.

  • poisson (float, default: 0.2 ) –

    Poisson's ratio. If not provided, poisson = 0.2 is used.

  • name (str, default: None ) –

    Name of the material.

Attributes:

  • fck (float) –

    Characteristic cylinder compressive strength in [MPa].

  • fck_cube (float) –

    Characteristic cube compressive strength in [MPa].

  • fcm (float) –

    Mean compressive strength as fcm = fck + 8 Mpa.

  • fctm (float) –

    Mean tensile strength in [MPa].

  • Ecm (float) –

    Modulus of elasticity in [MPa].

Functions¤

from_strength_class classmethod ¤
from_strength_class(
    strength_class: Literal["C10", "C15", "C20", "C25", "C30", "C35"],
) -> Concrete

Construct a concrete material from a strength class.

Parameters:

  • strength_class ((C10, C15, C20, C25, C30, C35), default: 'C10' ) –

    The strength class of the concrete.

Returns:

Material ¤

Material(name: str | None = None)

Base class for all types of materials.

Parameters:

  • name (str, default: None ) –

    The name of the material.

Steel ¤

Steel(fy: float, fu: float, name: str | None = None)

Functions¤

from_strength_class classmethod ¤
from_strength_class(strength_class: Literal['S235', 'S275', 'S355', 'S450']) -> Steel

Construct a steel material from a steel strength class.

Parameters:

  • strength_class ((S235, S275, S355, S450), default: 'S235' ) –

    The strength class.

Returns: