Pre

Materials

class feastruct.pre.material.Material(name, elastic_modulus, poissons_ratio, rho, colour='w')[source]

Class for structural materials (assumed isotropic).

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

Variables:
  • name (string) – Material name
  • elastic_modulus (float) – Material modulus of elasticity
  • poissons_ratio (float) – Material Poisson’s ratio
  • shear_modulus (float) – Material shear modulus, derived from the elastic modulus and Poisson’s ratio assuming an isotropic material
  • rho (float) – Material density
  • colour (matplotlib.colors) – Material colour for rendering
__init__(name, elastic_modulus, poissons_ratio, rho, colour='w')[source]

Inits the Material class.

Parameters:
  • name (string) – Material name
  • elastic_modulus (float) – Material modulus of elasticity
  • poissons_ratio (float) – Material Poisson’s ratio
  • rho (float) – Material density
  • colour (matplotlib.colors) – Material color for rendering
class feastruct.pre.material.Steel[source]

Bases: feastruct.pre.material.Material

Class for structural steel to AS4100-1998.

Material properties:

  • name: steel
  • elastic_modulus: 200000 N/mm2
  • poissons_ratio: 0.3
  • rho: 7.85e-9 T/mm^3
  • colour: lightgrey
__init__()[source]

Inits the Steel class.

Sections

class feastruct.pre.section.Section(name='', area=1, ixx=1, iyy=1, j=1, A_sx=1, A_sy=1, colour='k')[source]

Class for storing cross-section properties.

Variables:
  • name (string) – Section name
  • area (float) – Cross-sectional area
  • ixx (float) – Second moment of area about the centroidal x-axis
  • iyy (float) – Second moment of area about the centroidal y-axis
  • j (float) – Torsion constant
  • A_sx (float) – Shear area about the x-axis
  • A_sy (float) – Shear area about the y-axis
  • colour (matplotlib.colors) – Section colour for rendering
__init__(name='', area=1, ixx=1, iyy=1, j=1, A_sx=1, A_sy=1, colour='k')[source]

Inits the Section class.

Parameters:
  • name (string) – Section name
  • area (float) – Cross-sectional area
  • ixx (float) – Second moment of area about the centroidal x-axis
  • iyy (float) – Second moment of area about the centroidal y-axis
  • j (float) – Torsion constant
  • A_sx (float) – Shear area about the x-axis
  • A_sy (float) – Shear area about the y-axis
  • colour (matplotlib.colors) – Section colour for rendering