This repository has been archived by the owner on Mar 4, 2023. It is now read-only.
/
PlyStackPlot.py
81 lines (59 loc) · 1.61 KB
/
PlyStackPlot.py
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
from ..Odb.Odb import Odb
from ..Part.Part import Part
from ..Region.Region import Region
class PlyStackPlot:
"""The PlyStackPlot object is used to plot the stacking of plies in a composite layup or in
a composite shell section.
Notes
-----
This object can be accessed by:
.. code-block:: python
import section
import visualization
"""
def MdbPlyStackPlot(part: Part, region: Region):
"""This method creates a PlyStackPlot object from a region of a part that contains a
composite shell layup.
Notes
-----
This function can be accessed by:
.. code-block:: python
section.MdbPlyStackPlot
Parameters
----------
part
A Part object.
region
A Region object which contains a composite shell layup.
Returns
-------
A PlyStackPlot object.
Exceptions
----------
None.
"""
return PlyStackPlot()
def OdbPlyStackPlot(odb: Odb, sectionName: str, offset: float = 0):
"""This method creates a PlyStackPlot object from a composite shell section of an Odb
object.
Notes
-----
This function can be accessed by:
.. code-block:: python
visualization.OdbPlyStackPlot
Parameters
----------
odb
An Odb object.
sectionName
A String specifying the section name that contains a composite shell section.
offset
A Float specifying the shell offset. The default value is 0.0.
Returns
-------
A PlyStackPlot object.
Exceptions
----------
None.
"""
return PlyStackPlot()