This repository has been archived by the owner on Mar 4, 2023. It is now read-only.
/
BoxProfile.py
106 lines (85 loc) · 3.08 KB
/
BoxProfile.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
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
from abaqusConstants import *
from .Profile import Profile
class BoxProfile(Profile):
"""The BoxProfile object defines the properties of a box profile.
The BoxProfile object is derived from the Profile object.
Notes
-----
This object can be accessed by:
.. code-block:: python
import section
mdb.models[name].profiles[name]
import odbSection
session.odbs[name].profiles[name]
The corresponding analysis keywords are:
- BEAM SECTION
"""
def __init__(
self,
name: str,
a: float,
b: float,
uniformThickness: Boolean,
t1: float,
t2: float = 0,
t3: float = 0,
t4: float = 0,
):
"""This method creates a BoxProfile object.
Notes
-----
This function can be accessed by:
.. code-block:: python
mdb.models[name].BoxProfile
session.odbs[name].BoxProfile
Parameters
----------
name
A String specifying the repository key.
a
A Float specifying the *a* dimension of the box profile. For more information, see [Beam
cross-section
library](https://help.3ds.com/2021/English/DSSIMULIA_Established/SIMACAEELMRefMap/simaelm-c-beamcrosssectlib.htm?ContextScope=all).
b
A Float specifying the *b* dimension of the box profile.
uniformThickness
A Boolean specifying whether the thickness is uniform.
t1
A Float specifying the uniform wall thickness if *uniformThickness*=ON, and the wall
thickness of the first segment if *uniformThickness*=OFF.
t2
A Float specifying the wall thickness of the second segment. *t2* is required only when
*uniformThickness*=OFF. The default value is 0.0.
t3
A Float specifying the wall thickness of the third segment. *t3* is required only when
*uniformThickness*=OFF. The default value is 0.0.
t4
A Float specifying the wall thickness of the fourth segment. *t4* is required only when
*uniformThickness*=OFF. The default value is 0.0.
Returns
-------
A BoxProfile object.
Raises
------
RangeError
"""
super().__init__()
pass
def setValues(self, t2: float = 0, t3: float = 0, t4: float = 0):
"""This method modifies the BoxProfile object.
Parameters
----------
t2
A Float specifying the wall thickness of the second segment. *t2* is required only when
*uniformThickness*=OFF. The default value is 0.0.
t3
A Float specifying the wall thickness of the third segment. *t3* is required only when
*uniformThickness*=OFF. The default value is 0.0.
t4
A Float specifying the wall thickness of the fourth segment. *t4* is required only when
*uniformThickness*=OFF. The default value is 0.0.
Raises
------
RangeError
"""
pass