This repository has been archived by the owner on Mar 4, 2023. It is now read-only.
/
ModelChange.py
130 lines (112 loc) · 4.78 KB
/
ModelChange.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
from abaqusConstants import *
from .Interaction import Interaction
from ..Region.Region import Region
class ModelChange(Interaction):
"""The ModelChange object defines model change interactions for element removal and
reactivation.
The ModelChange object is derived from the Interaction object.
Notes
-----
This object can be accessed by:
.. code-block:: python
import interaction
mdb.models[name].interactions[name]
The corresponding analysis keywords are:
- MODEL CHANGE
"""
def __init__(
self,
name: str,
createStepName: str,
isRestart: Boolean = OFF,
regionType: SymbolicConstant = GEOMETRY,
region: Region = Region(),
activeInStep: Boolean = OFF,
includeStrain: Boolean = OFF,
):
"""This method creates a ModelChange object.
Notes
-----
This function can be accessed by:
.. code-block:: python
mdb.models[name].ModelChange
Parameters
----------
name
A String specifying the repository key.
createStepName
A String specifying the name of the step in which the ModelChange object is created.
isRestart
A Boolean specifying whether this interaction is being used solely to indicate that
model change may be required in a subsequent restart analysis (either for elements or
contact pairs). The default value is OFF.
regionType
A SymbolicConstant specifying the region selection type. This argument is valid only
when *isRestart*=False. Possible values are GEOMETRY, SKINS, STRINGERS, and ELEMENTS.
The default value is GEOMETRY.
region
A Region object specifying the elements to be removed or reactivated. This argument is
valid only when *isRestart*=False.
activeInStep
A Boolean specifying whether elements are being removed or reactivated. This argument is
valid only when *isRestart*=False. The default value is OFF.
includeStrain
A Boolean specifying whether stress/displacement elements are reactivated with strain.
This argument is valid only when *isRestart*=False and when *activeInStep*=True. The
default value is OFF.
Returns
-------
A ModelChange object.
"""
super().__init__()
pass
def setValues(
self,
isRestart: Boolean = OFF,
regionType: SymbolicConstant = GEOMETRY,
region: Region = Region(),
activeInStep: Boolean = OFF,
includeStrain: Boolean = OFF,
):
"""This method modifies the data for an existing ModelChange object in the step where it is
created.
Parameters
----------
isRestart
A Boolean specifying whether this interaction is being used solely to indicate that
model change may be required in a subsequent restart analysis (either for elements or
contact pairs). The default value is OFF.
regionType
A SymbolicConstant specifying the region selection type. This argument is valid only
when *isRestart*=False. Possible values are GEOMETRY, SKINS, STRINGERS, and ELEMENTS.
The default value is GEOMETRY.
region
A Region object specifying the elements to be removed or reactivated. This argument is
valid only when *isRestart*=False.
activeInStep
A Boolean specifying whether elements are being removed or reactivated. This argument is
valid only when *isRestart*=False. The default value is OFF.
includeStrain
A Boolean specifying whether stress/displacement elements are reactivated with strain.
This argument is valid only when *isRestart*=False and when *activeInStep*=True. The
default value is OFF.
"""
pass
def setValuesInStep(
self, stepName: str, activeInStep: Boolean = OFF, includeStrain: Boolean = OFF
):
"""This method modifies the propagating data of an existing ModelChange object in the
specified step.
Parameters
----------
stepName
A String specifying the name of the step in which the interaction is modified.
activeInStep
A Boolean specifying whether elements are being removed or reactivated. This argument is
valid only when *isRestart*=False. The default value is OFF.
includeStrain
A Boolean specifying whether stress/displacement elements are reactivated with strain.
This argument is valid only when *isRestart*=False and when *activeInStep*=True. The
default value is OFF.
"""
pass