Advanced hyper mesh

  • View
    148

  • Download
    3

Embed Size (px)

DESCRIPTION

hyper

Text of Advanced hyper mesh

HyperMesh Advanced Training

For technical support, contact us at: PHONE (248) 614-2400. Mon Thurs: 8:00 AM to 7:00 PM (EST). Fri: 8:00 AM to 5:00 PM (EST). Ask for HyperMesh Support (248) 614-2410 hmsupport@altair.com www.altair.com

FAX EMAIL WEB

FTP Site: ADDRESS LOGIN PASSWORD ftp.altair.com or ftp2.altair.com ftp

Copyright 2001 Altair Engineering, Inc., All rights reserved. Altair HyperMesh Advanced Training

Trademark Acknowledgments: Altair HyperMesh is a registered trademark of Altair Engineering, Inc. All other trademarks and registered trademarks are the property of their respective owners.

Comments concerning the training material may be made to documentation@altair.com.hmadvtrain_v40.doc

Table of ContentsPreface................................................................................................................... 1

Section 1: Advanced Geometry Clean-up and Meshing Techniques............ 3Element Quality Criteria ................................................................................................... 3 Exercise 1: Suppressing features adversely affecting element quality ................ 5 Exercise 2: Adjusting fixed points to correct surface edge definitions.................. 9 Exercise 3: Meshing around a troublesome feature ........................................... 14 Working with Defeaturing and Geometry Cleanup Tools ........................................... 23 Exercise 4: Preparing the bracket....................................................................... 25 Exercise 5: Preparing the base component........................................................ 32 Exercise 6: Meshing the parts ............................................................................ 36

Section 2: HyperMesh Macros ....................................................................... 41Overview .......................................................................................................................... 41 What is a HyperMesh Macro .......................................................................................... 42 The Macro Menu.............................................................................................................. 42 Page..................................................................................................................... 43 Display ................................................................................................................. 43 Shortcuts.............................................................................................................. 44 Tool ...................................................................................................................... 44 Files Associated with HyperMesh Macros ................................................................... 46

Altair Engineering

Advanced HyperMesh

i

HyperMesh options Panel .............................................................................................. 47 HyperMesh Macro Commands ...................................................................................... 47 Exercise 1: Creating a button ............................................................................. 49 Process for Creating Basic HyperMesh Macros.......................................................... 52 Exercise 2: A macro to save the model .............................................................. 53 Exercise 3: A macro to create a reverse video JPEG ........................................ 57 Creating HyperMesh Macros Using Tcl ........................................................................ 61 Syntax of Macros vs Tcl/Tk.................................................................................. 62 Creating Macros using Tcl/Tk .............................................................................. 62 Tcl/Tk Help....................................................................................................................... 63 Exercise 4: Create a macro to invoke a Tcl script .............................................. 64 Exercise 5: Create a macro to save a file to a user-specified directory and filename ............................................................................................................... 65 Exercise 6: A macro that checks the model for elements having a Jacobian below a user specified value................................................................................ 68

Appendix A: HyperMesh Macro Menu Commands ...................................... 73Macro File Example ............................................................................................. 73 Command List ................................................................................................................. 75 *appendmark() ..................................................................................................... 75 *beginmacro() ...................................................................................................... 76 *callmacro().......................................................................................................... 77 *createbutton() ..................................................................................................... 78 *createbuttongroup() ............................................................................................ 80 *createlistpanel() .................................................................................................. 82 *createmarklast().................................................................................................. 83 *createmarkpanel() .............................................................................................. 84 *createtext() ......................................................................................................... 85 *endmacro() ......................................................................................................... 86 *enterpanel() ........................................................................................................ 87 *includemacrofile() ............................................................................................... 89 *nextmacrofile().................................................................................................... 90 *prevmacrofile().................................................................................................... 91 *pushmacrofile()................................................................................................... 92 *setactivegroup().................................................................................................. 93 *setactivepage() ................................................................................................... 94

ii

Advanced HyperMesh

Altair Engineering

*setbuttongroupactivecolor()................................................................................ 95

Appendix B: HyperMesh Tcl/Tk Interface...................................................... 97Overview .......................................................................................................................... 97 Executing Tcl/Tk Scripts ................................................................................................ 97 GUI Development ............................................................................................................ 98 Additional HyperMesh Commands .................................................................... 100 hm_answernext.................................................................................................. 100 hm_complist....................................................................................................... 101 hm_elemlist........................................................................................................ 102 hm_errormessage.............................................................................................. 103 hm_getentityvalue.............................................................................................. 104 hm_getfilename ................................................................................................. 105 hm_getfloat ........................................................................................................ 106 hm_getint ........................................................................................................... 107 hm_getmark ....................................................................................................... 108 hm_getstring ...................................................................................................... 109 hm_markclear .................................................................................................... 110 hm_nodelist........................................................................................................ 111 hm_nodevalue ................................................................................................... 112 hm_redraw ......................................................................................................... 113 hm_usermessage .............................................................................................. 114 Example ............................................................................................................. 115

Altair Engineering

Advanced HyperMesh iii

iv Advanced HyperMesh

Altair Engineering

Preface

PrefaceWho should attendThis course is designed for students who have attended HyperMesh Basic Training and have a working knowledge of HyperMesh. It covers two topics. The first is advanced geometry clean-up and meshin