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
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, mat_1)
>>> 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
Release history Release notifications | RSS feed
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.1.tar.gz
(274.1 kB
view details)
Built Distribution
composipy-1.0.1-py3-none-any.whl
(277.0 kB
view details)
File details
Details for the file composipy-1.0.1.tar.gz
.
File metadata
- Download URL: composipy-1.0.1.tar.gz
- Upload date:
- Size: 274.1 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.2 CPython/3.9.12
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | d6f668735dec7c8e3127c153e4b21d8e16663551700c111721d0dc18d0aaa9aa |
|
MD5 | 48bbc9e264dee2ac2cc4d6c8a7340d9d |
|
BLAKE2b-256 | 6eac8171582cb7ed070281b6a25313e49465c0bf2c9952d4d4aa43f19328408d |
File details
Details for the file composipy-1.0.1-py3-none-any.whl
.
File metadata
- Download URL: composipy-1.0.1-py3-none-any.whl
- Upload date:
- Size: 277.0 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.2 CPython/3.9.12
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 1885e568eff4301cb9cd6dea69a01cc16c1bd2369e1564200aadc12f302d8b35 |
|
MD5 | 7d8d846239947a543852f8182fac0b0f |
|
BLAKE2b-256 | 538c9c40d1a2cc292dd4854c576a5b739623c25878e62075a168728a2e481fbd |