Friday, 28 February 2014

Hypermesh automation and customization

Hi  Readers , My name is Prudhvi . I am working in computer aided analysis(CAE) . I felt to share all my professional learning to every one. I work on Hypermesh and Ansys for analysis. I want to share my experience of using these software by my blog.In CAE learning software plays an important role.

This post mainly concentrated on only Hyper mesh macros.  People prefer Hypermesh mainly it is easy for meshing .But it has so many options and lengthy process.Macros come into picture for reduction of repetitive tasks. The repetitive tasks like adjusting normal of shell elements , assigning properties of shell elements and organizing it properly and  modeling bolts properly.

In this post i just want to discuss only on adjusting normal of shell elements only. we have to select a component and a sample element for orientation of shell normals. I have developed a macros where it orient normals of surface automatically  without of any user interference.

Steps needed to be followed before execution of  above macros is

  • First display only shell element component .
  • renumber all displaced elements 
  • Adjusting normals to download
  • Go  to view tab ,click on command window and past the above macros in command window.
One of the major repetitive task is creating rigids in hyper mesh. Rigids are mainly used to represent a part in model through which force transfer takes place. Parts where stress developed is not our area of concern, those parts are modeled by rigids (RBe2) in Hyper Mesh.

In  a chassis of a vehicle where there are lot of bolts are modeled by rigids and Beam elements.  There may be 100 of bolts in a chassis.This is one of the frustrating job in modeling every where. The following macro helps to create rigids automatically where ever bolts  are present.
                                                   
Modeling of bolts in  a frame

Steps to be followed to run a script are
  • Save the model before running this macros.
  • Copy the below text in a text pad and save as spriders.tcl
  • open the from hyper mesh by file>run>Tcl 
  • spiders creation   is download link 
  • wait till run is completed.






   After formation of spiders (rbe2) for bolts ,it is necessary to make bolts every where with proper radius. For example in a Chassis there will be nearly 100 bolts. It costs a lot of time in making bolts every where. Now macros I have posted can help you to making bolts between any two components.

The main inputs for this scripts is select two components where spider connections is done wherever bolts are present.

Bolt modeling in Fem


Steps to be followed for this macros is
1. Save the below text in  a notepad and save as macro.tcl.
2.Display only two components in the Hypermesh window.
3.Run the Tcl bolts creation   by File>run>tcl>macro.tcl
4.The main iputs asked are range of diameters for which bolts have to be formed, and the maximum length of bolt to be formed.
5.After run is completed new components are created in names of the diameter of bolts made like beamM22.
6.It is requested to make beam cross section in hyperbeam and update the property of the component.