PythonScriptsForAbaqus TableOfContents public

Telechargé par mrcazafoniazakaria
PYTHON SCRIPTS FOR ABAQUS
LEARN BY EXAMPLE
Gautam Puri
This document is the Table of Contents for the book.
A preview version of the book is available as a separate download
from the book website.
Book website: www.abaquspython.com
Contents
1. A Taste of Scripting 1
1.1Introduction 1
1.2Using a script to define materials 1
1.3To script or not to script.. 8
1.4Running a complete analysis through a script 8
1.5Conclusion 32
2. Running a Script 33
2.1Introduction 33
2.2How Python fits in 33
2.3Running a script within Abaqus/CAE 34
2.3.1Running a script in GUI to execute a single or multiple tasks 35
2.3.2Running a script in GUI to execute an entire simulation 35
2.4Running a script from the command line 35
2.4.1Run the script from the command line without the GUI 37
2.4.2Run the script from the command line with the GUI 38
2.5Running a script from the command line interface (CLI) 39
2.6Conclusion 40
3. Python 101 41
3.1Introduction 41
3.2Statements 41
3.3Variables and assignment statements 41
3.4Lists 44
3.5Dictionaries 46
3.6Tuples 49
3.7Classes, Objects and Instances 51
3.8What’s next? 59
ii Contents
4. The Basics of Scripting – Cantilever Beam Example 60
4.1Introduction 60
4.2A basic script 60
4.3Breaking down the script 64
4.3.1Initialization (import required modules) 65
4.3.2Create the model 67
4.3.3Create the part 68
4.3.4Define the materials 71
4.3.5Create solid sections and make section assignments 72
4.3.6Create an assembly 74
4.3.7Create steps 75
4.3.8Create and define field output requests 76
4.3.9Create and define history output requests 77
4.3.10Apply loads 78
4.3.11Apply constraints/boundary conditions 81
4.3.12Mesh 83
4.3.13Create and run the job 88
4.3.14Post processing 89
4.4What’s Next? 90
5. Python 102 92
5.1Introduction 92
5.1.1If… elif … else statements 92
5.1.2For loops 94
5.1.3range() function 95
5.1.4While-loops 97
5.1.5break and continue statements 97
5.2What’s Next? 99
6. Replay files, Macros and IDEs 100
6.1Introduction 100
6.2Replay Files 100
6.3Example - Compare replay with a well written script 101
6.4Macros 106
Contents iii
6.5IDEs and Text Editors 109
6.5.1IDLE 109
6.5.2Notepad ++ 109
6.5.3Abaqus PDE 110
6.5.4Other options 113
6.6What’s Next? 114
7. Static Analysis of a Loaded Truss 117
7.1Introduction 117
7.2Procedure in GUI 118
7.3Python Script 124
7.4Examining the Script 129
7.4.1Initialization (import required modules) 129
7.4.2Create the model 130
7.4.3Create the part 130
7.4.4Define the materials 131
7.4.5Create sections and make section assignments 132
7.4.6Create an assembly 134
7.4.7Create steps 135
7.4.8Create and define field output requests 135
7.4.9Create and define history output requests 135
7.4.10Apply loads 136
7.4.11Apply boundary conditions 137
7.4.12Mesh 139
7.4.13Create and run the job 141
7.4.14Post processing – setting the viewport 141
7.4.15Plot the deformed state and modify common options 142
7.4.16Plot the field outputs 143
7.5Summary 145
8. Explicit Analysis of a Dynamically Loaded Truss 146
8.1Introduction 146
8.2Procedure in GUI 147
8.3Python Script 154
iv Contents
8.3.1Part, material, section and assembly blocks 160
8.3.2Creating sets 161
8.3.3Creating steps 162
8.3.4Create and define history output requests 163
8.3.5Apply loads 164
8.3.6Boundary conditions, mesh, running the job and initial post
processing 164
8.3.7XY plots of displacement 165
8.4Summary 170
9. Analysis of a Frame of I-Beams 171
9.1Introduction 171
9.2Procedure in GUI 174
9.3Python Script 188
9.4Examining the Script 199
9.4.1Initialization (import required modules) 199
9.4.2Create the model 199
9.4.3Create the part 199
9.4.4Define the materials 206
9.4.5Create profiles 206
9.4.6Create sections and make section assignments 207
9.4.7Assign section orientations 210
9.4.8Create an assembly 210
9.4.9Create connectors using wire features 211
9.4.10Use constraint equations for two nodes 216
9.4.11Create steps 218
9.4.12Create and define field output requests 218
9.4.13Create and define history output requests 218
9.4.14Apply loads 218
9.4.15Apply boundary conditions 220
9.4.16Mesh 222
9.4.17Create and run the job 222
9.5Summary 223
1 / 12 100%
La catégorie de ce document est-elle correcte?
Merci pour votre participation!

Faire une suggestion

Avez-vous trouvé des erreurs dans linterface ou les textes ? Ou savez-vous comment améliorer linterface utilisateur de StudyLib ? Nhésitez pas à envoyer vos suggestions. Cest très important pour nous !