Skip to content
 
 

Latest commit

 

History

26 Commits

Folders and files

NameName
Last commit message
Last commit date
 
 
 
 
 
 
 
 
 
 

Repository files navigation

b3_mat

A library for handling composite material data in b3m, tying together material data across various contexts like 3D FEA (Calculix, ANSYS), classical laminate theory calculations, 2D FEA (ANBA, BECAS), fatigue damage, and material volume/mass/cost.

Features

  • Material data models using Pydantic for validation and serialization.
  • Support for isotropic and orthotropic materials.
  • Exporters for ANBA and Calculix formats.
  • Integration with composipy and lamprop for laminate calculations.
  • CLI for material processing and export.

Installation

pip install -e .

Usage

CLI

b3_mat --help

Python API

from b3_mat import MaterialDB

# Load materials from YAML
mat_db = MaterialDB.from_yaml("materials_si.yml")

# Export to Calculix format
ccx_block = mat_db.to_calculix()
print(ccx_block)

Development

Run tests:

pytest

Format and lint:

ruff format
ruff check --fix

About

Handling of material properties

Resources

Stars

0 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages