-
Notifications
You must be signed in to change notification settings - Fork 27
/
SurfaceOffsetAssignment.py
89 lines (70 loc) · 3.28 KB
/
SurfaceOffsetAssignment.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
from __future__ import annotations
from typing import Sequence, Union
from typing_extensions import Literal
from abqpy.decorators import abaqus_class_doc, abaqus_method_doc
from ..Material.Material import Material
from ..Region.Region import Region
from ..UtilityAndView.abaqusConstants import abaqusConstants as C
@abaqus_class_doc
class SurfaceOffsetAssignment:
"""The SurfaceOffsetAssignment object stores the surface offset fraction assignment definition for surfaces
in ContactExp and ContactStd objects. The SurfaceOffsetAssignment object has no constructor or members.
.. note::
This object can be accessed by::
import interaction
mdb.models[name].interactions[name].surfaceOffsetAssignments
The corresponding analysis keywords are:
- SURFACE PROPERTY ASSIGNMENT
"""
@abaqus_method_doc
def changeValuesInStep(self, stepName: str, index: int, value: Union[Literal[C.SPOS, C.ORIGINAL, C.SNEG], float]):
"""This method allows modification of surface offset fraction assignments already defined on surfaces in
a given step.
Parameters
----------
stepName
A String specifying the name of the step in which the surface offset assignments are to
be modified.
index
An Int specifying the position of the surface offset fraction assignment whose value is
to be modified.
value
A tuple specifying the value of the surface offset assignments for the surface whose
index is referenced. Each tuple contains one entry:
- A Float or a SymbolicConstant specifying the surface offset fraction value to be used
for the surface. Possible values of the SymbolicConstant are ORIGINAL, SPOS, and SNEG.
"""
...
@abaqus_method_doc
def appendInStep(
self,
stepName: str,
assignments: Sequence[tuple[Union[Region, Material, Literal[C.SPOS, C.ORIGINAL, C.SNEG, C.GLOBAL]], float]],
):
"""This method allows addition of surface offset fraction assignments to new surfaces in a given step.
Parameters
----------
stepName
A String specifying the name of the step in which new surface offset fraction
assignments are to be defined.
assignments
A sequence of tuples specifying the surface offset fraction assignments. Each tuple
contains two entries:
- A region or a material object or the SymbolicConstant GLOBAL specifying the surface to
which the offset fraction is assigned.
- A Float or a SymbolicConstant specifying the surface offset fraction value to be used
for the surface. Possible values of the SymbolicConstant are ORIGINAL, SPOS, and SNEG.
.. versionchanged:: 2021
The first entry in the tuple can be a material object now.
"""
...
@abaqus_method_doc
def delete(self, indices: tuple):
"""The delete method allows you to delete existing surface offset fraction assignments.
Parameters
----------
indices
A sequence of Ints specifying the index of each surface offset fraction assignment to
delete.
"""
...