This repository has been archived by the owner on Mar 4, 2023. It is now read-only.
/
BeadRotationalSymmetry.py
76 lines (62 loc) · 2.42 KB
/
BeadRotationalSymmetry.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
from abaqusConstants import *
from .GeometricRestriction import GeometricRestriction
from ..Region.Region import Region
class BeadRotationalSymmetry(GeometricRestriction):
"""The BeadRotationalSymmetry object defines a bead rotational symmetry geometric
restriction.
The BeadRotationalSymmetry object is derived from the GeometricRestriction object.
Notes
-----
This object can be accessed by:
.. code-block:: python
import optimization
mdb.models[name].optimizationTasks[name].geometricRestrictions[name]
"""
def __init__(
self,
name: str,
angle: float,
region: Region,
axis: SymbolicConstant = AXIS_1,
csys: int = None,
):
"""This method creates a BeadRotationalSymmetry object.
Notes
-----
This function can be accessed by:
.. code-block:: python
mdb.models[name].optimizationTasks[name].BeadRotationalSymmetry
Parameters
----------
name
A String specifying the geometric restriction repository key.
angle
A Float specifying the repeating segment size, an angle in degrees.
region
A Region object specifying the region to which the geometric restriction is applied.
axis
A SymbolicConstant specifying the axis of symmetry. Possible values are AXIS_1, AXIS_2,
and AXIS_3. The default value is AXIS_1.
csys
None or a DatumCsys object specifying the local coordinate system. If *csys*=None, the
global coordinate system is used. When this member is queried, it returns an Int. The
default value is None.
Returns
-------
A BeadRotationalSymmetry object.
"""
super().__init__()
pass
def setValues(self, axis: SymbolicConstant = AXIS_1, csys: int = None):
"""This method modifies the BeadRotationalSymmetry object.
Parameters
----------
axis
A SymbolicConstant specifying the axis of symmetry. Possible values are AXIS_1, AXIS_2,
and AXIS_3. The default value is AXIS_1.
csys
None or a DatumCsys object specifying the local coordinate system. If *csys*=None, the
global coordinate system is used. When this member is queried, it returns an Int. The
default value is None.
"""
pass