首页/文章/ 详情

HyperMesh 高级培训教程,聚焦高级几何清理、网格划分技术和宏命令开发-英文版122页

6月前浏览1001

摘要:

本文为 HyperMesh 高级培训教程,聚焦高级几何清理、网格划分与宏命令开发。先讲解单元质量评价标准,通过实操案例介绍特征抑制、定点修正、复杂特征网格处理等几何清理方法,搭配去 feature 工具优化模型拓扑,提升网格质量。随后系统讲解 HyperMesh 宏菜单结构、宏命令语法与自定义按钮制作,实现模型保存、截图、质量检查等流程自动化。还结合 Tcl/Tk 脚本扩展交互功能,支持参数输入、文件选择与二次开发,附完整命令清单与案例,帮助用户高效完成复杂模型前处理与工作流定制。




HyperMesh Advanced Training

For technical support, contact us at:

image.png

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. 

Table of Contents 

Preface...................................................................................................................1 

Section 1:  Advanced Geometry Clean-up and Meshing Techniques............3 

Element 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.......................................................................41 

Overview..........................................................................................................................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 

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......................................73 

Macro 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

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

Appendix B:  HyperMesh Tcl/Tk Interface......................................................97 

Overview..........................................................................................................................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

Preface 

  • Who should attend 

This 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 meshing techniques. The second is macros and macro creation, a tool to improve your productivity using HyperMesh. 

Even if you have no experience writing any program code, by the end of this session, you will be successful at creating your own macros. Each section also includes “hands-on” exercises to help you become comfortable with the new techniques presented here. 

  • Manual notations 

This manual uses the following notations. 

• courier for text that you type in  

• bold italic  for panel names, button names, and sub-panel names.  

Information that is of importance or warning messages will appear in a note box.

image.png

Macro commands may occasionally be longer than the text line of this document. 

In those cases, the text wraps to the next line and is slightly indented. When asked to enter such a command, type the entire command ignoring the wraparound. This will ensure the system can accurately interpret the command you entered.

  • For more help 

Should you desire additional help with material in this course, see the back of the title page of this manual for contact information. 

Comments about this manual may be directed to documentation@altair.com.

Section 1:  Advanced Geometry Clean-up and Meshing Techniques 

Geometry cleanup and automeshing, often cited as the most time consuming aspects of Finite Element An alysis (FEA) modeling, are the most critical aspects in generating a quality mesh that will give accurate an alysis results. A methodical approach to geometry cleanup and automeshing activities can save a great deal of time in the an alysis process and assist in obtaining dependable results.

  • Element Quality Criteria 

In FEA modeling, element quality greatly effects the accuracy of the an lysis results. Many modern FEA solvers have routines to compensate for some measure of poor element quality, but it is not a good practice to rely on these compensations. The FEA modeler must take into consideration element quality, 

and thereby judge whether the an alysis results are meaningful. 

The ideal four-node (quad) plate element is a planar square. Two types of errors can result from translating a single node. If one of the nodes is translated in the plane of the remaining nodes, the interior angles change and the edge lengths vary between sides introducing skew and aspect ratio into the element.  If one of the nodes is translated out of plane of the others, the result is warpage. 

With first order tria elements warpage is not possible, but aspect ratio and skew remain valid measures of element quality. The element checks in HyperMesh test these properties and provide feedback as to the quality of the element.  

Keep element quality criteria in mind while observing the geometry of the model. When trying to determine whether or not to cleanup the geometric feature, ask yourself the following questions. 

  1. Is this feature important to my an alysis? Often designers model details that are unimportant in FEA. Tapers, fillets, steps and ridges in sheet metal parts, while required for manufacturing, can often be ignored in an alysis.

  2. How will this feature affect my mesh and element quality? Consider the benefits and consequences of removing the feature versus meshing it. With HyperMesh, often the simplest way to answer this is to mesh with the feature, then mesh without the feature, and compare the results. 

  3. Will it be easier to correct the geometry before meshing, or to correct the elements after meshing? As the geometric features become more detailed and complex, it is often easier and faster to mesh around them and correct the mesh afterwards. With the new element cleanup functionality in HyperMesh, correcting element quality becomes a simple, interactive task. 

  4. Do I need to mesh the surfaces, or can this part be modeled using other techniques? Sometimes the more basic “surfaceless” meshing tools result in a better quality mesh faster and easier than using the surfaces presented. Tools such as spline, ruled mesh, line drag, spin, skin, and element offset can often be used to accurately represent a part without being confined to the given geometry. 

The next five example problems demonstrate how to manage these situations.

Exercise 1:  Suppressing features adversely affecting element quality 

  • Step 1:  Retrieve the model taper.hm40 

In this exercise, use the automesher to create a surface mesh both before and after suppressing unnecessary feature lines. Use the cleanup sub-panel within the automesh panel to avoid extra panel navigation. 

  1. Go to the files panel from any page. 

  2. Select the hm file sub-panel by clicking the corresponding radio button. 

  3. Click in the text field next to file =  and select taper.hm40 using the file browser, or type in the file name. 

  4. Click retrieve to read the file into HyperMesh. 

This file contains five surfaces. The surface with a curved edge forms a tail that tapers into a narrow point. This feature, as well as the other trim lines forming the boundaries between the individual surfaces, will result in a less than ideal mesh on these surfaces.

image.png

  • Step 2:  Create a baseline mesh 

  1. From the 2D page, select the automesh panel. 

  2. Select the create mesh sub-panel by clicking the corresponding radio button. 

  3. Click on the green surfs button and select all from the pop-up menu. 

  4. Click in the text field next to elem size =  and enter 25.0 

  5. Click mesh to enter the secondary automesh menu. 

  6. Click mesh to display the preliminary mesh. 

Notice how the curved line results in severely distorted elements.  Since the curved line is unimportant to our ana lysis, we can suppress it and improve the element quality.

image.png

  • Step 3:  Creating an improved mesh 

  1. Click abort to discard the existing mesh. 

  2. While still in the main automesh panel, select the cleanup sub-panel by clicking the corresponding radio button. 

  3. Click the green line button under toggle: to make that the active entity selector. 

  4. Click each of the interior green surface edges to suppress those features. 

  5. Return to the create mesh sub-panel. 

  6. Click mesh to enter the secondary automesh menu. 

  7. Click mesh to display the preliminary mesh. 

Note the improved mesh quality. Since the baseline meshing operation retains the original mesh densities, the remaining problem areas result from transitions due to the different mesh densities on corresponding sides of the rectangular surface. To fix this, manually adjust these densities or re-calculate the edge 

densities.

image.png

  • Step 4:  Adjusting element densities 

1. Click the green recalc all button to re-compute the edge densities based on the desired 25 mm element size. 

2. Click mesh to re-generate the mesh. 

3. Click return to accept the mesh and go back to the main automesh panel.  

 Note the improved consistency in the resulting mesh.

image.png

Summary 

In this exercise, we used the automesher to point out the problems caused by unnecessary feature lines. By suppressing the lines, the resulting mesh on this surface greatly improved.

详细内容请见附件

免责声明:

本页面/内容部分素材来源于互联网公 开 信 息,旨在传递更多信息,不代表本平台立场。

版权归原作者或机构所有,如涉及侵权,请通过平台联系我们,我们将在核实后第一时间处理。

本平台对转载内容的真实性、准确性不作任何保证,用户需自行判断并承担使用风险。

附件

免费E15-HyperMesh 高级培训教程,聚焦高级几何清理、网格划分技术和宏命令开发-英文版122页.pdf
MeshingACTSystemHyperMeshSTEPS网格处理二次开发
著作权归作者所有,欢迎分享,未经许可,不得转载
首次发布时间:2026-04-10
最近编辑:6月前
仿真支持爱好者
在仿真的路上越走越远
获赞 333粉丝 26文章 318课程 0
点赞
收藏
作者推荐

COMSOL_Multiphysics后处理

内容安排•数据集•派生值和表格•绘图组和绘图•报告和数据导出1.数据集•数据集包含绘图和报告的源数据•数据集内容可以是求解结果、网格、变换或应用于其他数据集的切割面数据•1D、2D、3D切割面数据需要和绘图组相结合绘制切面图定义数据集数据集绘制网格图加入右键DataSets,选择加入对不同情况下得到的数据进行操作数据集操作不同于Selection,可以查看指定面、边、点的数据数据集操作-3D3D-面右键DataSets,选择面面:对于3D来说就是各个外表面将某一个外表面的数据从solution中单独提取出来。3D-截面3D-边单独取出任意外表面上的任意一条边的数据,可选择一维绘图组绘图3D-截线还可以取出求解域内任意一条线段上的数据3D-截点还可以取出求解域内任意一个点或一组点的数据更多数据集操作-3D3D-三维镜像对于对称模型,只计算一半,另一半利用三维镜像得出结果,可以有效降低计算量3D-三维扇形3D-参数化面数据集操作-2D将2D图形按照旋转轴旋转成3D图形可以将轴对称3D简化为2D图形计算,再利用2D旋转得到3D图像,可以有效降低计算量参数化拉伸瞬态计算时可以用到,将时间作为其中一轴案例库:COMSOLMultiphysics>Equation-Basedmodels>kdv_equation更多内容见附件免责声明:本页面/内容部分素材来源于互联网公开信息,旨在传递更多信息,不代表本平台立场。版权归原作者或机构所有,如涉及侵权,请通过平台联系我们,我们将在核实后第一时间处理。本平台对转载内容的真实性、准确性不作任何保证,用户需自行判断并承担使用风险。

有附件
未登录
还没有评论
课程
培训
服务
行家
VIP会员 学习计划 福利任务
下载APP
联系我们
帮助与反馈