This repository has been archived by the owner on Mar 4, 2023. It is now read-only.
/
DiscreteFastener.py
144 lines (125 loc) · 5.84 KB
/
DiscreteFastener.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
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
import typing
from abaqusConstants import *
from .Fastener import Fastener
from ..Region.Region import Region
class DiscreteFastener(Fastener):
"""The DiscreteFastener object defines a discrete fastener.
The DiscreteFastener object is derived from the Fastener object.
Attributes
----------
suppressed: Boolean
A Boolean specifying whether the fastener is suppressed or not. The default value is
OFF.
Notes
-----
This object can be accessed by:
.. code-block:: python
import part
mdb.models[name].parts[name].engineeringFeatures.fasteners[name]
import assembly
mdb.models[name].rootAssembly.engineeringFeatures.fasteners[name]
The corresponding analysis keywords are:
- COUPLING
"""
# A Boolean specifying whether the fastener is suppressed or not. The default value is
# OFF.
suppressed: Boolean = OFF
def __init__(
self,
name: str,
region: Region,
influenceRadius: typing.Union[SymbolicConstant, float],
ur1: Boolean = ON,
ur2: Boolean = ON,
ur3: Boolean = ON,
coupling: SymbolicConstant = CONTINUUM,
weightingMethod: SymbolicConstant = UNIFORM,
localCsys: int = None,
):
"""This method creates a DiscreteFastener object. Although the constructor is available
both for parts and for the assembly, DiscreteFastener objects are currently supported
only under the assembly.
Notes
-----
This function can be accessed by:
.. code-block:: python
mdb.models[name].parts[name].engineeringFeatures.DiscreteFastener
mdb.models[name].rootAssembly.engineeringFeatures.DiscreteFastener
Parameters
----------
name
A String specifying the repository key.
region
A Region object specifying the region to which the fastener is applied.
influenceRadius
The SymbolicConstant WHOLE_SURFACE or a Float specifying the coupling influence radius.
ur1
A Boolean specifying whether to constrain rotational displacement component about the
1-direction. The default value is ON.
ur2
A Boolean specifying whether to constrain rotational displacement component about the
2-direction. The default value is ON.
ur3
A Boolean specifying whether to constrain rotational displacement component about the
3-direction. The default value is ON.
coupling
A SymbolicConstant specifying the coupling method used to couple the displacement and
rotation of each attachment point to the average motion of the surface nodes within the
radius of influence from the fastening point. Possible values are CONTINUUM and
STRUCTURAL. The default value is CONTINUUM.
weightingMethod
A SymbolicConstant specifying the weighting scheme to be used to weight the contribution
of the displacements of the surface nodes within the radius of influence to the motion
of the fastening point. UNIFORM, LINEAR, QUADRATIC, and CUBIC indicate uniform, linear
decreasing, quadratic polynomial decreasing, and cubic polynomial monotonic decreasing
weight distributions. Possible values are UNIFORM, LINEAR, QUADRATIC, and CUBIC. The
default value is UNIFORM.
localCsys
None or a DatumCsys object specifying the local coordinate system of fastener couplings.
If *localCsys*=None, couplings are defined in the global coordinate system. When this
member is queried, it returns an Int. The default value is None.
Returns
-------
A DiscreteFastener object.
"""
super().__init__()
pass
def setValues(
self,
ur1: Boolean = ON,
ur2: Boolean = ON,
ur3: Boolean = ON,
coupling: SymbolicConstant = CONTINUUM,
weightingMethod: SymbolicConstant = UNIFORM,
localCsys: int = None,
):
"""This method modifies the DiscreteFastener object.
Parameters
----------
ur1
A Boolean specifying whether to constrain rotational displacement component about the
1-direction. The default value is ON.
ur2
A Boolean specifying whether to constrain rotational displacement component about the
2-direction. The default value is ON.
ur3
A Boolean specifying whether to constrain rotational displacement component about the
3-direction. The default value is ON.
coupling
A SymbolicConstant specifying the coupling method used to couple the displacement and
rotation of each attachment point to the average motion of the surface nodes within the
radius of influence from the fastening point. Possible values are CONTINUUM and
STRUCTURAL. The default value is CONTINUUM.
weightingMethod
A SymbolicConstant specifying the weighting scheme to be used to weight the contribution
of the displacements of the surface nodes within the radius of influence to the motion
of the fastening point. UNIFORM, LINEAR, QUADRATIC, and CUBIC indicate uniform, linear
decreasing, quadratic polynomial decreasing, and cubic polynomial monotonic decreasing
weight distributions. Possible values are UNIFORM, LINEAR, QUADRATIC, and CUBIC. The
default value is UNIFORM.
localCsys
None or a DatumCsys object specifying the local coordinate system of fastener couplings.
If *localCsys*=None, couplings are defined in the global coordinate system. When this
member is queried, it returns an Int. The default value is None.
"""
pass