Innovation Intelligence ® 1 Chapter 4: The Animation Client.

Slides:



Advertisements
Similar presentations
5-1 5 Tour of ArcMap and ArcCatalog ArcGIS for Assessors 1.
Advertisements

Copyright © 2009 Altair Engineering, Inc. Proprietary and Confidential. All rights reserved. Introduction in Altair ® HyperMesh ® The Fastest, Solver Neutral.
CP308-1L: Working with Actions and the Action Recorder Lee Ambrosius Autodesk, Inc Sr. Technical Writer.
1 Microsoft Access 2002 Tutorial 9 – Automating Tasks With Macros.
Advanced Results Processing Winter Semester
Tutorial 1 Default Cee section in bending Objective To introduce the conventional finite strip method and gain a rudimentary understanding of how to perform.
Business Process Modeling in Microsoft Visio® Interfacing’s BPMN Modeler: Overview.
Civil 114 Civil Engineering Drawing AutoCAD
Automating Tasks With Macros
Intro to ArcMap Customization with Visual Basic  Create your own toolbars, buttons, interactive tools, and programs  Runs behind the scenes in ArcMap.
Automating Tasks With Macros. 2 Design a switchboard and dialog box for a graphical user interface Database developers interact directly with Access.
Innovation Intelligence ® 1 Chapter 3: HyperMesh Automation with HyperMesh Macros.
Innovation Intelligence ® 1 Chapter 6: Interfacing with HyperMesh Solver Templates.
Viewbox 4 Tutorial How to create a Template Please view this tutorial as a Slide Show in PowerPoint, because it contains animations that will not appear.
Command Console Tutorial BCIS 3680 Enterprise Programming.
Chapter 5 Vibration Analysis
Chapter 17 Putting It All Together. Viewing the Preloader To view the preloader, 1.CTRL-Enter to test the movie. 2.View > Simulate Download.
Dataface API Essentials Steve Hannah Web Lite Solutions Corp.
Chapter 9 CAD & Parameters
Innovation Intelligence ® 1 Chapter 5: Retrieving Data from HyperMesh Entities.
Copyright © 2010 Altair Engineering, Inc. All rights reserved.Altair Proprietary and Confidential Information Section 13 Loads and Boundary Conditions.
ANSYS Fundamentals This document contains no technical data subject to the EAR or the ITAR.
CARLSON SOFTWARE CONFERENCE DANIEL V. SYPERSMA VICTOR GRAPHICS.
JavaScript: Functions © by Pearson Education, Inc. All Rights Reserved.
Section 3 SimLab Architecture. Copyright © 2010 Altair Engineering, Inc. All rights reserved.Altair Proprietary and Confidential Information SimLab Objects.
Multi-Part Requests/ Parent & Child Service Items.
TCL/Tk Based Environment for Mixed-Signal Circuit Design System Description Software Architecture Examples Future Directions Summary.
FTP Server and FTP Commands By Nanda Ganesan, Ph.D. © Nanda Ganesan, All Rights Reserved.
Innovation Intelligence ® 1 Chapter 7: The MotionView Client.
Adobe Flash CS3 Revealed Chapter 1 - GETTING STARTED WITH FLASH.
Innovation Intelligence ® Section 1 User Interface and Layout.
College Algebra Fifth Edition James Stewart Lothar Redlin Saleem Watson.
Copyright © 2010 Altair Engineering, Inc. All rights reserved.Altair Proprietary and Confidential Information Section 4 Applications.
Innovation Intelligence ® Section 9 Mesh Cleanup.
Copyright 2002, Paradigm Publishing Inc. CHAPTER 18 BACKNEXTEND 18-1 LINKS TO OBJECTIVES Creating a Chart Sizing and Moving a Chart Sizing and Moving a.
Innovation Intelligence ® 1 Chapter 6: The Plotting Client.
Chapter 2: Introduction to HyperMesh Process Auomation
Business Process Modeling in Microsoft Visio® Interfacing’s BPMN Modeler: Overview.
1 Chapter 20 – Data sources and datasets Outline How to create a data source How to use a data source How to use Query Builder to build a simple query.
Innovation Intelligence ® Section 15 Contact Modeling.
Copyright © 2002 Legato Systems, Inc.
XP New Perspectives on Microsoft Office Access 2003 Tutorial 10 1 Microsoft Office Access 2003 Tutorial 10 – Automating Tasks With Macros.
Section 9 Mesh Cleanup. Copyright © 2010 Altair Engineering, Inc. All rights reserved.Altair Proprietary and Confidential Information Mesh cleanup CAD.
Innovation Intelligence ® 1 Chapter 4: Using TCL to Control the HyperMesh Session.
Page 1 of 42 To the ETS – Create Client Account & Maintenance Online Training Course Individual accounts (called a Client Account) are subsets of the Site.
Chapter 9 Quick Links Slide 2 Performance Objectives Understanding Forms Planning Forms Creating Forms Creating Text Fields Creating Hidden Fields Creating.
Surface-to-Surface Simulation
Introduction to Programming in Corvid EXSYS-Corvid is an intelligent systems programming environment General order of tasks: Enter and define Variables.
Innovation Intelligence ® Section 17 Material & Property Definition.
Tutorial 1 Default Cee section in bending Objective To introduce CUFSM and the finite strip method and gain a rudimentary understanding of how to perform.
WS8-1 ADM730, Workshop 8, September 2005 Copyright  2005 MSC.Software Corporation WORKSHOP 8 MSC.EASY5 & ADAMS/Insight.
Innovation Intelligence ® Section 4 Applications.
MATLAB and SimulinkLecture 61 To days Outline Graphical User Interface (GUI) Exercise on this days topics.
Innovation Intelligence ® SIMLAB Updates: SimLab_13.3_Beta_WIN64_0529.
Innovation Intelligence ® SimLab – Show Adjacent.
Innovation Intelligence ® Section 20 Flux and Convection.
Innovation Intelligence ® RBE3 Reduction Macro Dennis D. Schwerzler March 27, 2012.
Vectors Chapter 3 Copyright © 2014 John Wiley & Sons, Inc. All rights reserved.
MSC.Patran Plot Set Utility. 2 Development Focus  The Plot Set utility provides the ability to define and group many Patran post processing tools  Drastically.
Innovation Intelligence ® Feb Copyright © 2012 Altair Engineering, Inc. Proprietary and Confidential. All rights reserved. GUI design Controls Toplevel.
Innovation Intelligence ® 1 Chapter 2: The HyperWorks Desktop Environment.
3 Copyright © 2013, Oracle and/or its affiliates. All rights reserved. PeopleSoft General Ledger 9.2 New Features 9.2 Release New Features.
Autodesk Dev Days 2015 The road ahead DevDays 2015
TUTORIAL 4 POST-PROCESSING
Graphical Output Basic Images.
To the Geoview - Editing for OSR Applications Online Training Course
Together Let’s Design an Online Quiz
To the Geoview - Editing for OSR Applications Online Training Course
Tutorial 1 Default Cee section in bending Objective
Presentation transcript:

Innovation Intelligence ® 1 Chapter 4: The Animation Client

Copyright © 2012 Altair Engineering, Inc. Proprietary and Confidential. All rights reserved. 22 The Animation Client – Overview Animation Window Animation Client Handle Loading a Model Attaching Results Model Object Result Control Query Control Selection Sets Groups

Copyright © 2012 Altair Engineering, Inc. Proprietary and Confidential. All rights reserved. 33 The Animation Client – Animation Window In any window, you can set the client type to Animation This creates the post object Sometimes both terms, Post and Animation, are used interchangeably It’s important to understand that Animation is just a client type while post is an actual TCL command created inside the Animation client Example: hwi OpenStack hwi GetSessionHandle session1 session1 GetProjectHandle project1 project1 GetPageHandle page1 1 page1 GetWindowHandle win1 1 win1 SetClientType Animation hwi CloseStack

Copyright © 2012 Altair Engineering, Inc. Proprietary and Confidential. All rights reserved. 44 The Animation Client – Animation Client Handle After setting the client type, you can access the animation client and get full access to its functionality using the GetClientHandle command page1 GetWindowHandle win1 1 win1 GetClientHandle anim Object Hierarchy for poIPost (or animation client) The prefix “poI” is used internally for naming the classes within the animation client. It stands for “post Interface”.

Copyright © 2012 Altair Engineering, Inc. Proprietary and Confidential. All rights reserved. 55 The Animation Client – Loading a Model Remember when working with the client handle, you always have to add an object first using the appropriate Add command (i.e. AddModel, AddMeasure, AddNote and AddSectionCut ). The Add command returns an ID that you should use to get the proper handle Load a model with the AddModel command page1 GetWindowHandle win1 1 win1 GetClientHandle anim anim AddModel bumper.h3d

Copyright © 2012 Altair Engineering, Inc. Proprietary and Confidential. All rights reserved. 66 The Animation Client – Loading a Model Overlaying multiple models in the same window Default behavior for AddModel command Example overlaying 2 models bumper.h3d and bumper_foam.h3d anim AddModel bumper.h3d anim AddModel bumper_foam.h3d anim Draw if you have a model loaded in the window and you need to load a new model (not overlay), then you can use the Clear command. anim Clear anim AddModel bumper_foam.h3d anim Draw “ anim Draw ” is needed to update the graphics

Copyright © 2012 Altair Engineering, Inc. Proprietary and Confidential. All rights reserved. 77 The Animation Client – Attaching Results To attach results to the loaded model, you first need to get a model handle using the GetModelHandle command available in the post object. The GetModelHandle requires two arguments handle name – can be any arbitrary name model id – needs to be a valid id We can get a valid id form the AddModel command, which returns a model id. set id [anim AddModel bumper.h3d] anim GetModelHandle my_model $id

Copyright © 2012 Altair Engineering, Inc. Proprietary and Confidential. All rights reserved. 88 The Animation Client – Attaching Results Now that there is a valid model handle (my_model), results can be attached using the SetResult command. my_model SetResult bumper.h3d At this point, we have a model and its results loaded. We can animate and/or view results such as contour, tensor, and vector plots.

Copyright © 2012 Altair Engineering, Inc. Proprietary and Confidential. All rights reserved. 99 Exercise 4.1 Loading a Model and Result File

Copyright © 2012 Altair Engineering, Inc. Proprietary and Confidential. All rights reserved. 10 The Animation Client – Attaching Results Therefore, to load a model and attach results, here’s a set of commands that are needed: hwi OpenStack hwi GetSessionHandle session1 session1 GetProjectHandle project1 project1 GetPageHandle page1 1 page1 GetWindowHandle win1 1 win1 GetClientHandle anim anim Clear set id [anim AddModel bumper.h3d] anim GetModelHandle my_model $id my_model SetResult bumper.h3d anim Draw hwi CloseStack

Copyright © 2012 Altair Engineering, Inc. Proprietary and Confidential. All rights reserved. 11 The Animation Client – Model Object The Model Object allows access to: Result Control (provides access to Contour, Tensor, Vector, etc) Query Control Selection Sets

Copyright © 2012 Altair Engineering, Inc. Proprietary and Confidential. All rights reserved. 12 The Animation Client – Model Handle When working within the HyperView GUI, there is only one active model within a session at any given time. However, when working with the command layer, you can work with any model that’s loaded in the session. You are not restricted to the active model only – as long as you get the proper model handle.

Copyright © 2012 Altair Engineering, Inc. Proprietary and Confidential. All rights reserved. 13 The Animation Client – Result Control Need to get result handle to gain access to the loaded results. The result control handle allows you to query information such as: load cases simulation steps data types It also allows you to apply results such contour, tensor and vector plots and other features. Example: Get a list of data types for the current load case (also referred to as subcase). anim GetModelHandle my_model [anim GetActiveModel] my_model GetResultCtrlHandle my_result set current [my_result GetCurrentSubcase] set data_types [my_result GetDataTypeList $current]

Copyright © 2012 Altair Engineering, Inc. Proprietary and Confidential. All rights reserved. 14 The Animation Client – Query Control The query control allows you to query or get information for all entity types in the model. Aside form basic information you can also query results, such as stress values, displacements, etc… First need to get a query control handle and then perform the desired query. When working with the query control you have to remember the following: Choose the entity type (i.e. node, element, component or system) Specify the request (i.e. “node.id”, “contour.value” etc…) Specify a set of entities that you need information for (i.e. all nodes, or IDs , or all entities above/below a certain contour value, etc…) Output the data to a file or any other channel

Copyright © 2012 Altair Engineering, Inc. Proprietary and Confidential. All rights reserved. 15 The Animation Client – Query Control Example: Assume that we have bumper.h3d loaded and a model handle named my_model. We will get the coordinates for a set of nodes ranging from 1 to 100; we will output the data to a file named “out.txt”. my_model GetQueryCtrlHandle my_query # create a node set and add ids set set_id [my_model AddSelectionSet node] my_model GetSelectionSetHandle node_set $set_id node_set Add "id <= 100" my_query SetSelectionSet $set_id # ask for ids and coordinates my_query SetQuery "node.id node.coords" my_query WriteData out.txt # clean up my_model RemoveSelectionSet $set_id

Copyright © 2012 Altair Engineering, Inc. Proprietary and Confidential. All rights reserved. 16 The Animation Client – Selection Sets A Selection Set defined as a place-holder for entities that are supported inside HyperView; These entities are nodes, elements, parts/components and systems. Selection sets are used extensively and are needed by many objects/commands in the command layer. Almost all result related objects (contour, tensor, vector, fld, etc…) as well as other controls, such as the exploded view and query, require a selection set. There are a few basic rules to remember: Create the needed set of the right type Add/Remove entities and use it based on your needs Remove it when it is not needed It is very important to remove the selection set after it is not needed.

Copyright © 2012 Altair Engineering, Inc. Proprietary and Confidential. All rights reserved. 17 The Animation Client – Selection Sets AddSelectionSet command – requires valid entity type (node, element, etc) and it returns a set ID The set ID should be used to get a selection set handle The following example illustrates that selection set offers a lot of methods to help you build the needed set of entities to work with. In addition, you can reverse the selection and even add by contour value for example. The online help offers a comprehensive example showing all available methods.

Copyright © 2012 Altair Engineering, Inc. Proprietary and Confidential. All rights reserved. 18 The Animation Client – Selection Sets Example: Assume that there is a valid model handle named my_model. # create an element set set set_id [my_model AddSelectionSet element] my_model GetSelectionSetHandle elem_set $set_id Add element ID ( ) set id_list { } foreach id $id_list { elem_set Add "id $id" } Now let’s subtract all IDs below 50 elem_set Subtract "id < 50“

Copyright © 2012 Altair Engineering, Inc. Proprietary and Confidential. All rights reserved. 19 The Animation Client – Selection Sets Example (continued): So now we are left with a selection set that has the following IDs: and 100. Let’s add all elements that are adjacent to the elements in the set. elem_set Add adjacent And finally, let’s subtract any TRIAS that are selected. elem_set Subtract "config 103"

Copyright © 2012 Altair Engineering, Inc. Proprietary and Confidential. All rights reserved. 20 The Animation Client – Groups Selection sets can be used to create groups To create a group you need to: Add a selection set Set its label Example: Create a group of all elements that have a contour value above Assume that bumper.h3d loaded and a contour plot of stress: set set_id [my_model AddSelectionSet element] my_model GetSelectionSetHandle elem_set $set_id elem_set Add "contour > 1200" elem_set SetLabel "Stress > 1200" elem_set SetIDVisibility true elem_set SetVisibility true elem_set SetColor yellow After creating this group, you can go to the Groups Panel and turn the display on/off or change other options.

Copyright © 2012 Altair Engineering, Inc. Proprietary and Confidential. All rights reserved. 21 Exercise 4.2 Working with the Model Object

Copyright © 2012 Altair Engineering, Inc. Proprietary and Confidential. All rights reserved. 22 The Animation Client - Exercise Exercise 4a Description: Load two models (bezel.h3d and bezel_iter2.h3d) in two separate windows. Both of these files are located in C:/Altair/hw10.0/tutorials/mv_hv_hg/animation. First, capture the screen to a file name screen.jpg and then capture each window separately to two separate files, window1.jpg and window2.jpg Handles used session, project, page, window, client TCL/TK commands used AddModel, CaptureScreen, SetActiveWindow, CaptureActiveWindow Hints Use the session to capture screen and then set the active window to capture the individual windows.

Copyright © 2012 Altair Engineering, Inc. Proprietary and Confidential. All rights reserved. 23 The Animation Client - Exercise Exercise 4b Description: Load bezel.h3d. Get the following information: number of nodes, elements and parts. Create a note displaying the information you have acquired. Handles used session, project, page, window, client, model, selection set, note TCL/TK commands used GetSize, AddNote, SetText Hints Use the GetSize command on the selection set handle to get the number of elements in the selection set.