Skip to main content

This package intends to perform composite material calculations

Project description

Downloads Deploy Test PyPI LinkedIn Youtube DOI

Composipy

What it is

Composipy is a Python-based library designed to address the challenges of composite plate analysis and optimization in the aerospace industry, where weight reduction is crucial for efficient and profitable aircraft design. The library offers tools for plate buckling analysis and lamination parameter optimization, empowering engineers to streamline the design process and enhance structural performance. Utilizing object-oriented programming and native Python structures, Composipy ensures a seamless workflow and easy integration into existing engineering practices. Through continuous integration and delivery practices, Composipy maintains reliability and efficiency.

Composipy is able to perform buckling calculation considering different boundary conditions and in-plane load applications. See Examples.

How to install

Directly From PYPI

pip install composipy

Built from source

python setup.py install

Documentation

Quick start

Create the Material Properties.

from composipy import OrthotropicMaterial
 
E1 = 60800
E2 = 58250
v12 = 0.07
G12 = 4550
t = 0.21

mat_1 = OrthotropicMaterial(E1, E2, v12, G12, t)

See OrthotropicMaterial for reference.

Define the Laminate.

from composipy import LaminateProperty
stacking = [-45, 45, 90, 0, 0, 0, 0, 90, 45, -45]
laminate1 = LaminateProperty(stacking, mat_1)

See LaminateProperty for reference.

Calculate Stiffnnes Matrix and Lamination Parameters

print(laminate1.ABD) # prints the ABD matrix as a np.ndarray
print(laminate1.xiA) # prints lamination parameters of extension as a np.ndarray
print(laminate1.xiD) # prints lamination parameters of bending as a np.ndarray

Create a Plate Structure.

from composipy import PlateStructure
 
constraints = {    
     'x0' : ['TX', 'TY', 'TZ', 'RX', 'RY', 'RZ'],
     'xa' : ['TX', 'TY', 'TZ', 'RX', 'RY', 'RZ'],
     'y0' : ['TX', 'TY', 'TZ', 'RX', 'RY', 'RZ'],
     'yb' : ['TX', 'TY', 'TZ', 'RX', 'RY', 'RZ']
}
panel = PlateStructure(laminate1, 360, 360, m=10, n=10, Nxx=-1, constraints=constraints)

See PlateStructure for reference.

Calculate Buckling

print(panel.buckling_analysis()) # solve the eigenvalue problem.

Plot Buckling shape mode

print(panel.plot_eigenvalue())

Theoretical References

The implementation of composipy is based on the following reference:

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

composipy-1.4.1.tar.gz (283.4 kB view details)

Uploaded Source

Built Distribution

composipy-1.4.1-py3-none-any.whl (285.0 kB view details)

Uploaded Python 3

File details

Details for the file composipy-1.4.1.tar.gz.

File metadata

  • Download URL: composipy-1.4.1.tar.gz
  • Upload date:
  • Size: 283.4 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/5.1.1 CPython/3.9.20

File hashes

Hashes for composipy-1.4.1.tar.gz
Algorithm Hash digest
SHA256 11342a9fdf1d0503598657e5b8046255306143ff93de8b48b05f84cbb6dc4674
MD5 0e2b9c8c07f988f02d2f7d508153d5bd
BLAKE2b-256 a66a54e66b80d92a79d47e9bd969e0e8da90b62b7a5927bb40d09adc47c2366e

See more details on using hashes here.

File details

Details for the file composipy-1.4.1-py3-none-any.whl.

File metadata

  • Download URL: composipy-1.4.1-py3-none-any.whl
  • Upload date:
  • Size: 285.0 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/5.1.1 CPython/3.9.20

File hashes

Hashes for composipy-1.4.1-py3-none-any.whl
Algorithm Hash digest
SHA256 2fd839495e77a378f86b5f66eb2f7c6268b45db9a770cfd718d46c00960705b4
MD5 d480156c8af9cdf7d8217641e5d0efc5
BLAKE2b-256 e8fabdc90c41a6845b647afd726d6c9b6f3fa2d3b4e7e3267b487b13c0eb886e

See more details on using hashes here.

Supported by

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