-
Notifications
You must be signed in to change notification settings - Fork 199
/
Copy pathuseful_materials.py
70 lines (58 loc) · 3.47 KB
/
useful_materials.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
# Finite Element Modeling with Abaqus and Python for Thermal and
# Stress Analysis
# (C) 2017, Petr Krysl
#
"""
Make some useful material models for use in the classroom.
"""
from abaqus import *
from abaqusConstants import *
import material
# Create a material.
TheModel = getInput('Enter the model name:')
TheMaterial = 'Steel (mm)'
Description = 'Mechanical and thermal properties of steel, units: SI (mm)'
mdb.models[TheModel].Material(name=TheMaterial, description=Description)
mdb.models[TheModel].materials[TheMaterial].Elastic(table=((209000, 0.3), ))
mdb.models[TheModel].materials[TheMaterial].Density(table=((7.850e-9, ), ))
mdb.models[TheModel].materials[TheMaterial].Expansion(table=((13.0e-6, ), ))
mdb.models[TheModel].materials[TheMaterial].Conductivity(table=((45.0e-3, ), ))
TheMaterial = 'Steel (m)'
Description = 'Mechanical and thermal properties of steel, units: SI (m)'
mdb.models[TheModel].Material(name=TheMaterial, description=Description)
mdb.models[TheModel].materials[TheMaterial].Elastic(table=((209000e6, 0.3), ))
mdb.models[TheModel].materials[TheMaterial].Density(table=((7.850e3, ), ))
mdb.models[TheModel].materials[TheMaterial].Expansion(table=((13.0e-6, ), ))
mdb.models[TheModel].materials[TheMaterial].Conductivity(table=((45.0, ), ))
mdb.models[TheModel].materials[TheMaterial].SpecificHeat(table=((1200., ), ))
TheMaterial = 'Aluminum 6061-T6 (mm)'
Description = 'Mechanical and thermal properties of aluminum, units: SI (mm)'
mdb.models[TheModel].Material(name=TheMaterial, description=Description)
mdb.models[TheModel].materials[TheMaterial].Elastic(table=((70000, 0.35), ))
mdb.models[TheModel].materials[TheMaterial].Density(table=((2.700e-9, ), ))
mdb.models[TheModel].materials[TheMaterial].Expansion(table=((23.4e-6, ), ))
mdb.models[TheModel].materials[TheMaterial].Conductivity(table=((180.0e-3, ), ))
TheMaterial = 'Aluminum 6061-T6 (m)'
Description = 'Mechanical and thermal properties of aluminum, units: SI (m)'
mdb.models[TheModel].Material(name=TheMaterial, description=Description)
mdb.models[TheModel].materials[TheMaterial].Elastic(table=((70000e6, 0.35), ))
mdb.models[TheModel].materials[TheMaterial].Density(table=((2.700e3, ), ))
mdb.models[TheModel].materials[TheMaterial].Expansion(table=((23.4e-6, ), ))
mdb.models[TheModel].materials[TheMaterial].Conductivity(table=((180.0, ), ))
mdb.models[TheModel].materials[TheMaterial].SpecificHeat(table=((900., ), ))
TheMaterial = 'Polyurethane (m)'
Description = 'Thermal properties of dense polyurethane foam, units: SI (meter)'
mdb.models[TheModel].Material(name=TheMaterial, description=Description)
mdb.models[TheModel].materials[TheMaterial].Conductivity(table=((0.07, ), ))
TheMaterial = 'Concrete (m)'
Description = 'Thermal properties of concrete, units: SI (meter)'
mdb.models[TheModel].Material(name=TheMaterial, description=Description)
mdb.models[TheModel].materials[TheMaterial].Conductivity(table=((1.8, ), ))
mdb.models[TheModel].materials[TheMaterial].SpecificHeat(table=((880.0, ), ))
mdb.models[TheModel].materials[TheMaterial].Density(table=((2350.0, ), ))
TheMaterial = 'Orthotropic uniaxial FRC (m)'
Description = 'Orthotropic uniaxial FRC from Zenkour (2007), units: SI (mm)'
mdb.models[TheModel].Material(name=TheMaterial, description=Description)
mdb.models[TheModel].materials[TheMaterial].Elastic(\
table=((172350.0, 6894.0, 6894.0, 0.25, 0.25, 0.25, 3447.0, 3447.0, 1378.0), ), \
type=ENGINEERING_CONSTANTS)