GUI Customization with Abaqus - Simulia

164 downloads 406 Views 3MB Size Report
There are 3 major areas in which Abaqus can be customized: • Analysis ... Write Python GUI scripts to customize the user interface. • This course will not cover ...
| www.3ds.com | © Dassault Systèmes |

GUI Customization with Abaqus

Overview • Types of Customization • Goal and Prerequisites

| www.3ds.com | © Dassault Systèmes |

• Agenda

GUI Customization with Abaqus

| www.3ds.com | © Dassault Systèmes |

Types of Customization

Types of Customization • There are 3 major areas in which Abaqus can be customized: • Analysis

| www.3ds.com | © Dassault Systèmes |

• Write Fortran user subroutines to customize the way analysis results are calculated • Kernel • Write Python kernel scripts to customize the way modeling objects are created, or to manipulate results data • GUI • Write Python GUI scripts to customize the user interface • This course will not cover Analysis products customization • This course will focus on GUI customization • Since the ultimate goal of a GUI is to issue kernel commands, some kernel scripting and customization concepts will be covered in this course

GUI Customization with Abaqus

Types of Customization • Kernel customization • Use existing CAE commands

| www.3ds.com | © Dassault Systèmes |

• Copy segments of a replay file to capture commonly used commands that can be replayed using File→Run Script • Record macros using the GUI to capture commonly used actions that can be replayed using File→Macro Manager→Run • Create your own commands and objects using Python • Parameterize scripts for more general usage • Use getInput or getInputs to prompt for inputs in a dialog (simple interface involving text fields and strings only)

GUI Customization with Abaqus

Types of Customization • GUI customization • Create new modules or toolsets

• Create new menus | www.3ds.com | © Dassault Systèmes |

• Create new dialogs • Create new procedures • Remove Abaqus/CAE modules or toolsets • Create vertical applications • The Abaqus GUI Toolkit is NOT designed for: • Modifying Abaqus/CAE dialogs • Modifying Abaqus/CAE procedures • Building an application that does not follow the Abaqus/CAE user interface paradigm

• Running an application outside of the Abaqus/CAE framework GUI Customization with Abaqus

| www.3ds.com | © Dassault Systèmes |

Goal and Prerequisites

Goal and Prerequisites • The goal of this course is to train you to use the Abaqus GUI Toolkit to customize the Abaqus/CAE interface or build your own applications

• Learn how to build dialogs and issue commands from the GUI | www.3ds.com | © Dassault Systèmes |

• Learn how to create and modify GUI modules and toolsets • Learn how to create custom applications • This course assumes attendees have the following experience: • Python programming • Abaqus kernel scripting • GUI design (courses are available from companies such as User Interface Engineering, www.uie.com) • Some GUI programming

GUI Customization with Abaqus

| www.3ds.com | © Dassault Systèmes |

Agenda

| www.3ds.com | © Dassault Systèmes |

Day 1 (Review of Kernel Scripting) • Lecture 1:

Python Review

• Workshop 1–1:

Circle Module

• Workshop 1–2:

Fibonacci Series (Optional)

• Lecture 2:

Kernel Scripting in Abaqus

• Workshop 2–1:

Macro to Create a Library

• Workshop 2–2:

Session Commands (Optional)

• Lecture 3:

Specialized Postprocessing with Kernel Scripting

• Workshop 3–1:

Linear Superposition

• Workshop 3–2:

Creating an Output Database (Optional)

• Lecture 4:

Advanced Kernel Scripting Topics

• Workshop 4:

Job monitoring (Optional)

GUI Customization with Abaqus

| www.3ds.com | © Dassault Systèmes |

Day 2 (GUI Customization) • Lecture 5:

GUI Toolkit Introduction

• Lecture 6:

Widget Library

• Workshop 5:

Creating Widgets

• Lecture 7:

Layout Managers

• Workshop 6:

Using Layout Managers

• Lecture 8:

Dialogs

• Lecture 9:

GUI Messaging

• Workshop 7:

Message Handling

• Lecture 10:

Commands & Keywords Part 1

• Workshop 8:

Commands & Keywords Part 1

GUI Customization with Abaqus

| www.3ds.com | © Dassault Systèmes |

Day 3 (GUI Customization) • Lecture 11:

Commands and Keywords Part 2

• Lecture 12:

Modes Part 1

• Workshop 9:

Commands and Keywords Part 2

• Lecture 13:

Modes Part 2

• Workshop 10:

Modes Part 2

• Workshop 11:

Procedures

• Lecture 14:

Modules and Toolsets

• Lecture 15:

Building Applications

• Workshop 12:

Beam Application

• Workshop 13:

Additional Exercises

GUI Customization with Abaqus

Day 4 (GUI Customization) • Lecture 16:

Other Topics

• Workshop 14:

Creating customData

• Wrap up

Finish workshops

| www.3ds.com | © Dassault Systèmes |

Consulting for company-specific applications

GUI Customization with Abaqus

Legal Notices The Abaqus Software described in this documentation is available only under license from Dassault Systèmes and its subsidiary and may be used or reproduced only in accordance with the terms of such license.

| www.3ds.com | © Dassault Systèmes |

This documentation and the software described in this documentation are subject to change without prior notice. Dassault Systèmes and its subsidiaries shall not be responsible for the consequences of any errors or omissions that may appear in this documentation. No part of this documentation may be reproduced or distributed in any form without prior written permission of Dassault Systèmes or its subsidiary. © Dassault Systèmes, 2011. Printed in the United States of America Abaqus, the 3DS logo, SIMULIA and CATIA are trademarks or registered trademarks of Dassault Systèmes or its subsidiaries in the US 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.11 Release Notes and the notices at: http://www.simulia.com/products/products_legal.html.

GUI Customization with Abaqus

| www.3ds.com | © Dassault Systèmes |

Revision Status Lecture 1

5/11

Updated for 6.11

Workshop 1–1

5/11

Updated for 6.11

Lecture 2

5/11

Updated for 6.11

Workshop 1–2

5/11

Updated for 6.11

Lecture 3

5/11

Updated for 6.11

Workshop 2–1

5/11

Updated for 6.11

Lecture 4

5/11

Updated for 6.11

Workshop 2–2

5/11

Updated for 6.11

Lecture 5

5/11

Updated for 6.11

Lecture 6

5/11

Updated for 6.11

Workshop 3–1

5/11

Updated for 6.11

Lecture 7

5/11

Updated for 6.11

Workshop 3–2

5/11

Updated for 6.11

Lecture 8

5/11

Updated for 6.11

Workshop 4

5/11

Updated for 6.11

5/11

Updated for 6.11

Lecture 9

5/11

Updated for 6.11

Workshop 5

Lecture 10

5/11

Updated for 6.11

Workshop 6

5/11

Updated for 6.11

Lecture 11

5/11

Updated for 6.11

Workshop 7

5/11

Updated for 6.11

5/11

Updated for 6.11

Lecture 12

5/11

Updated for 6.11

Workshop 8

Lecture 13

5/11

Updated for 6.11

Workshop 9

5/11

Updated for 6.11

Lecture 14

5/11

Updated for 6.11

Workshop 10

5/11

Updated for 6.11

Lecture 15

5/11

Updated for 6.11

Workshop 11

5/11

Updated for 6.11

Updated for 6.11

Workshop 12

5/11

Updated for 6.11

Workshop 13

5/11

Updated for 6.11

Workshop 14

5/11

Updated for 6.11

Lecture 16

5/11

GUI Customization with Abaqus

Python Review | www.3ds.com | © Dassault Systèmes |

Lecture 1

L1.2

Overview • Namespaces • Modules

| www.3ds.com | © Dassault Systèmes |

• Exceptions • Examples • Workshops

GUI Customization with Abaqus

Kernel Scripting in Abaqus | www.3ds.com | © Dassault Systèmes |

Lecture 2

L2.2

Overview • The Abaqus Scripting Interface • The Abaqus Object Model

| www.3ds.com | © Dassault Systèmes |

• Abaqus Types • Abaqus Modules • Setting Abaqus Defaults

• Getting Interactive Input • Example • Workshops

GUI Customization with Abaqus

Specialized Postprocessing with Kernel Scripting | www.3ds.com | © Dassault Systèmes |

Lecture 3

L3.2

Overview • The Abaqus Output Database • Automating Postprocessing Tasks

| www.3ds.com | © Dassault Systèmes |

• Postprocessing External Data • Examples • Workshops

GUI Customization with Abaqus

Advanced Kernel Scripting Topics | www.3ds.com | © Dassault Systèmes |

Lecture 4

L4.2

Overview • Exploring Your Data • Abaqus Architecture

| www.3ds.com | © Dassault Systèmes |

• Job Monitoring • Debugging Scripts • Abaqus PDE

• Object-Oriented Programming • Python Classes • Example • Workshop

GUI Customization with Abaqus

GUI Toolkit Introduction | www.3ds.com | © Dassault Systèmes |

Lecture 5

L5.2

Overview • Background • Abaqus GUI Toolkit

| www.3ds.com | © Dassault Systèmes |

• Examples • Documentation and References • Customization Services

GUI Customization with Abaqus

Widget Library | www.3ds.com | © Dassault Systèmes |

Lecture 6

L6.2

Overview • Introduction

| www.3ds.com | © Dassault Systèmes |

• Widgets

GUI Customization with Abaqus

Layout Managers | www.3ds.com | © Dassault Systèmes |

Lecture 7

L7.2

Overview • Layout Managers • Layout Hints

| www.3ds.com | © Dassault Systèmes |

• Example

GUI Customization with Abaqus

| www.3ds.com | © Dassault Systèmes |

| www.3ds.com | © Dassault Systèmes |

Dialogs Lecture 8

L8.2

Overview

• Dialogs

GUI Customization with Abaqus

GUI Messaging | www.3ds.com | © Dassault Systèmes |

Lecture 9

L9.2

Overview

| www.3ds.com | © Dassault Systèmes |

• Messaging

GUI Customization with Abaqus

Commands and Keywords Part I | www.3ds.com | © Dassault Systèmes |

Lecture 10

L10.2

Overview • Data Targets • GUI Commands and Keywords

| www.3ds.com | © Dassault Systèmes |

• AFX Targets • Using Keywords and Targets with Widgets

GUI Customization with Abaqus

Commands and Keywords Part II | www.3ds.com | © Dassault Systèmes |

Lecture 11

L11.2

Overview • Data Targets

| www.3ds.com | © Dassault Systèmes |

• Using Keywords and Targets with Widgets

GUI Customization with Abaqus

Modes Part I | www.3ds.com | © Dassault Systèmes |

Lecture 12

L12.2

Overview • Modes

| www.3ds.com | © Dassault Systèmes |

• Form Example

GUI Customization with Abaqus

Modes Part II | www.3ds.com | © Dassault Systèmes |

Lecture 13

L13.2

Overview • Detailed Mode Execution • Procedure Modes

| www.3ds.com | © Dassault Systèmes |

• Procedure Example

GUI Customization with Abaqus

Modules and Toolsets | www.3ds.com | © Dassault Systèmes |

Lecture 14

L14.2

Overview

| www.3ds.com | © Dassault Systèmes |

• Modules and Toolsets

GUI Customization with Abaqus

Application Overview | www.3ds.com | © Dassault Systèmes |

Lecture 15

L15.2

Overview • Applications • The Main Window

| www.3ds.com | © Dassault Systèmes |

• Customizing Abaqus/CAE

GUI Customization with Abaqus

Other Topics | www.3ds.com | © Dassault Systèmes |

Lecture 16

L16.2

Overview • Plug-ins • Custom Data

| www.3ds.com | © Dassault Systèmes |

• Internationalization • Context Sensitive Help • Miscellaneous

• Feedback

GUI Customization with Abaqus