This repository has been archived by the owner on Mar 4, 2023. It is now read-only.
/
Equation.py
74 lines (55 loc) · 1.84 KB
/
Equation.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
from abaqusConstants import *
from .Constraint import Constraint
class Equation(Constraint):
"""The Equation object defines a linear multi-point constraint between a set of degrees of
freedom.
The Equation 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:
- EQUATION
"""
# A Boolean specifying whether the constraint is suppressed or not. The default value is
# OFF.
suppressed: Boolean = OFF
def __init__(self, name: str, terms: tuple):
"""This method creates an Equation object.
Notes
-----
This function can be accessed by:
.. code-block:: python
mdb.models[name].Equation
Parameters
----------
name
A String specifying the constraint repository key.
terms
A sequence of (Float, String, Int, Int) sequences specifying a coefficient, Set name,
degree of freedom, and coordinate system ID. The coordinate system ID is optional.
Returns
-------
An Equation object.
Raises
------
- If *terms* does not contain more than one entry:
Equation must have two or more terms.
"""
super().__init__()
pass
def setValues(self):
"""This method modifies the Equation object.
Raises
------
- If *terms* does not contain more than one entry:
Equation must have two or more terms.
"""
pass