logo资料库

ABAQUS 脚本使用者手册(Abaqus Scripting User's Guide)英文版.pdf

第1页 / 共324页
第2页 / 共324页
第3页 / 共324页
第4页 / 共324页
第5页 / 共324页
第6页 / 共324页
第7页 / 共324页
第8页 / 共324页
资料共324页,剩余部分请下载后查看
Abaqus 6.13 PDF Documentation
Abaqus Scripting User's Guide
Legal Notices
Preface
Contents
Part I: An introduction to the Abaqus Scripting Interface
1. An overview of the Abaqus Scripting User's Guide
2. Introduction to the Abaqus Scripting Interface
2.1 Abaqus/CAE and the Abaqus Scripting Interface
2.2 How does the Abaqus Scripting Interface interact with Abaqus/CAE ?
3. Simple examples
3.1 Creating a part
3.1.1 The example script
3.1.2 How does the script work?
3.2 Reading from an output database
3.2.1 The example script
3.2.2 How does the script work?
3.3 Summary
Part II: Using the Abaqus Scripting Interface
4. Introduction to Python
4.1 Python and Abaqus
4.2 Python resources
4.3 Using the Python interpreter
4.4 Object-oriented basics
4.5 The basics of Python
4.5.1 Variable names and assignment
4.5.2 Python data types
4.5.3 Determining the type of a variable
4.5.4 Sequences
4.5.5 Sequence operations
4.5.6 Python None
4.5.7 Continuation lines and comments
4.5.8 Printing variables using formatted output
4.5.9 Control blocks
4.6 Programming techniques
4.6.1 Creating functions
4.6.2 Using dictionaries
4.6.3 Reading and writing from files
4.6.4 Error handling
4.6.5 Functions and modules
4.6.6 Writing your own modules
4.7 Further reading
5. Using Python and the Abaqus Scripting Interface
5.1 Executing scripts
5.2 Abaqus Scripting Interface documentation style
5.2.1 How the commands are ordered
5.2.2 Access
5.2.3 Path
5.2.4 Arguments
5.2.5 Return value
5.3 Abaqus Scripting Interface data types
5.3.1 SymbolicConstants
5.3.2 Booleans
5.3.3 Repositories
5.4 Object-oriented programming and the Abaqus Scripting Interface
5.4.1 The Abaqus Scripting Interface and methods
5.4.2 The Abaqus Scripting Interface and members
5.4.3 Object-oriented programming and the Abaqus Scripting Interface —a summary
5.5 Error handling in the Abaqus Scripting Interface
5.5.1 Standard Python exceptions
5.5.2 Standard Abaqus Scripting Interface exceptions
5.5.3 Additional Abaqus Scripting Interface exceptions
5.5.4 Exception handling
5.6 Extending the Abaqus Scripting Interface
5.6.1 Storing custom data in the model database or in other objects
5.6.2 Interaction with the GUI
5.6.3 CommandRegister class
5.6.4 Repositories
5.6.5 Repository methods
5.6.6 RepositorySupport
5.6.7 Registered dictionaries
5.6.8 Registered lists
5.6.9 Registered tuples
5.6.10 Session data
5.6.11 Saving application data in a model database
5.6.12 Checking a model database when it is opened
6. Using the Abaqus Scripting Interface with Abaqus/CAE
6.1 The Abaqus object model
6.1.1 An overview of the Abaqus object model
6.1.2 Using tab completion to explore the object model
6.1.3 The Model object model
6.1.4 Using the object model
6.1.5 Abstract base type
6.1.6 Importing modules to extend the object model
6.2 Copying and deleting Abaqus Scripting Interface objects
6.2.1 Creating a copy of an object
6.2.2 More on copying objects
6.2.3 Deleting objects
6.3 Abaqus/CAE sequences
6.4 Namespace
6.5 Specifying what is displayed in the viewport
6.6 Specifying a region
6.7 Prompting the user for input
6.7.1 Requesting a single input from the user
6.7.2 Requesting multiple inputs from the user
6.7.3 Requesting a warning reply from the user
6.8 Interacting with Abaqus/Standard, Abaqus/Explicit, and Abaqus/CFD
6.8.1 Processing messages from Abaqus/Standard, Abaqus/Explicit, and Abaqus/CFD
6.8.2 Waiting for a job to complete
6.8.3 An example of a callback function
6.9 Using Abaqus Scripting Interface commands in your environment file
Part III: The Abaqus Python development environment
7. Using the Abaqus Python development environment
7.1 An overview of the Abaqus Python development environment
7.2 Abaqus PDE basics
7.2.1 Starting the Abaqus Python development environment
7.2.2 Managing files in the Abaqus PDE
7.2.3 Editing files in the Abaqus PDE
7.2.4 Selecting the settings for use with a file
7.2.5 The message area and GUI command line interface
7.3 Using the Abaqus PDE
7.3.1 Creating .guiLog files
7.3.2 Running a script
7.3.3 Using the debugger
7.3.4 Using breakpoints
7.3.5 Using the Abaqus PDE with plug-ins
7.3.6 Using the Abaqus PDE with custom applications
Part IV: Putting it all together: examples
8. Abaqus Scripting Interface examples
8.1 Reproducing the cantilever beam tutorial
8.1.1 Running the example
8.1.2 The cantilever beam example script
8.2 Generating a customized plot
8.2.1 Opening the tutorial output database
8.2.2 Opening an output database and displaying a contour plot
8.2.3 Printing a contour plot at the end of each step
8.3 Investigating the skew sensitivity of shell elements
8.3.1 Creating the model to analyze
8.3.2 Changing the skew angle
8.3.3 Using a script to perform a parametric study
8.4 Editing display preferences and GUI settings
Part V: Accessing an output database
9. Using the Abaqus Scripting Interface to access an output database
9.1 What do you need to access the output database?
9.2 How the object model for the output database relates to commands
9.3 Object model for the output database
9.3.1 Model data
9.3.2 Results data
9.4 Executing a script that accesses an output database
9.5 Reading from an output database
9.5.1 The Abaqus/CAE Visualization module tutorial output database
9.5.2 Making the Odb commands available
9.5.3 Opening an output database
9.5.4 Reading model data
9.5.5 Reading results data
9.5.6 Reading field output data
9.5.7 Using regions to read a subset of field output data
9.5.8 Reading history output data
9.5.9 An example of reading node and element information from an output database
9.5.10 An example of reading field data from an output database
9.6 Writing to an output database
9.6.1 Creating a new output database
9.6.2 Writing model data
9.6.3 Writing results data
9.6.4 Writing field output data
9.6.5 Default display properties
9.6.6 Writing history output data
9.7 Exception handling in an output database
9.8 Computations with Abaqus results
9.8.1 Rules for the mathematical operations
9.8.2 Valid mathematical operations
9.8.3 Envelope calculations
9.8.4 Transformation of results
9.9 Improving the efficiency of your scripts
9.9.1 Creating objects to hold temporary variables
9.10 Example scripts that access data from an output database
9.10.1 Finding the maximum value of von Mises stress
9.10.2 Creating an output database
9.10.3 An Abaqus Scripting Interface version of FPERT
9.10.4 Computations with FieldOutput objects
9.10.5 Computations with FieldValue objects
9.10.6 Computations with HistoryOutput objects
9.10.7 Creating a new load combination from different load cases
9.10.8 Stress range for multiple load cases
9.10.9 Transformation of field results
9.10.10 Viewing the analysis of a meshed beam cross-section
9.10.11 Using infinite elements to compute and view the results of an acoustic far-field analysis
9.10.12 An Abaqus Scripting Interface version of FELBOW
10. Using C++ to access an output database
10.1 Overview
10.2 What do you need to access the output database?
10.3 Abaqus Scripting Interface documentation style
10.3.1 How the commands are ordered
10.3.2 Access
10.3.3 Path
10.3.4 Prototype
10.3.5 Return value
10.4 How the object model for the output database relates to commands
10.5 Object model for the output database
10.5.1 Model data
10.5.2 Results data
10.6 Compiling and linking your C++ source code
10.7 Accessing the C++ interface from an existing application
10.7.1 Initializing the C++ interface
10.7.2 Link library location
10.7.3 Runtime library location
10.7.4 Header file location
10.8 The Abaqus C++ API architecture
10.8.1 Class naming convention
10.8.2 Constructors
10.8.3 Header files
10.9 Utility interface
10.9.1 Utility interface classes
10.9.2 Utility interface examples
10.10 Reading from an output database
10.10.1 The Abaqus/CAE Visualization module tutorial output database
10.10.2 Making the Odb commands available
10.10.3 Opening an output database
10.10.4 Reading model data
10.10.5 Reading results data
10.10.6 Reading field output data
10.10.7 Using bulk data access to an output database
10.10.8 Using regions to read a subset of field output data
10.10.9 Reading history output data
10.10.10 An example of reading field data from an output database
10.11 Writing to an output database
10.11.1 Creating a new output database
10.11.2 Writing model data
10.11.3 Writing results data
10.11.4 Writing field output data
10.11.5 Default display properties
10.11.6 Writing history output data
10.12 Exception handling in an output database
10.13 Computations with Abaqus results
10.13.1 Rules for the mathematical operations
10.13.2 Valid mathematical operations
10.13.3 Envelope calculations
10.13.4 Transformation of results
10.14 Improving the efficiency of your scripts
10.14.1 Creating objects to hold loop counters
10.14.2 Creating objects to hold temporary variables
10.14.3 Using references to objects
10.15 Example programs that access data from an output database
10.15.1 Finding the maximum value of von Mises stress
10.15.2 Creating an output database
10.15.3 Reading data from an output database
10.15.4 Decreasing the amount of data in an output database by retaining data at specific frames
10.15.5 Stress range for multiple load cases
10.15.6 A C++ version of FELBOW
Abaqus Scripting User’s Guide Abaqus ID: Printed on: Abaqus 6.13Scripting User’s Guide
Abaqus Scripting User’s Guide Abaqus ID: Printed on:
Legal Notices CAUTION: This documentation is intended for qualified users who will exercise sound engineering judgment and expertise in the use of the Abaqus Software. The Abaqus Software is inherently complex, and the examples and procedures in this documentation are not intended to be exhaustive or to apply to any particular situation. Users are cautioned to satisfy themselves as to the accuracy and results of their analyses. Dassault Systèmes and its subsidiaries, including Dassault Systèmes Simulia Corp., shall not be responsible for the accuracy or usefulness of any analysis performed using the Abaqus Software or the procedures, examples, or explanations in this documentation. Dassault Systèmes and its subsidiaries shall not be responsible for the consequences of any errors or omissions that may appear in this documentation. The Abaqus Software is available only under license from Dassault Systèmes or its subsidiary and may be used or reproduced only in accordance with the terms of such license. This documentation is subject to the terms and conditions of either the software license agreement signed by the parties, or, absent such an agreement, the then current software license agreement to which the documentation relates. This documentation and the software described in this documentation are subject to change without prior notice. No part of this documentation may be reproduced or distributed in any form without prior written permission of Dassault Systèmes or its subsidiary. The Abaqus Software is a product of Dassault Systèmes Simulia Corp., Providence, RI, USA. © Dassault Systèmes, 2013 Abaqus, the 3DS logo, SIMULIA, CATIA, and Unified FEA are trademarks or registered trademarks of Dassault Systèmes or its subsidiaries in the United States and/or other countries. Other company, product, and service names may be trademarks or service marks of their respective owners. For additional information concerning trademarks, copyrights, and licenses, see the Legal Notices in the Abaqus 6.13 Installation and Licensing Guide. Abaqus ID: Printed on:
Preface This section lists various resources that are available for help with using Abaqus Unified FEA software. Support Both technical software support (for problems with creating a model or performing an analysis) and systems support (for installation, licensing, and hardware-related problems) for Abaqus are offered through a global network of support offices, as well as through our online support system. Regional contact information is accessible from the Locations page at www.3ds.com/simulia. The online support system is accessible from the Support page at www.3ds.com/simulia. Online support SIMULIA provides a knowledge database of answers and solutions to questions that we have answered, as well as guidelines on how to use Abaqus, SIMULIA Scenario Definition, Isight, and other SIMULIA products. The knowledge database is available from the Support page at www.3ds.com/simulia. By using the online support system, you can also submit new requests for support. All support incidents are tracked. If you contact us by means outside the system to discuss an existing support problem and you know the support request number, please mention it so that we can query the database to see what the latest action has been. Anonymous ftp site To facilitate data transfer with SIMULIA, an anonymous ftp account is available at ftp.simulia.com. Login as user anonymous, and type your e-mail address as your password. Contact support before placing files on the site. Training All support offices offer regularly scheduled public training classes. The courses are offered in a traditional classroom form and via the Web. We also provide training seminars at customer sites. All training classes and seminars include workshops to provide as much practical experience with Abaqus as possible. For a schedule and descriptions of available classes, see the Training page at www.3ds.com/simulia or call your support office. Feedback We welcome any suggestions for improvements to Abaqus software, the support program, or documentation. We will ensure that any enhancement requests you make are considered for future releases. If you wish to make a suggestion about the service or products, refer to www.3ds.com/simulia. Complaints should be made by contacting your support office or by visiting the Quality Assurance page at www.3ds.com/simulia. Abaqus ID: Printed on:
Abaqus ID: Printed on:
CONTENTS 2.1 2.2 3.1 3.2 3.3 4.1 4.2 4.3 4.4 4.5 4.6 4.7 5.1 5.2 5.3 5.4 5.5 5.6 6.1 Contents PART I AN INTRODUCTION TO THE Abaqus Scripting Interface 1. An overview of the Abaqus Scripting User’s Guide 2. Introduction to the Abaqus Scripting Interface Abaqus/CAE and the Abaqus Scripting Interface How does the Abaqus Scripting Interface interact with Abaqus/CAE? 3. Simple examples Creating a part Reading from an output database Summary PART II USING THE Abaqus Scripting Interface 4. Introduction to Python Python and Abaqus Python resources Using the Python interpreter Object-oriented basics The basics of Python Programming techniques Further reading 5. Using Python and the Abaqus Scripting Interface Executing scripts Abaqus Scripting Interface documentation style Abaqus Scripting Interface data types Object-oriented programming and the Abaqus Scripting Interface Error handling in the Abaqus Scripting Interface Extending the Abaqus Scripting Interface 6. Using the Abaqus Scripting Interface with Abaqus/CAE The Abaqus object model i Abaqus ID:cmd-toc Printed on: Thu January 10 -- 16:46:45 2013
CONTENTS Copying and deleting Abaqus Scripting Interface objects Abaqus/CAE sequences Namespace Specifying what is displayed in the viewport Specifying a region Prompting the user for input Interacting with Abaqus/Standard, Abaqus/Explicit, and Abaqus/CFD Using Abaqus Scripting Interface commands in your environment file PART III THE Abaqus PYTHON DEVELOPMENT ENVIRONMENT 7. Using the Abaqus Python development environment An overview of the Abaqus Python development environment Abaqus PDE basics Using the Abaqus PDE PART IV PUTTING IT ALL TOGETHER: EXAMPLES 8. Abaqus Scripting Interface examples Reproducing the cantilever beam tutorial Generating a customized plot Investigating the skew sensitivity of shell elements Editing display preferences and GUI settings PART V ACCESSING AN OUTPUT DATABASE 9. Using the Abaqus Scripting Interface to access an output database What do you need to access the output database? How the object model for the output database relates to commands Object model for the output database Executing a script that accesses an output database Reading from an output database Writing to an output database Exception handling in an output database Computations with Abaqus results Improving the efficiency of your scripts Example scripts that access data from an output database ii 6.2 6.3 6.4 6.5 6.6 6.7 6.8 6.9 7.1 7.2 7.3 8.1 8.2 8.3 8.4 9.1 9.2 9.3 9.4 9.5 9.6 9.7 9.8 9.9 9.10 Abaqus ID:cmd-toc Printed on: Thu January 10 -- 16:46:45 2013
分享到:
收藏