This repository has been archived by the owner on Mar 4, 2023. It is now read-only.
/
AdaptiveMeshControl.py
177 lines (161 loc) · 7.76 KB
/
AdaptiveMeshControl.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
from abaqusConstants import *
class AdaptiveMeshControl:
"""The AdaptiveMeshControl object is used to control various aspects of Arbitrary
Lagrangian Eularian (ALE) style adaptive smoothing and advection algorithms applied to
an ALE adaptive mesh domain.
Notes
-----
This object can be accessed by:
.. code-block:: python
import step
mdb.models[name].adaptiveMeshControls[name]
"""
def __init__(
self,
name: str,
remapping: SymbolicConstant = SECOND_ORDER_ADVECTION,
smoothingAlgorithm: SymbolicConstant = GEOMETRY_ENHANCED,
smoothingPriority: SymbolicConstant = UNIFORM,
initialFeatureAngle: float = 30,
transitionFeatureAngle: float = 30,
momentumAdvection: SymbolicConstant = ELEMENT_CENTER_PROJECTION,
meshingPredictor: SymbolicConstant = CURRENT,
curvatureRefinement: float = 1,
volumetricSmoothingWeight: float = 1,
laplacianSmoothingWeight: float = 0,
equipotentialSmoothingWeight: float = 0,
meshConstraintAngle: float = 60,
originalConfigurationProjectionWeight: float = 1,
standardVolumetricSmoothingWeight: float = 0,
):
"""This method creates an AdaptiveMeshControl object.
Notes
-----
This function can be accessed by:
.. code-block:: python
mdb.models[name].AdaptiveMeshControl
Parameters
----------
name
A String specifying the name of the object.
remapping
A SymbolicConstant specifying the remapping algorithm. Possible values are
FIRST_ORDER_ADVECTION and SECOND_ORDER_ADVECTION. The default value is
SECOND_ORDER_ADVECTION.
smoothingAlgorithm
A SymbolicConstant specifying the type of smoothing algorithm to use. Possible values
are STANDARD and GEOMETRY_ENHANCED. The default value is GEOMETRY_ENHANCED.
smoothingPriority
A SymbolicConstant specifying the type of smoothing to perform. Possible values are
UNIFORM and GRADED. The default value is UNIFORM.
initialFeatureAngle
A Float specifying the initial geometric feature angle, θI, in degrees. Possible values
are 0° ≤θI≤ 180°. The default value is 30.0.
transitionFeatureAngle
A Float specifying the transitional feature angle, θT, in degrees. Possible values are
0° ≤θT≤ 180°. The default value is 30.0.
momentumAdvection
A SymbolicConstant specifying the type of momentum advection algorithm. Possible values
are ELEMENT_CENTER_PROJECTION and HALF_INDEX_SHIFT. The default value is
ELEMENT_CENTER_PROJECTION.
meshingPredictor
A SymbolicConstant specifying the nodal starting location to use for remeshing. Possible
values are CURRENT and PREVIOUS. The default value is CURRENT.
curvatureRefinement
A Float specifying the solution dependence weight, αC. Possible values are 0.0 ≤αC≤ 1.0.
The default value is 1.0.
volumetricSmoothingWeight
A Float specifying the weight used by Abaqus/Explicit for the volumetric smoothing
method. The default value is 1.0.
laplacianSmoothingWeight
A Float specifying the weight for the Laplacian smoothing method. The default value is
0.0.
equipotentialSmoothingWeight
A Float specifying the weight for the equipotential smoothing method. The default value
is 0.0.
meshConstraintAngle
A Float specifying the initial geometric feature angle, θC. Possible values are 0° ≤θC≤
180°. The default value is 60.0.
originalConfigurationProjectionWeight
A Float specifying the weight for the original configuration projection method. The
default value is 1.0.
standardVolumetricSmoothingWeight
A Float specifying the weight used by Abaqus/Standard for the volumetric smoothing
method. The default value is 0.0.
Returns
-------
An AdaptiveMeshControl object.
Raises
------
RangeError.
"""
pass
def setValues(
self,
remapping: SymbolicConstant = SECOND_ORDER_ADVECTION,
smoothingAlgorithm: SymbolicConstant = GEOMETRY_ENHANCED,
smoothingPriority: SymbolicConstant = UNIFORM,
initialFeatureAngle: float = 30,
transitionFeatureAngle: float = 30,
momentumAdvection: SymbolicConstant = ELEMENT_CENTER_PROJECTION,
meshingPredictor: SymbolicConstant = CURRENT,
curvatureRefinement: float = 1,
volumetricSmoothingWeight: float = 1,
laplacianSmoothingWeight: float = 0,
equipotentialSmoothingWeight: float = 0,
meshConstraintAngle: float = 60,
originalConfigurationProjectionWeight: float = 1,
standardVolumetricSmoothingWeight: float = 0,
):
"""This method modifies the AdaptiveMeshControl object.
Parameters
----------
remapping
A SymbolicConstant specifying the remapping algorithm. Possible values are
FIRST_ORDER_ADVECTION and SECOND_ORDER_ADVECTION. The default value is
SECOND_ORDER_ADVECTION.
smoothingAlgorithm
A SymbolicConstant specifying the type of smoothing algorithm to use. Possible values
are STANDARD and GEOMETRY_ENHANCED. The default value is GEOMETRY_ENHANCED.
smoothingPriority
A SymbolicConstant specifying the type of smoothing to perform. Possible values are
UNIFORM and GRADED. The default value is UNIFORM.
initialFeatureAngle
A Float specifying the initial geometric feature angle, θI, in degrees. Possible values
are 0° ≤θI≤ 180°. The default value is 30.0.
transitionFeatureAngle
A Float specifying the transitional feature angle, θT, in degrees. Possible values are
0° ≤θT≤ 180°. The default value is 30.0.
momentumAdvection
A SymbolicConstant specifying the type of momentum advection algorithm. Possible values
are ELEMENT_CENTER_PROJECTION and HALF_INDEX_SHIFT. The default value is
ELEMENT_CENTER_PROJECTION.
meshingPredictor
A SymbolicConstant specifying the nodal starting location to use for remeshing. Possible
values are CURRENT and PREVIOUS. The default value is CURRENT.
curvatureRefinement
A Float specifying the solution dependence weight, αC. Possible values are 0.0 ≤αC≤ 1.0.
The default value is 1.0.
volumetricSmoothingWeight
A Float specifying the weight used by Abaqus/Explicit for the volumetric smoothing
method. The default value is 1.0.
laplacianSmoothingWeight
A Float specifying the weight for the Laplacian smoothing method. The default value is
0.0.
equipotentialSmoothingWeight
A Float specifying the weight for the equipotential smoothing method. The default value
is 0.0.
meshConstraintAngle
A Float specifying the initial geometric feature angle, θC. Possible values are 0° ≤θC≤
180°. The default value is 60.0.
originalConfigurationProjectionWeight
A Float specifying the weight for the original configuration projection method. The
default value is 1.0.
standardVolumetricSmoothingWeight
A Float specifying the weight used by Abaqus/Standard for the volumetric smoothing
method. The default value is 0.0.
Raises
------
RangeError
"""
pass