This repository has been archived by the owner on Mar 4, 2023. It is now read-only.
/
MultipointConstraint.py
113 lines (95 loc) · 3.91 KB
/
MultipointConstraint.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
from abaqusConstants import *
from .Constraint import Constraint
from ..Region.Region import Region
class MultipointConstraint(Constraint):
"""The MultipointConstraint object defines a constraint between a group of
MultipointConstraint nodes located on a region and a reference point.
The MultipointConstraint object is derived from the ConstrainedSketchConstraint object.
Attributes
----------
suppressed: Boolean
A Boolean specifying whether the constraint is suppressed or not. The default value is
OFF.
Notes
-----
This object can be accessed by:
.. code-block:: python
import interaction
mdb.models[name].constraints[name]
The corresponding analysis keywords are:
- MPC
"""
# A Boolean specifying whether the constraint is suppressed or not. The default value is
# OFF.
suppressed: Boolean = OFF
def __init__(
self,
name: str,
surface: Region,
controlPoint: Region,
mpcType: SymbolicConstant,
csys: str = None,
userType: int = 0,
userMode: SymbolicConstant = DOF_MODE_MPC,
):
"""This method creates a MultipointConstraint object.
Notes
-----
This function can be accessed by:
.. code-block:: python
mdb.models[name].MultipointConstraint
Parameters
----------
name
A String specifying the constraint repository key.
surface
A Region object specifying the surface on which the MultipointConstraint nodes are
located.
controlPoint
A Region object specifying the constraint control point.
mpcType
A SymbolicConstant specifying the MPC type of the constraint. Possible values are
BEAM_MPC, ELBOW_MPC, PIN_MPC, LINK_MPC, TIE_MPC, and USER_MPC.
csys
None or a DatumCsys object specifying the initial orientation of the local coordinate
system for the MultipointConstraint's degrees of freedom. If *localCsys*=None, the
MultipointConstraint is defined in the global coordinate system. The default value is
None.
userType
An Int specifying to differentiate between different constraint types in a user-defined
MultipointConstraint. The default value is 0.The *userType* argument applies only when
*mpcType*=USER_MPC.
userMode
A SymbolicConstant specifying the mode of the constraint when it is user-defined.
Possible values are DOF_MODE_MPC and NODE_MODE_MPC. The default value is
DOF_MODE_MPC.The *userMode* argument applies only when *mpcType*=USER_MPC.
Returns
-------
A MultipointConstraint object.
"""
super().__init__()
pass
def setValues(
self,
csys: str = None,
userType: int = 0,
userMode: SymbolicConstant = DOF_MODE_MPC,
):
"""This method modifies the MultipointConstraint object.
Parameters
----------
csys
None or a DatumCsys object specifying the initial orientation of the local coordinate
system for the MultipointConstraint's degrees of freedom. If *localCsys*=None, the
MultipointConstraint is defined in the global coordinate system. The default value is
None.
userType
An Int specifying to differentiate between different constraint types in a user-defined
MultipointConstraint. The default value is 0.The *userType* argument applies only when
*mpcType*=USER_MPC.
userMode
A SymbolicConstant specifying the mode of the constraint when it is user-defined.
Possible values are DOF_MODE_MPC and NODE_MODE_MPC. The default value is
DOF_MODE_MPC.The *userMode* argument applies only when *mpcType*=USER_MPC.
"""
pass