Skip to main content

Toolkit for stress analysis and failure prediction of composite laminates with holes and joints.

Project description

lamkit

lamkit is a Python toolkit for composite laminate analysis, focused on:

  • Laminate stress/strain response based on Classical Lamination Theory (CLT)
  • LaRC05 failure index evaluation
  • Lekhnitskii open-hole infinite-plate analytical solution
  • Open-hole plate's effective (homogenisation) properties
  • Linear buckling analysis of laminates
  • Objective/constraint evaluation for laminate optimization tasks

Installation

Requirements

  • Python >=3.9
  • Core dependencies: numpy, pandas, matplotlib

Install from PyPI

pip install lamkit

Install for local development

pip install -e .[dev,docs]

Quick Start

The following example creates a laminate and evaluates ply-surface fields under membrane loading:

import numpy as np
from lamkit import Laminate, Ply
from lamkit.analysis.material import IM7_8551_7

ply = Ply(IM7_8551_7, thickness=0.125)  # mm
stacking = [45, -45, 0, 90, 90, 0, -45, 45]
laminate = Laminate(stacking=stacking, plies=ply)

# N = [Nxx, Nyy, Nxy, Mxx, Myy, Mxy]
N = np.array([80.0, 0.0, 0.0, 0.0, 0.0, 0.0])
field = laminate.evaluate_laminate(N)

print(field[["index_ply", "index_surface", "z", "sigma_1", "sigma_2", "tau_12", "FI_max"]].head())

Examples

The example/ directory contains runnable scripts:

  1. Laminate response (CLT + LaRC05)
    example/1-laminate/example_laminate.py
    Computes through-thickness stress/strain and LaRC05 index distributions with plots.

  2. Lekhnitskii unloaded-hole solution
    example/2-lekhnitskii-solution/example_unloaded_hole.py
    Solves and visualizes open-hole stress fields.

  3. Laminate open-hole field analysis
    example/3-open-hole/example_open_hole.py
    Couples laminate equivalent compliance with open-hole fields and generates failure envelopes/boundary maps.

  4. Effective stiffness with hole homogenization
    example/4-effective-stiffness/example_effective_stiffness.py
    Compares laminate stiffness A (without hole) and homogenized stiffness A_eff (with hole).

  5. Laminate linear buckling
    example/5-laminate-buckling/example_buckling.py
    Computes buckling eigenvalues and saves buckling mode plots.

  6. Optimization objective/constraint evaluation
    example/6-laminate-optimization-task/example_laminate_opt_function.py
    Demonstrates combined displacement, failure, and buckling constraint evaluation for design tasks.

Common Development Commands

Run tests

pytest

Build distribution package

python -m build

Build documentation

cd docs
sphinx-build -b html . _build/html

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

lamkit-0.1.2.tar.gz (6.3 MB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

lamkit-0.1.2-py3-none-any.whl (314.9 kB view details)

Uploaded Python 3

File details

Details for the file lamkit-0.1.2.tar.gz.

File metadata

  • Download URL: lamkit-0.1.2.tar.gz
  • Upload date:
  • Size: 6.3 MB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.12.3

File hashes

Hashes for lamkit-0.1.2.tar.gz
Algorithm Hash digest
SHA256 7c1eae86530826f841722df61956e0646170769e70d627dbf1e7bf878637fe61
MD5 1759cc93ad4f422bff68197c376167c7
BLAKE2b-256 57c89fe7e2daea0f4cc7648fc256ad95d5fc8ccf58189df6c05403f6c3760cce

See more details on using hashes here.

File details

Details for the file lamkit-0.1.2-py3-none-any.whl.

File metadata

  • Download URL: lamkit-0.1.2-py3-none-any.whl
  • Upload date:
  • Size: 314.9 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.12.3

File hashes

Hashes for lamkit-0.1.2-py3-none-any.whl
Algorithm Hash digest
SHA256 ae1409bca6875cb042fcc88401582a72dfe2aa00ecb698e8cb68bec276f15c3c
MD5 9e33dec43bdfe81a011d57f7b711b584
BLAKE2b-256 b259f6cc7e8d82c7e6bdffb3c628b317734d411c6a8817c6bcbc84d657cf7e82

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page