Mesh Generation Using gmsh to simulate cavity flow · Mesh Generation Using gmsh to simulate cavity...

Post on 03-May-2018

245 views 4 download

transcript

Mesh Generation Using gmsh to simulate cavity flow

Albert S. Kim, Assoc. Prof.CEE, UHM

Adding Points

● Go to– Modules

– Geometry

– Elementary entities

– Add

– Point

● Numbers are arbitrary.

Coordinate input (1-4)

Coordinate input (5-8)

Adding Lines

● Go to– Modules

– Geometry

– Elementary entities

– Add

– Straight Line

Adding Surfaces

● Go to– Modules

– Geometry

– Elementary entities

– Add

– Plane Surface

Top

Press ‘e’ after you select 4 lines.

Bottom

Left & Right

Front & Back

Adding Volume

● Go to– Modules

– Geometry

– Elementary entities

– Add

– Volume

Adding .geo file

● Go to File → Save As

Adding Physical Surface

● Go to– Modules

– Geometry

– Physical groups

– Add

– Surface

top

bottom

left & right

front & back

Adding Physical Volume

● Go to– Modules

– Geometry

– Physical groups

– Add

– Volume

My cu be. ge o

My cu bes ym

.ge o

● Close gmsh program● Restart gmsh● Load

“mycubesym.geo”

● Go to– Mesh

– 3D

File → Save Mesh

Files generated are

● mycube.geo– Original file generated by gmsh

● mycubesym.geo– Edited file from mycube.geo to include surface

names such as top, bottom, left, right, front, and back.

● mycubesym.msh– Mesh file from mycubesym.geo.