Skip to main content

This package intends to perform composite material calculations

Project description

Downloads GitHub Workflow Status PyPI DOI

Composipy

What it is

composipy is a python library to calculate composite plates using the classical laminate theory. This library is designed to be simple, userfriendly and helpfull.

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 references

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.2.2.tar.gz (280.5 kB view details)

Uploaded Source

Built Distribution

composipy-1.2.2-py3-none-any.whl (282.7 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: composipy-1.2.2.tar.gz
  • Upload date:
  • Size: 280.5 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.2 CPython/3.9.18

File hashes

Hashes for composipy-1.2.2.tar.gz
Algorithm Hash digest
SHA256 982ebbdca6efba2f7794586bf1d9d5bdf3e2c5ef04d8460c036cf7e7059bda56
MD5 b4e904d76f454c22b36a5703cdac0d6c
BLAKE2b-256 b87075463ad15ae9d1a75b921b235bf393a8d61a5d7af472c7e2ec1d840f342c

See more details on using hashes here.

File details

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

File metadata

  • Download URL: composipy-1.2.2-py3-none-any.whl
  • Upload date:
  • Size: 282.7 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.2 CPython/3.9.18

File hashes

Hashes for composipy-1.2.2-py3-none-any.whl
Algorithm Hash digest
SHA256 dd6fc17613bf5560cfbc113c7921c6d8da78552b03d23ee8c6e723e4a6469f53
MD5 1874d80a23977cbd8a8516301fc1786b
BLAKE2b-256 363dda85988068a1152b3c63bed668d16795cdb2bff9e1fd1829a43773f87a40

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