This repository has been archived by the owner on Mar 4, 2023. It is now read-only.
/
CombinedTermDesignResponse.py
179 lines (163 loc) · 6.02 KB
/
CombinedTermDesignResponse.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
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
from abaqusConstants import *
from .DesignResponse import DesignResponse
class CombinedTermDesignResponse(DesignResponse):
"""The CombinedTermDesignResponse object defines a combined-term design response.
The CombinedTermDesignResponse object is derived from the DesignResponse object.
Notes
-----
This object can be accessed by:
.. code-block:: python
import optimization
mdb.models[name].optimizationTasks[name].designResponses[name]
"""
def __init__(
self,
name: str,
terms: tuple,
filterMaxRadius: str = None,
filterExponent: float = 1,
filterRadiusReduction: float = 0,
highCutOff: str = None,
lowCutOff: float = 0,
method: SymbolicConstant = ADD,
weights: tuple = (),
):
"""This method creates a CombinedTermDesignResponse object.
Notes
-----
This function can be accessed by:
.. code-block:: python
mdb.models[name].optimizationTasks[name].CombinedTermDesignResponse
Parameters
----------
name
A String specifying the design response repository key.
terms
A sequence of Strings specifying the names of the design responses to combine.
filterMaxRadius
None or a sequence of Floats specifying the maximum radius of influence used when
*method* is FILTER. The default value is None.
filterExponent
A Float specifying the exponent used when *method* is FILTER. The default value is 1.0.
filterRadiusReduction
A Float specifying the reduction of the radius depending on surface bending, used when
*method* is FILTER. The default value is 0.2.
highCutOff
None or a sequence of Floats specifying the upper bound of the vector value used when
*method* is CUT_OFF. All values greater than the *highCutOff* are set to the
*highCutOff* value. The default value is None.
lowCutOff
A Float specifying the lower bound of the vector value used when *method* is CUT_OFF.
All values less than the *lowCutOff* are treated as 0. The default value is 0.0.
method
A SymbolicConstant specifying the method used to combine selected design responses.
Possible values are:
- ABSOLUTE_DIFFERENCE
- ABSOLUTE_VALUE
- ADD
- COSINE
- CUT_OFF
- DELTA_OVER_1_ITERATION
- DELTA_OVER_2_ITERATIONS
- DELTA_OVER_3_ITERATIONS
- DELTA_OVER_4_ITERATIONS
- DELTA_OVER_5_ITERATIONS
- DELTA_OVER_6_ITERATIONS
- DIVIDE
- EXPONENTIAL
- FILTER
- INTEGER
- LOG
- MAXIMUM
- MINIMUM
- MULTIPLY
- NATURAL_LOG
- NEAREST_INTEGER
- NORM
- NORM_FIRST
- NTH_POWER
- NTH_ROOT
- SIGN
- SINE
- SQUARE_ROOT
- SUBTRACT
- TANGENT
- WEIGHTED_ADD
The default value is ADD.
weights
A sequence of Floats specifying the weights to apply to the list of design responses
used when *method* is WEIGHTED_ADD. The default value is an empty sequence.
Returns
-------
A CombinedTermDesignResponse object.
"""
super().__init__()
pass
def setValues(
self,
filterMaxRadius: str = None,
filterExponent: float = 1,
filterRadiusReduction: float = 0,
highCutOff: str = None,
lowCutOff: float = 0,
method: SymbolicConstant = ADD,
weights: tuple = (),
):
"""This method modifies the CombinedTermDesignResponse object.
Parameters
----------
filterMaxRadius
None or a sequence of Floats specifying the maximum radius of influence used when
*method* is FILTER. The default value is None.
filterExponent
A Float specifying the exponent used when *method* is FILTER. The default value is 1.0.
filterRadiusReduction
A Float specifying the reduction of the radius depending on surface bending, used when
*method* is FILTER. The default value is 0.2.
highCutOff
None or a sequence of Floats specifying the upper bound of the vector value used when
*method* is CUT_OFF. All values greater than the *highCutOff* are set to the
*highCutOff* value. The default value is None.
lowCutOff
A Float specifying the lower bound of the vector value used when *method* is CUT_OFF.
All values less than the *lowCutOff* are treated as 0. The default value is 0.0.
method
A SymbolicConstant specifying the method used to combine selected design responses.
Possible values are:
- ABSOLUTE_DIFFERENCE
- ABSOLUTE_VALUE
- ADD
- COSINE
- CUT_OFF
- DELTA_OVER_1_ITERATION
- DELTA_OVER_2_ITERATIONS
- DELTA_OVER_3_ITERATIONS
- DELTA_OVER_4_ITERATIONS
- DELTA_OVER_5_ITERATIONS
- DELTA_OVER_6_ITERATIONS
- DIVIDE
- EXPONENTIAL
- FILTER
- INTEGER
- LOG
- MAXIMUM
- MINIMUM
- MULTIPLY
- NATURAL_LOG
- NEAREST_INTEGER
- NORM
- NORM_FIRST
- NTH_POWER
- NTH_ROOT
- SIGN
- SINE
- SQUARE_ROOT
- SUBTRACT
- TANGENT
- WEIGHTED_ADD
The default value is ADD.
weights
A sequence of Floats specifying the weights to apply to the list of design responses
used when *method* is WEIGHTED_ADD. The default value is an empty sequence.
"""
pass