Skip to content

pyflightstream.fsi.materials (stable)

Generated from the docstrings at build time: every one of the 7 names in the __all__ of pyflightstream.fsi.materials has an entry below. The names a guide or an example uses come first; the others follow under Advanced.

Versioned database of structural materials for the blade properties.

Pipeline role: the material half of the blade's structural properties. :func:pyflightstream.fsi.sections.blade_properties_from_sections multiplies the section constants of a blade's geometry by the density and the elastic moduli of one entry here, and records the entry, its source and :data:MATERIALS_DATABASE_VERSION beside the numbers it produced, so a configuration generated from a geometry says where every number came from.

The rule of this module: no number without a source. Every entry takes its density, Young's modulus, shear modulus and Poisson's ratio from ONE cited data set, consistently, so the four numbers of an entry never mix two references. When a source tabulates no shear modulus the entry derives it as E / (2 (1 + nu)) and says so in :attr:Material.shear_modulus_basis; every entry shipped today takes its shear modulus as tabulated, which is not always equal to that isotropic relation (the titanium entry below differs from it by about 4 percent), and the tabulated value is the one kept.

The numbers are room-temperature typical values of the condition the entry names, fit for a structural model of a blade and not a substitute for the design allowables of a certified part.

Changing a number, a source or the set of entries is a new database version: :data:MATERIALS_DATABASE_VERSION moves in the same commit, so a configuration generated before the change still names the version it was generated from.

Used in the guides

pyflightstream.fsi.materials.material

material(key: str) -> Material

Return the database entry named key.

Parameters:

Name Type Description Default
key str

One of the keys of :data:MATERIALS, for example "ti-6al-4v-grade5-annealed".

required

Returns:

Type Description
Material

The entry, with its source.

Raises:

Type Description
FsiInputError

When no entry carries that key; the message lists the keys.

Examples:

>>> from pyflightstream.fsi.materials import material
>>> titanium = material("ti-6al-4v-grade5-annealed")
>>> titanium.youngs_modulus_pa
113800000000.0

Advanced

pyflightstream.fsi.materials.MATERIALS module-attribute

MATERIALS: Mapping[str, Material] = MappingProxyType(
    {
        entry.key: entry
        for entry in (_TI_6AL_4V, _AL_7075_T6)
    }
)

pyflightstream.fsi.materials.MATERIALS_DATABASE_VERSION module-attribute

MATERIALS_DATABASE_VERSION = '1'

pyflightstream.fsi.materials.Material dataclass

Material(
    key: str,
    name: str,
    density_kg_per_m3: float,
    youngs_modulus_pa: float,
    shear_modulus_pa: float,
    poisson_ratio: float,
    shear_modulus_basis: str,
    source: MaterialSource,
    notes: str = "",
)

One homogeneous, isotropic, linear elastic material.

Attributes:

Name Type Description
key str

Lookup key of :func:material.

name str

Human-readable name with its condition.

density_kg_per_m3 float

Density rho [kg/m^3].

youngs_modulus_pa float

Young's modulus E [Pa].

shear_modulus_pa float

Shear modulus G [Pa].

poisson_ratio float

Poisson's ratio nu [-].

shear_modulus_basis str

:data:SHEAR_MODULUS_TABULATED or :data:SHEAR_MODULUS_DERIVED.

source MaterialSource

The one data set all four numbers come from.

notes str

What the source itself says about the numbers' standing.

pyflightstream.fsi.materials.MaterialSource dataclass

MaterialSource(
    document: str,
    table: str,
    condition: str,
    url: str,
    consulted: str,
)

Where an entry's four numbers were read.

Attributes:

Name Type Description
document str

Title and publisher of the data set, as printed on it.

table str

The table, section or rows of the document the numbers were read from.

condition str

The material condition the data set states (temper, heat treatment, product form), with its own qualifiers.

url str

Where the document was consulted.

consulted str

ISO date on which the numbers were read from the document.

citation

citation() -> str

Return the source as one line of text, for the provenance record.

pyflightstream.fsi.materials.SHEAR_MODULUS_DERIVED module-attribute

SHEAR_MODULUS_DERIVED = (
    "derived as E / (2 (1 + nu)) from the source's E and nu"
)

pyflightstream.fsi.materials.SHEAR_MODULUS_TABULATED module-attribute

SHEAR_MODULUS_TABULATED = 'tabulated by the source'