GHAMBIT学习手记.docx
- 文档编号:9370668
- 上传时间:2023-05-18
- 格式:DOCX
- 页数:24
- 大小:29.88KB
GHAMBIT学习手记.docx
《GHAMBIT学习手记.docx》由会员分享,可在线阅读,更多相关《GHAMBIT学习手记.docx(24页珍藏版)》请在冰点文库上搜索。
GHAMBIT学习手记
近来在学GAMBIT,现把学习的笔记发上来。
希望对大家有帮助,表表心意,同时也是对这个论坛的支持!
今天把USER'SGUIDE一章发上来,以后陆续会把其他的发上来
USER'SGUIDE
{1}introduction
一.format
1.Graphicformat
1)Controlelements
allowyoutoperformoperationssuchasexecutingactionsandoperations,choosingfromamongagivensetofoptions,
andinputtingalphanumericdata
2)toolpadcommandbuttons
locatedontheupperandlowerrightportionsoftheGUI
2.Layoutformat
二.font
{2}STARTINGGAMBIT
一.StartupCommandOptions
1)gambit-doc启动本地网页浏览器打开用户手册>example:
gambit-doc
2)gambit-help 显示可用的启动选项 >example:
gambit-help
3)gambit-dev(driver)
4)gambit-def(filename)
5)gambit-geom按像素定义启动窗口大小 >example:
gambit-geom1000800
6)gambit-id(id) >example:
gambit
系统此时会以默认的default_id给文件一个标识
or:
gambit-idjxw
7)gambit-in(filename)
8)gambit-res(filename)
9)gambit-new(默认的启动方式都是新文件) >example:
gambit-idjxw-new=gambit-idjxw
10)gambit-old >example:
gambit-idgambit_data/3_pipe-old
note:
gambit_data目录必须在ntx86
二.GAMBITFileOrganization
1)SessionFiles
.jou
.trn
.dbs
2)DirectoryStructure
workingDirectory 存放.jou.trn.dbs文件的临时目录,程序保存退出后删除
Source Directory 与gambit启动目录是相同的位置,如d:
\gambit_v1.3\ntbin\ntx86\
ScratchDirectory 与gambit启动目录是相同的位置,如d:
\gambit_v1.3\ntbin\ntx86\
home Directory
{3}GUI
一.GUIComponents
二.GUIControlElements
三.UsingtheMouse
1)mouseon"Menusandforms" requireonlyleftandrightbuttons
leftbutton:
Openthemenuassociatedwithanitemonthemainmenubar
Selectamenucommand
Executetheoperationindicatedonacommandbutton
Selectanoptionfromalistofmutuallyexclusiveradiobuttons
Openthehiddenmenuforanoptionbutton
Selectanoptionfromanoption-buttonmenu
Openorcloseapick-listform
Enableatextboxforenteringdata
Highlightaniteminalist
Relocate(drag)aformontheGUI
rightbutton:
Openamenuofoptionsavailablebymeansofamultifunctiontoolpadcommandbutton
Openahiddenmenuofoptions
2)GraphicsWindow 在图形窗口鼠标可以完成三种任务
a)产生VERTEX
Ctrl-right-click
b)显示图形
Rotate Left-drag, 绕着在屏幕平面上的某个轴旋转,那个轴是于鼠标的移动方向垂直的。
Translate Middle-drag
Revolve Right-drag 水平方向拖动,绕垂直屏幕平面的一中心轴旋转
Zoomandpan-zoom Right-drag 垂直方向拖动
Enlarge ctrl+Left-drag 保持比例(即局部放大,导致整体都放大)
ctrl+middle-drag不保持比例(只局部放大)
Showpreviousview Double-middle-click
Journalview Double-right-click
drag left+rightdrag
c)task执行任务操作
i)Pickingentities
Shift-left-click 执行单纯的选择操作,在同一个位置有几个实体时,容易选错对象
Shift-middle-click 执行选择操作,特别适合在一复杂位置处选择一个自己需要的实体(通过不断的Shift-middle-click
可以除去前一次的选择,重新选择临近的对象)
ii)Executingactions
Shift-right-click=apply
四.UsingtheGlobalControlToolpad
{4}GAMBITMENUCOMMANDS
一)file
1)Export
i)MeshFiles
exportGAMBITmesh,boundary-type,andcontinuum-typeinformationinaformatappropriatetothecurrently
selectedsolver
FDNEUT FIDAP
msh FLUENT/UNS RAMPANT FLUENT5
GRD FLUENT4
msh NEKTON
cdb ANSYS
neu POLYFLOW Generic
GAMBITMODELINGGUIDE
{1}INTRODUCTION
{2}CREATINGTHEGEOMETRY
一.GeneralOperations
1)LabelingEntities
Item RealEntity VirtualEntity FacetedEntity
Vertex vertex v_vertex f_vertex
Edge edge v_edge f_edge
Face face v_face f_face
Volume volume v_volume f_volume
Group group N/A N/A
CoordinateSystem c_sys N/A N/A
默认的命名规则:
代表实体类型名称(如vertex)+.+十进制整数 example:
volume.6
如果是virtual和faceted实体则在前面加前缀“v_”和“f_”
整数的规则:
创建的下一个实体的整数至是当前存在的相同类型实体的整数值加1
2)SpecifyingEntities
Toselectentitiesthatshareacommonlower-topologyentity,pickthelower-topologyentitymultipletimes.Forexample,topickthreefacesthatshareacommonedge,picktheedgethreetimes.
3)坐标系统
i)定义局部坐标系统
a)指定参考坐标系统
b)定义相对于参考系统的三坐标轴的参数
4)Moving,CopyingandAligningEntities
i)Moving (是以指定的实体为parent)
a)Translate以实体现在的位置为基准,通过定义移动的距离数值来移动
b)Rotate 以某个定义的轴旋转实体
c)Reflect 以某个定义的对称平面对称实体
d)Scale 以特定的比例因子放大缩小试题
ii)Copying (是以前面产生的为parent)
Ifyoucreatetwocopiesofarectangularbrickandspecifythatthecopiesaretobetranslatedinthex,y,andzdirections,GAMBITtranslatesthefirstcopyrelativetotheparentbrickandtranslatesthesecondcopyrelativetothefirstcopy
只有"线"在拷贝时才有CopyMeshoption
iii)对齐是以存在的点为基准的(relativetovertices)
有下面三步骤:
①translate 相对与整体坐标系不变方向的移动实体
②rotate 改变实体的方向,通过旋转使得所选的两个点共线
③Plane-align 绕所选的两个点形成的向量旋转,使得共面
二.Vertex
1)生成点
i)CreateRealVertex(只产生realvertex)
定义点在坐标系统中的位置
在网格中ctrl+rightclick生成的也为real点
ii)CreateVertexOnEdge(可以产生realorvirtualvertex)
生成的realvertex是独立于边的,其可以进行“move"等操作
生成的virtualvertex是于边相关的,其不可以进行“move"等操作,除非选中”connnectedgeometry“
iii)CreateVertexOnFace(可以产生realorvirtualvertex)
产生的点的性质同上
iv)CreateVirtualVertexonVolume
virtualvertex是与体相关的。
v)CreateVerticesAtEdgeIntersections(可以产生realorvirtualvertex)
Verticescreatedbymeansofthiscommandarenotconnectedtoeitherofthe
edgesusedtodefinethepointsofintersection.
Thetypesofedges(realornon-real)usedtodefinethepointsof
intersectiondonotaffectthetypesofvertices
如果指定的两条边相交或者靠近在其中一条边的端点处,那么是否在交点处产生一个点取决与选边的秩序。
2)SlideVirtualVertex
交互式的在virtualvertex宿主边或面上移动这个点
移动VirtualVertex的目的就是改变与这个点想联的更高级拓扑实体的形状
3)Connect/DisconnectVertices
i)ConnectVertices
先选择要连接的点(可以是realandvirtualvertex)——>选择连接的类型
①SpecifyingaRealConnection
删除所有同一个位置的点,只剩下一个,然后把保留下来的点连上与删除点有关的所有更高级拓扑实体中(只能连接realvertex)
②SpecifyingaVirtual(Forced)Connection
可以连接realandvirtualvertex
执行操作后,生成一个virtualvertex替换所指定的点,如果指定的点为一条边的端点,那么生成一条virtualedge替换原来的边,同时生成的新边按照生成的点定位。
如果边与面或者体相联,那么生成一virtualfaceorvolume替换原来的面或者体
③SpecifyingaVirtual(Tolerance)Connection
与②相似,只是只能联结距离在指定范围之内的点
④SpecifyingaRealandVirtual(Tolerance)Connection
ii)DisconnectAboutRealVertex
GAMBITdoesnotallowyoutodisconnecttopologyaroundavertexthatconstitutespartofanindividualfaceorvolume
4)ModifyVertexColor/Label
i)ModifyVertexColor
ii)ModifyVertexLabel
5)Move/Copy/AlignVertices
6)ConvertVertices
把non-realvertex转变成realvertex
7)7Summarize/Check/QueryVerticesandTotalEntities
Topology代表实体之间的空间关系.
Geometry代表模型的靠近和形状特征
8)DeleteVertices
三.边
1)CreateEdge
i)CreateStraightEdge
生成realedge必须指定realvertex
而生成virtualedge可以是任何real和virtualvertex的组合
host?
ii)CreateRealCircularArc
methodone:
定义一个中心,再指定两个基本点(始点和末点,这两个点必须到中心点等距)
可以指定否生成优弧还是劣弧
methodtwo:
指定圆弧上的三个点
methodthree:
指定半径,起始角,结束角,中心点(optional。
默认是以坐标系原点为圆心),平面
iii)CreateRealFullCircle
methodone:
定义一个中心,再指定两个基本点(始点和末点,这两个点必须到中心点等距)
methodtwo:
指定圆上的三个点
iv)CreateRealEllipticalArc
指定中心点,major点,onedge点,起始和结束角度
中心点到major点的距离为长半轴距离,
关于onedge点:
specifiesavertexthatliesontheedgeofthefullellipse.IfavectordrawnfromtheCentervertextotheOnEdgevertexisatrightanglestoavectordrawnfromtheCentervertextotheMajorvertex,thenthedistancebetweentheCentervertexandtheOnEdgevertexexactlydefinesthelengthoftheminoraxis.
v)CreateRealConicArc
you应该指定以下参数:
始点,最高点,末点,形状变量(椭圆线、抛物线,双曲线)
始点,最高点,末点决定了弧线的位置和方向,最高点决定了弧线是否按造始末点对称(当最高点与始末点距离相等时对称)
elliptical [0.01~050
parabolic 0.5
hyperbolic 0.50~0.99]
vi)CreateRealFilletArc(生成的是两段曲边当中的较小一条,曲边和两条指定边相切)
first:
指定两条边(可以是直边或曲边)
second:
在两条边上指定selectionpoints
selectionpoints(u)指的是选择点到线端点的距离,这个值对生成的filletarc的位置起到决定作用,有下面两重情况;
①指定的两条edge不相交
②指定的两条EDGE相交
third:
指定半径
fourth:
是否对两条边裁剪
GAMBITretainstheedgesegmentsthatcontaintheselectionpoints.
vii)CreateRealEdgeFromVertices
first:
指定点(realvertex,点决定了线的形状,只有始末点成为线的一部分)
second:
选择方法
viii)RevolveVertices
绕某指定的轴旋转realornon-realvertex生成realcirculararcedge
ix)ProjectEdgeOnFace
在一realorvirtualface上投影一realorvirtualedge产生一realedge.
所产生的EDGE与面无拓扑上的和几何上的关系
2)Connect/DisconnectEdges
i)ConnectEdges
①选择要connect的边(可以是realorvirtualedge)
②连接方式
.SpecifyingaRealConnection
删除所有同一个位置的edge,只剩下一个,然后把保留下来的edge连上与删除edge有关的所有更高级拓扑实体中(只能连接realvertex)
.SpecifyingaVirtual(Forced)Connection
.SpecifyingaVirtual(Tolerance)Connection
.SpecifyingaRealandVirtual(Tolerance)Connection(实际上是对第二和第三步操作的叠加,可以分别用第二和第三步操作来代替)
Preservefirstedgeshape:
Preservesplit-edgeshape:
比Preservefirstedgeshape优先
ii)DisconnectEdges
有三种情况,边和边的两个端点一起分开,生成一条边和两个端点
边分开,共享原来的点
边和和指定的点分开
3)ModifyEdgeColor/Label
4)Move/Copy/AlignEdges(详细见Move/Copy/AlignEntities)
i)Move/CopyEdges
ii)AlignEdges
5)Split/MergeEdges
i)SplitEdge(splitanexistingedgeintotworealorvirtualedges)
可以Splitrealorvirtualedges,但是产生的边有以下规定
当Splitrealedges时,可以产生realorvirtualedges
当Splitnon-realedges时,只产生virtualedges
步骤:
一,指定要Split的EDGES
二,选择splittype
Realconnected
Realdisconnected
V
- 配套讲稿:
如PPT文件的首页显示word图标,表示该PPT已包含配套word讲稿。双击word图标可打开word文档。
- 特殊限制:
部分文档作品中含有的国旗、国徽等图片,仅作为作品整体效果示例展示,禁止商用。设计者仅对作品中独创性部分享有著作权。
- 关 键 词:
- GHAMBIT 学习 手记
![提示](https://static.bingdoc.com/images/bang_tan.gif)