Skip to main content

This package intends to perform composite material calculations

Project description

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.

How to install

Directly From PYPI

pip install composipy

Built from source

python setup.py install

Documentation

Composipy documentation

Quick start

Create the material.

>>> from composipy import OrthotropicMaterial
>>> 
>>> E1 = 60800
>>> E2 = 58250
>>> v12 = 0.07
>>> G12 = 4550
>>> t = 0.21
>>>
>>> mat_1 = OrthotropicMaterial(E1, E2, v12, G12, t)

Define the laminate.

>>> from composipy import LaminateProperty
>>> stacking = [-45, 45, 90, 0, 0, 0, 0, 90, 45, -45]
>>> laminate1 = LaminateProperty(stacking, ply1)
>>> 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)
>>> print(panel.buckling_analysis()) # solve the eigenvalue problem.

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

Uploaded Source

Built Distribution

composipy-1.0.0-py3-none-any.whl (276.4 kB view details)

Uploaded Python 3

File details

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

File metadata

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

File hashes

Hashes for composipy-1.0.0.tar.gz
Algorithm Hash digest
SHA256 821ff8c03e1dcc5cc98e2d41cde2d07bc7ac4f833b051fa6a81977c547f36e9b
MD5 06653bcb913c7add27009325f94cf109
BLAKE2b-256 178f854e2cf4dec03d8538a437901cc8394cf868e0f98d2810658e6228fa934c

See more details on using hashes here.

File details

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

File metadata

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

File hashes

Hashes for composipy-1.0.0-py3-none-any.whl
Algorithm Hash digest
SHA256 d60466e7e4ff71041e9286fcb96315b06628c8a9ecdf2cf03798b7d7a5730dcc
MD5 fd090c40d26acf6af1d22a59c8a4f095
BLAKE2b-256 0ef006af0c6469919fcdb71796e9f3341ad0f057e8a2cd0977e7d996bd6b0d94

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