Skip to content

Commit

Permalink
DOC: updates in documentation
Browse files Browse the repository at this point in the history
  • Loading branch information
rafaelpsilva07 committed Oct 26, 2024
1 parent 19358cd commit fb038b3
Show file tree
Hide file tree
Showing 5 changed files with 40 additions and 4 deletions.
1 change: 1 addition & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -67,6 +67,7 @@ See [OrthotropicMaterial](https://rafaelpsilva07.github.io/composipy/reference/c

```python
from composipy import LaminateProperty
#[BOTTOM ------------------------ TOP]
stacking = [-45, 45, 90, 0, 0, 0, 0, 90, 45, -45]
laminate1 = LaminateProperty(stacking, mat_1)
```
Expand Down
13 changes: 10 additions & 3 deletions composipy/core/property.py
Original file line number Diff line number Diff line change
Expand Up @@ -13,10 +13,10 @@ class Property(ComposipyValidator):

class LaminateProperty(Property):
'''
This class creates laminate object. It needs Material objects (to define plies) and the angle information.
This class creates a LaminateProperty object. It requires Material objects (to define plies) and angle information.
Some formulation characteristics are:
Laminate formulations ares used (see References)
Main reference is the chapter 4 of reference 2.
- Laminate formulations are used (see References).
- The main reference is Chapter 4 of Reference 2.
Parameters
----------
Expand Down Expand Up @@ -49,6 +49,13 @@ class LaminateProperty(Property):
>>> laminate_2.ABD # retunrs an array containing bending stiffness matrix [D] of the laminate
>>> laminate_2.xiA # lamination parameters of extension
>>> laminate_2.xiA # lamination parameters of bending
Note
-----
The first element of the stacking list corresponds to the BOTTOM OF THE LAYUP, and the last element corresponds to the
TOP OF THE LAYUP. This is important for non-symmetric laminates.
Refer to https://github.com/rafaelpsilva07/composipy/issues/28.
'''

def __init__(self, stacking, plies):
Expand Down
10 changes: 10 additions & 0 deletions composipy/core/strength.py
Original file line number Diff line number Diff line change
Expand Up @@ -184,6 +184,11 @@ def calculate_strain(self):
-------
strains : pd.Dataframe
ply by ply strains in plate direction and material direction
Note
----
The sequence of the DataFrame starts from the TOP OF THE LAYUP to the BOTTOM OF THE LAYUP, which is the reverse of the definition order.
When defining the laminate, the first element of the list corresponds to the bottom-most layer. This is especially important for non-symmetric laminates.
'''
epsilonk = self._epsilonk()
epsilonk_123 = self._epsilonk_123()
Expand Down Expand Up @@ -241,6 +246,11 @@ def calculate_stress(self):
-------
stress : pd.Dataframe
ply by ply stress in plate direction and material direction
Note
----
The sequence of the DataFrame starts from the TOP OF THE LAYUP to the BOTTOM OF THE LAYUP, which is the reverse of the definition order.
When defining the laminate, the first element of the list corresponds to the bottom-most layer. This is especially important for non-symmetric laminates.
'''

stressk = self._stressk()
Expand Down
2 changes: 1 addition & 1 deletion composipy/version.py
Original file line number Diff line number Diff line change
@@ -1 +1 @@
__version__ = '1.5.0'
__version__ = '1.5.1'
18 changes: 18 additions & 0 deletions doc/notebooks/Stress_strain_of_laminate.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -229,6 +229,15 @@
"df_strain.head(6) #display the first 6"
]
},
{
"cell_type": "markdown",
"metadata": {},
"source": [
"#### Note\n",
"The sequence of the DataFrame starts from the TOP OF THE LAYUP to the BOTTOM OF THE LAYUP, which is the reverse of the definition order.\n",
"When defining the laminate, the first element of the list corresponds to the bottom-most layer. This is especially important for non-symmetric laminates."
]
},
{
"cell_type": "code",
"execution_count": 27,
Expand Down Expand Up @@ -404,6 +413,15 @@
"df_stress.head(6) #display the first 6"
]
},
{
"cell_type": "markdown",
"metadata": {},
"source": [
"#### Note\n",
"The sequence of the DataFrame starts from the TOP OF THE LAYUP to the BOTTOM OF THE LAYUP, which is the reverse of the definition order.\n",
"When defining the laminate, the first element of the list corresponds to the bottom-most layer. This is especially important for non-symmetric laminates."
]
},
{
"cell_type": "code",
"execution_count": 30,
Expand Down

0 comments on commit fb038b3

Please sign in to comment.