This repository has been archived by the owner on Mar 4, 2023. It is now read-only.
/
Hyperfoam.py
108 lines (84 loc) · 3.32 KB
/
Hyperfoam.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
from abaqusConstants import *
from ....TestData.BiaxialTestData import BiaxialTestData
from ....TestData.PlanarTestData import PlanarTestData
from ....TestData.SimpleShearTestData import SimpleShearTestData
from ....TestData.UniaxialTestData import UniaxialTestData
from ....TestData.VolumetricTestData import VolumetricTestData
class Hyperfoam:
"""The Hyperfoam object specifies elastic properties for a hyperelastic foam.
Notes
-----
This object can be accessed by:
.. code-block:: python
import material
mdb.models[name].materials[name].hyperfoam
import odbMaterial
session.odbs[name].materials[name].hyperfoam
The table data for this object are:
The items in the table data specify the following for values of nn:
- μi and αi for i from 1 to n.
- νi.
- Temperature, if the data depend on temperature. Temperature dependence is not allowed for 4 ≤n≤ 6 in an
Abaqus/Explicit analysis.
The corresponding analysis keywords are:
- HYPERFOAM
"""
# A BiaxialTestData object.
biaxialTestData: BiaxialTestData = BiaxialTestData(((),))
# A VolumetricTestData object.
volumetricTestData: VolumetricTestData = VolumetricTestData(((),))
# A PlanarTestData object.
planarTestData: PlanarTestData = PlanarTestData(((),))
# A SimpleShearTestData object.
simpleShearTestData: SimpleShearTestData = SimpleShearTestData(((),))
# A UniaxialTestData object.
uniaxialTestData: UniaxialTestData = UniaxialTestData(((),))
def __init__(
self,
testData: Boolean = OFF,
poisson: float = None,
n: int = 1,
temperatureDependency: Boolean = OFF,
moduli: SymbolicConstant = LONG_TERM,
table: tuple = (),
):
"""This method creates a Hyperfoam object.
Notes
-----
This function can be accessed by:
.. code-block:: python
mdb.models[name].materials[name].Hyperfoam
session.odbs[name].materials[name].Hyperfoam
Parameters
----------
testData
A Boolean specifying whether test data are supplied. The default value is OFF.
poisson
None or a Float specifying the effective Poisson's ratio, νν, of the material. This
argument is valid only when *testData*=ON. The default value is None.
n
An Int specifying the order of the strain energy potential. Possible values are 1 ≤n≤≤n≤
6. The default value is 1.
temperatureDependency
A Boolean specifying whether the data depend on temperature. The default value is OFF.
moduli
A SymbolicConstant specifying the time-dependence of the material constants. Possible
values are INSTANTANEOUS and LONG_TERM. The default value is LONG_TERM.
table
A sequence of sequences of Floats specifying the items described below. This argument is
valid only when *testData*=OFF. The default value is an empty sequence.
Returns
-------
A Hyperfoam object.
Raises
------
RangeError
"""
pass
def setValues(self):
"""This method modifies the Hyperfoam object.
Raises
------
RangeError
"""
pass