2024年1月25日发(作者:)

Gmsh2aba最笨操作教程stepbystep

准备一个igs/iges文件

【什么是igs文件不用我说吧,不知道的请百度】,gmsh支持的模型格式,见下图。

一、File->open,找到你要mesh的3d文件。例如下图,打开。

二、几何模型如下图

三、Mesh,先接受默认设置,点击2D,如下图。

四、点击3D,生成我们需要的网格,如下图。

五、点击save,得到msh网格文件。

六、用记事本或者其他文本编辑【Vim、notepad++、Editplus都是很好的选择,推荐Vim】软件打开msh文件。例如下图。

七、将231行数据复制到一个独立的文本文件,如下图,保存,例如

八、打开excel或者wps的et。利用数据导入将node数据导入到excel/et中处理。

1、导入时,采用空格分割,最后得到,

而Abaqus的inp文件节点格式是

2、我们在AB之间插入1列,BC,CD都是插入1列,在第一行输入英文逗号“,”,将鼠标放在数据框右下角,出现实心黑十字,双击鼠标左键,excel/et自动填充到底,最后效果如下:

3、选择A-G列且复制到一个空白的文本文件,结果如下:

4、利用文本文件的替换功能,将“ , ”替换为“,”,得到合格的inp文件node信息,结果如下:

5、保存。

九、在msh文件中找element,如下图所示

十、将1182行中第二位数据是“4”【4代表的是四面体单元,前面的行中2是三角单元,具体参见gmsh手册】的行复制到一个独立的文本文件,如下图,保存,例如

十一、按照前面类似的方法,处理单元格式,使之符合aba对于inp中单元的要求。

将单元存储为。

十二、合成inp文件

找个能正常运行的inp文件,将node文件和element放到其中,例如

十三、Aba中Run inp文件

修改完成,将三个文件放到aba的工作目录,采用导入inp的方式得到model,在aba cae中记得从材料定义,赋予到最后的job定义好。Run就是。

附录:废话若干。

都说gmsh好,看他自己怎么说:

1.5 What Gmsh is pretty good at ...

===================================

Here is a tentative list of what Gmsh does best:

* quickly describe simple and/or "repetitive" geometries, thanks to

user-defined functions, loops, conditionals and includes (see *note

User-defined functions::, *note Loops and conditionals::, and *note

General commands::);

* parametrize these geometries. Gmsh's scripting language enables

all commands and command arguments to depend on previous

calculations (see *note Expressions::, and *note Geometry

commands::);

* generate 1D, 2D and 3D simplicial (i.e., using line segments,

triangles and tetrahedra) finite element meshes for CAD models in

their native format (without translations) when linked with the

appropriate CAD kernel (see *note Mesh module::);

* specify target element sizes accurately. Gmsh provides several

mechanisms to control the size of the elements in the final mesh:

through interpolation from sizes specified at geometry points or

using flexible mesh size fields (*note Mesh commands::);

* create simple extruded geometries and meshes (see *note Geometry

commands::, and *note Mesh commands::);

* interact with external solvers through a simple client-server

architecture (*note Solver module::);

* visualize and export computational results in a great variety of

ways. Gmsh can display scalar, vector and tensor datasets, perform

various operations on the resulting post-processing views (*note

Post-processing module::), can export plots in many different

formats (*note General options list::), and can generate complex

animations (see *note General tools::, and *note ::);

* run on low end machines and/or machines with no graphical

interface. Gmsh can be compiled with or without the GUI (*note

Compiling the source code::), and all versions can be used either

interactively or directly from the command line (*note Running Gmsh

on your system::);

* configure your preferred options. Gmsh has a large number of

configuration options that can be set interactively using the GUI,

scattered inside command files, changed on the fly in scripts, set

in per-user configuration files, or specified on the command-line

(see *note Running Gmsh on your system:: and *note Options::);

* and do all the above on various platforms (Windows, Mac and Unix),

for free (*note Copying conditions::), using simple script files

and/or a small but powerful GUI.

1.6 ... and what Gmsh is not so good at

=======================================

As of version 2.8, here are some known weaknesses of Gmsh:

* the BRep approach for describing geometries can become

inconvenient/inefficient for large models. For complex models, or

if you want to use a solid-modeler approach, you should link Gmsh

with an external CAD kernel and import native files directly. (The

binary versions available on are linked

with the free CAD kernel OpenCASCADE, which enables native BREP

import as well as STEP and IGES import.)

* Gmsh's internal CAD engine is fairly limited: it only handles

simple primitives and does not perform any complex geometrical

operations (e.g. no calculation of intersections). For such

features you should link Gmsh with an external CAD kernel (see

above).

* Gmsh is not a multi-bloc mesh generator: all meshes produced by

Gmsh are conforming in the sense of finite element meshes;

* Gmsh's user interface is only exposing a limited number of the

available features, and many aspects of the interface could be

enhanced (especially manipulators).

* Gmsh's scripting language is fairly limited, providing only very

crude loop controls and user-defined functions, with no local

variables.

* there is no global "undo" capability. You will often need to edit

a text file to correct mistakes.

If you have the skills and some free time, feel free to join the

project: we gladly accept any code contributions (*note Information for

developers::) to remedy the aforementioned (and all other) shortcomings!

给出的翻译。

1.5什么Gmsh是相当不错的...

===================================

这里是什么Gmsh做得最好的初步清单:

*快速简单的描述和/或“重复”的几何形状,感谢

用户定义的函数,循环,条件,包括(见注*

用户定义的函数::,*注意循环和条件::和*注

一般命令::);

*参数化这些几何形状。 Gmsh的脚本语言,使

所有的命令和命令参数依赖于以前的

计算(见*注表达式::和*注几何

命令::);

*生成1D,2D和3D单纯(即使用线段,

三角形和四面体)有限元网格在CAD模型

其原生格式(无翻译)用时链接

合适的CAD内核(见*注网模块::);

*指定目标元素尺寸精确。 Gmsh提供了几个

机制来控制在最终的网格的元件的尺寸:

通过从几何点指定的大小或内插

采用灵活的网眼大小字段(*注意网命令::);

*创建简单的挤压几何形状和网格(见*注几何

命令::和*注意网命令::);

*通过一个简单的客户端 - 服务器与外部求解器进行交互

架构(*注求解器模块::);

*在种类繁多的可视化和出口计算结果

方式。 Gmsh可以显示标量,矢量和张量数据集,执行

关于所得到的后处理的观点的各种操作(*注

后处理模块::),可以在许多不同的导出重复

格式(*注意:常规选项列表::),并能生成复杂

动画(见*注意常规工具::和*注::);

*运行在低端机器和/或机器不带图形

接口。 Gmsh可以使用或不使用图形用户界面(*注被编译

编译源代码::),以及所有版本均可使用

在命令行交互方式或直接(*注运行Gmsh

您的系统::);

*配置首选选项。 Gmsh有大量的

可以设置交互使用GUI的配置选项,

里面散落命令文件,改变对脚本飞,设置

在每个用户的配置文件,或在命令行上指定

(见*注意你的系统和::*注选项上运行Gmsh::);

*做上述所有在各种平台(Windows,Mac和Unix的)

免费(*注复制条件::),使用简单的脚本文件

和/或一个小而强大的GUI。

什么Gmsh是不是那么好

=======================================

随着2.8版本的,这里有Gmsh一些已知的弱点:

*在边界表示方法来描述几何形状可以成为

不方便/低效的大型模型。对于复杂的模型,或

如果你想使用固体建模方法,你应该链接Gmsh

直接与外部CAD内核和导入本机文件。 (本

可在链接二进制版本

使用免费的CAD内核OpenCASCADE,这使得本土BREP

导入以及STEP和IGES导入。)

* Gmsh的内部CAD引擎是相当有限:它只能处理

简单的原语和不执行任何复杂的几何

操作(如不计算交叉口)。对于这样的

功能,你应该链接Gmsh与外部CAD内核(见

以上)。

* Gmsh是不是多阵营网格生成:所生产的所有网格

Gmsh都符合有限元网格的意识;

* Gmsh的用户界面仅露出的有限数量

可用的特征和接口的许多方面可以

增强(尤其是机械手)。

* Gmsh的脚本语言是相当有限的,只提供极

原油回路控制和用户定义的函数,没有本地

变量。

*没有全球性的“撤销”的能力。你会经常需要修改

一个文本文件,纠正错误。

如果你有技巧和一些空闲时间,随时加入

项目:我们很高兴地接受任何代码贡献(*注意信息

开发商::)弥补上述(和所有其他)的缺点!