Gmsh2abaqus最笨操作教程stepbystep.docx
《Gmsh2abaqus最笨操作教程stepbystep.docx》由会员分享,可在线阅读,更多相关《Gmsh2abaqus最笨操作教程stepbystep.docx(16页珍藏版)》请在冰豆网上搜索。
Gmsh2abaqus最笨操作教程stepbystep
Gmsh2aba最笨操作教程stepbystep
准备一个igs/iges文件
【什么是igs文件不用我说吧,不知道的请XX】,gmsh支持的模型格式,见下图。
1、File->open,找到你要mesh的3d文件。
例如下图,打开。
2、几何模型如下图
3、Mesh,先接受默认设置,点击2D,如下图。
4、点击3D,生成我们需要的网格,如下图。
5、点击save,得到msh网格文件。
6、用记事本或者其他文本编辑【Vim、notepad++、Editplus都是很好的选择,推荐Vim】软件打开msh文件。
例如下图。
7、将231行数据复制到一个独立的文本文件,如下图,保存,例如node.inp
8、打开excel或者wps的et。
利用数据导入将node数据导入到excel/et中处理。
1、导入时,采用空格分割,最后得到,
而Abaqus的inp文件节点格式是
2、我们在AB之间插入1列,BC,CD都是插入1列,在第一行输入英文逗号“,”,将鼠标放在数据框右下角,出现实心黑十字,双击鼠标左键,excel/et自动填充到底,最后效果如下:
3、选择A-G列且复制到一个空白的文本文件,结果如下:
4、利用文本文件的替换功能,将“,”替换为“,”,得到合格的inp文件node信息,结果如下:
5、保存node-ok.txt。
9、在msh文件中找element,如下图所示
10、将1182行中第二位数据是“4”【4代表的是四面体单元,前面的行中2是三角单元,具体参见gmsh手册】的行复制到一个独立的文本文件,如下图,保存,例如element.inp
11、按照前面类似的方法,处理单元格式,使之符合aba对于inp中单元的要求。
将单元存储为element-ok.txt。
12、合成inp文件
找个能正常运行的inp文件,将node文件和element放到其中,例如
13、Aba中Runinp文件
修改完成,将三个文件放到aba的工作目录,采用导入inp的方式得到model,在abacae中记得从材料定义,赋予到最后的job定义好。
Run就是。
附录:
废话若干。
都说gmsh好,看他自己怎么说:
1.5WhatGmshisprettygoodat...
===================================
HereisatentativelistofwhatGmshdoesbest:
*quicklydescribesimpleand/or"repetitive"geometries,thanksto
user-definedfunctions,loops,conditionalsandincludes(see*note
User-definedfunctions:
:
*noteLoopsandconditionals:
:
and*note
Generalcommands:
:
);
*parametrizethesegeometries.Gmsh'sscriptinglanguageenables
allcommandsandcommandargumentstodependonprevious
calculations(see*noteExpressions:
:
and*noteGeometry
commands:
:
);
*generate1D,2Dand3Dsimplicial(i.e.,usinglinesegments,
trianglesandtetrahedra)finiteelementmeshesforCADmodelsin
theirnativeformat(withouttranslations)whenlinkedwiththe
appropriateCADkernel(see*noteMeshmodule:
:
);
*specifytargetelementsizesaccurately.Gmshprovidesseveral
mechanismstocontrolthesizeoftheelementsinthefinalmesh:
throughinterpolationfromsizesspecifiedatgeometrypointsor
usingflexiblemeshsizefields(*noteMeshcommands:
:
);
*createsimpleextrudedgeometriesandmeshes(see*noteGeometry
commands:
:
and*noteMeshcommands:
:
);
*interactwithexternalsolversthroughasimpleclient-server
architecture(*noteSolvermodule:
:
);
*visualizeandexportcomputationalresultsinagreatvarietyof
ways.Gmshcandisplayscalar,vectorandtensordatasets,perform
variousoperationsontheresultingpost-processingviews(*note
Post-processingmodule:
:
),canexportplotsinmanydifferent
formats(*noteGeneraloptionslist:
:
),andcangeneratecomplex
animations(see*noteGeneraltools:
:
and*notet8.geo:
:
);
*runonlowendmachinesand/ormachineswithnographical
interface.GmshcanbecompiledwithorwithouttheGUI(*note
Compilingthesourcecode:
:
),andallversionscanbeusedeither
interactivelyordirectlyfromthecommandline(*noteRunningGmsh
onyoursystem:
:
);
*configureyourpreferredoptions.Gmshhasalargenumberof
configurationoptionsthatcanbesetinteractivelyusingtheGUI,
scatteredinsidecommandfiles,changedontheflyinscripts,set
inper-userconfigurationfiles,orspecifiedonthecommand-line
(see*noteRunningGmshonyoursystem:
:
and*noteOptions:
:
);
*anddoalltheaboveonvariousplatforms(Windows,MacandUnix),
forfree(*noteCopyingconditions:
:
),usingsimplescriptfiles
and/orasmallbutpowerfulGUI.
1.6...andwhatGmshisnotsogoodat
=======================================
Asofversion2.8,herearesomeknownweaknessesofGmsh:
*theBRepapproachfordescribinggeometriescanbecome
inconvenient/inefficientforlargemodels.Forcomplexmodels,or
ifyouwanttouseasolid-modelerapproach,youshouldlinkGmsh
withanexternalCADkernelandimportnativefilesdirectly.(The
binaryversionsavailableon//geuz.org/gmsh/>arelinked
withthefreeCADkernelOpenCASCADE,whichenablesnativeBREP
importaswellasSTEPandIGESimport.)
*Gmsh'sinternalCADengineisfairlylimited:
itonlyhandles
simpleprimitivesanddoesnotperformanycomplexgeometrical
operations(e.g.nocalculationofintersections).Forsuch
featuresyoushouldlinkGmshwithanexternalCADkernel(see
above).
*Gmshisnotamulti-blocmeshgenerator:
allmeshesproducedby
Gmshareconforminginthesenseoffiniteelementmeshes;
*Gmsh'suserinterfaceisonlyexposingalimitednumberofthe
availablefeatures,andmanyaspectsoftheinterfacecouldbe
enhanced(especiallymanipulators).
*Gmsh'sscriptinglanguageisfairlylimited,providingonlyvery
crudeloopcontrolsanduser-definedfunctions,withnolocal
variables.
*thereisnoglobal"undo"capability.Youwilloftenneedtoedit
atextfiletocorrectmistakes.
Ifyouhavetheskillsandsomefreetime,feelfreetojointhe
project:
wegladlyacceptanycodecontributions(*noteInformationfor
developers:
:
)toremedytheaforementioned(andallother)shortcomings!
给出的翻译。
1.5什么Gmsh是相当不错的...
===================================
这里是什么Gmsh做得最好的初步清单:
*快速简单的描述和/或“重复”的几何形状,感谢
用户定义的函数,循环,条件,包括(见注*
用户定义的函数:
:
,*注意循环和条件:
:
和*注
一般命令:
:
);
*参数化这些几何形状。
Gmsh的脚本语言,使
所有的命令和命令参数依赖于以前的
计算(见*注表达式:
:
和*注几何
命令:
:
);
*生成1D,2D和3D单纯(即使用线段,
三角形和四面体)有限元网格在CAD模型
其原生格式(无翻译)用时链接
合适的CAD内核(见*注网模块:
:
);
*指定目标元素尺寸精确。
Gmsh提供了几个
机制来控制在最终的网格的元件的尺寸:
通过从几何点指定的大小或内插
采用灵活的网眼大小字段(*注意网命令:
:
);
*创建简单的挤压几何形状和网格(见*注几何
命令:
:
和*注意网命令:
:
);
*通过一个简单的客户端-服务器与外部求解器进行交互
架构(*注求解器模块:
:
);
*在种类繁多的可视化和出口计算结果
方式。
Gmsh可以显示标量,矢量和张量数据集,执行
关于所得到的后处理的观点的各种操作(*注
后处理模块:
:
),可以在许多不同的导出重复
格式(*注意:
常规选项列表:
:
),并能生成复杂
动画(见*注意常规工具:
:
和*注t8.geo:
:
);
*运行在低端机器和/或机器不带图形
接口。
Gmsh可以使用或不使用图形用户界面(*注被编译
编译源代码:
:
),以及所有版本均可使用
在命令行交互方式或直接(*注运行Gmsh
您的系统:
:
);
*配置首选选项。
Gmsh有大量的
可以设置交互使用GUI的配置选项,
里面散落命令文件,改变对脚本飞,设置
在每个用户的配置文件,或在命令行上指定
(见*注意你的系统和:
:
*注选项上运行Gmsh:
:
);
*做上述所有在各种平台(Windows,Mac和Unix的)
免费(*注复制条件:
:
),使用简单的脚本文件
和/或一个小而强大的GUI。
1.6...什么Gmsh是不是那么好
=======================================
随着2.8版本的,这里有Gmsh一些已知的弱点:
*在边界表示方法来描述几何形状可以成为
不方便/低效的大型模型。
对于复杂的模型,或
如果你想使用固体建模方法,你应该链接Gmsh
直接与外部CAD内核和导入本机文件。
(本
可在//geuz.org/gmsh/>链接二进制版本
使用免费的CAD内核OpenCASCADE,这使得本土BREP
导入以及STEP和IGES导入。
)
*Gmsh的内部CAD引擎是相当有限:
它只能处理
简单的原语和不执行任何复杂的几何
操作(如不计算交叉口)。
对于这样的
功能,你应该链接Gmsh与外部CAD内核(见
以上)。
*Gmsh是不是多阵营网格生成:
所生产的所有网格
Gmsh都符合有限元网格的意识;
*Gmsh的用户界面仅露出的有限数量
可用的特征和接口的许多方面可以
增强(尤其是机械手)。
*Gmsh的脚本语言是相当有限的,只提供极
原油回路控制和用户定义的函数,没有本地
变量。
*没有全球性的“撤销”的能力。
你会经常需要修改
一个文本文件,纠正错误。
如果你有技巧和一些空闲时间,随时加入
项目:
我们很高兴地接受任何代码贡献(*注意信息
开发商:
:
)弥补上述(和所有其他)的缺点!