Difference between revisions of "OpenFOAM/C3/Installing-and-running-Gmsh/English"
(Created page with 'Tutorial: Installing and runing Gmsh Script and Narration: Gautam Sharma Keywords: Gmsh. {| style="border-spacing:0;" | style="border-top:0.05pt solid #000000;border-bot…') |
|||
| Line 5: | Line 5: | ||
| − | Keywords: Gmsh. | + | Keywords: Gmsh.''' ''' |
| − | + | ||
{| style="border-spacing:0;" | {| style="border-spacing:0;" | ||
| − | | style="border | + | | style="border:1pt solid #000001;padding-top:0cm;padding-bottom:0cm;padding-left:0.191cm;padding-right:0.191cm;"| <center>Visual Cue</center> |
| − | | style="border: | + | | style="border:1pt solid #000001;padding-top:0cm;padding-bottom:0cm;padding-left:0.191cm;padding-right:0.191cm;"| <center>Narration</center> |
|- | |- | ||
| − | | style="border-top: | + | | style="border:1pt solid #000001;padding-top:0cm;padding-bottom:0cm;padding-left:0.191cm;padding-right:0.191cm;"| Slide 1 |
| − | | style="border-top: | + | | style="border:1pt solid #000001;padding-top:0cm;padding-bottom:0cm;padding-left:0.191cm;padding-right:0.191cm;"| Hello and welcome to the spoken tutorial on '''Installing and running''' '''Gmsh.''' |
|- | |- | ||
| − | | style="border-top: | + | | style="border:1pt solid #000001;padding-top:0cm;padding-bottom:0cm;padding-left:0.191cm;padding-right:0.191cm;"| Slide 2 : Learning Objectives |
| − | | style="border-top: | + | | style="border:1pt solid #000001;padding-top:0cm;padding-bottom:0cm;padding-left:0.191cm;padding-right:0.191cm;"| In this tutorial we will learn to |
* Install and run '''Gmsh''' | * Install and run '''Gmsh''' | ||
| Line 30: | Line 29: | ||
|- | |- | ||
| − | | style="border-top: | + | | style="border:1pt solid #000001;padding-top:0cm;padding-bottom:0cm;padding-left:0.191cm;padding-right:0.191cm;"| Slide 2: Pre-requisite |
| − | | style="border-top: | + | | style="border:1pt solid #000001;padding-top:0cm;padding-bottom:0cm;padding-left:0.191cm;padding-right:0.191cm;"| As a pre-requisite the user should have basic knowledge about mesh. |
|- | |- | ||
| − | | style="border-top: | + | | style="border:1pt solid #000001;padding-top:0cm;padding-bottom:0cm;padding-left:0.191cm;padding-right:0.191cm;"| Slide 3: |
System Requirement | System Requirement | ||
| − | | style="border-top: | + | | style="border:1pt solid #000001;padding-top:0cm;padding-bottom:0cm;padding-left:0.191cm;padding-right:0.191cm;"| To record this tutorial, I am using |
* '''Ubuntu Linux''' Operating system version 13.10. and | * '''Ubuntu Linux''' Operating system version 13.10. and | ||
| Line 45: | Line 44: | ||
|- | |- | ||
| − | | style="border-top:none;border-bottom: | + | | style="border-top:none;border-bottom:1pt solid #000001;border-left:1pt solid #000001;border-right:1pt solid #000001;padding-top:0cm;padding-bottom:0cm;padding-left:0.191cm;padding-right:0.191cm;"| Slide 4: About Gmsh |
| − | | style="border-top:none;border-bottom: | + | | style="border-top:none;border-bottom:1pt solid #000001;border-left:1pt solid #000001;border-right:1pt solid #000001;padding-top:0cm;padding-bottom:0cm;padding-left:0.191cm;padding-right:0.191cm;"| Let me introduce you to Gmsh. |
| Line 58: | Line 57: | ||
|- | |- | ||
| − | | style="border-top:none;border-bottom: | + | | style="border-top:none;border-bottom:1pt solid #000001;border-left:1pt solid #000001;border-right:1pt solid #000001;padding-top:0cm;padding-bottom:0cm;padding-left:0.191cm;padding-right:0.191cm;"| Slide 5 : Advantageous in creating complex geometry using blockMesh |
| − | + | | style="border-top:none;border-bottom:1pt solid #000001;border-left:1pt solid #000001;border-right:1pt solid #000001;padding-top:0cm;padding-bottom:0cm;padding-left:0.191cm;padding-right:0.191cm;"| It is advantageous in creating complex geometries in gmsh than blockmesh utility of OpenFOAM. | |
| − | Advantageous in creating complex | + | |
| − | + | ||
| − | geometry using blockMesh | + | |
| − | | style="border-top:none;border-bottom: | + | |
| Line 72: | Line 67: | ||
|- | |- | ||
| − | | style="border-top:none;border-bottom: | + | | style="border-top:none;border-bottom:1pt solid #000001;border-left:1pt solid #000001;border-right:1pt solid #000001;padding-top:0cm;padding-bottom:0cm;padding-left:0.191cm;padding-right:0.191cm;"| Installing Gmsh |
| Line 79: | Line 74: | ||
Gmsh installed | Gmsh installed | ||
| − | | style="border-top:none;border-bottom: | + | | style="border-top:none;border-bottom:1pt solid #000001;border-left:1pt solid #000001;border-right:1pt solid #000001;padding-top:0cm;padding-bottom:0cm;padding-left:0.191cm;padding-right:0.191cm;"| '''Gmsh''' can be installed using '''Synaptic Package Manager'''. |
| Line 96: | Line 91: | ||
|- | |- | ||
| − | | style="border-top:none;border-bottom: | + | | style="border-top:none;border-bottom:1pt solid #000001;border-left:1pt solid #000001;border-right:1pt solid #000001;padding-top:0cm;padding-bottom:0cm;padding-left:0.191cm;padding-right:0.191cm;"| Open browser |
| − | | style="border-top:none;border-bottom: | + | | style="border-top:none;border-bottom:1pt solid #000001;border-left:1pt solid #000001;border-right:1pt solid #000001;padding-top:0cm;padding-bottom:0cm;padding-left:0.191cm;padding-right:0.191cm;"| Alternately, you can also download '''Gmsh '''from the '''Gmsh '''website. |
| Line 106: | Line 101: | ||
|- | |- | ||
| − | | style="border-top:none;border-bottom: | + | | style="border-top:none;border-bottom:1pt solid #000001;border-left:1pt solid #000001;border-right:1pt solid #000001;padding-top:0cm;padding-bottom:0cm;padding-left:0.191cm;padding-right:0.191cm;"| Type: http://geuz.org/gmsh/ |
| − | | style="border-top:none;border-bottom: | + | | style="border-top:none;border-bottom:1pt solid #000001;border-left:1pt solid #000001;border-right:1pt solid #000001;padding-top:0cm;padding-bottom:0cm;padding-left:0.191cm;padding-right:0.191cm;"| In the address bar, type: http://geuz.org/gmsh/ |
|- | |- | ||
| − | | style="border-top:none;border-bottom: | + | | style="border-top:none;border-bottom:1pt solid #000001;border-left:1pt solid #000001;border-right:1pt solid #000001;padding-top:0cm;padding-bottom:0cm;padding-left:0.191cm;padding-right:0.191cm;"| Scroll down to stable Linux release |
Linux 64-bit | Linux 64-bit | ||
| − | | style="border-top:none;border-bottom: | + | | style="border-top:none;border-bottom:1pt solid #000001;border-left:1pt solid #000001;border-right:1pt solid #000001;padding-top:0cm;padding-bottom:0cm;padding-left:0.191cm;padding-right:0.191cm;"| Scroll down and download the stable '''Linux release,''' according to your '''OS''' type. |
| Line 120: | Line 115: | ||
|- | |- | ||
| − | | style="border-top:none;border-bottom: | + | | style="border-top:none;border-bottom:1pt solid #000001;border-left:1pt solid #000001;border-right:1pt solid #000001;padding-top:0cm;padding-bottom:0cm;padding-left:0.191cm;padding-right:0.191cm;"| Go to Home>> Downloads |
Locate the file gmsh-2.8.4-Linux64.tgz | Locate the file gmsh-2.8.4-Linux64.tgz | ||
| − | | style="border-top:none;border-bottom: | + | | style="border-top:none;border-bottom:1pt solid #000001;border-left:1pt solid #000001;border-right:1pt solid #000001;padding-top:0cm;padding-bottom:0cm;padding-left:0.191cm;padding-right:0.191cm;"| After finishing your download, go to the '''Downloads''' folder. |
|- | |- | ||
| − | | style="border-top:none;border-bottom: | + | | style="border-top:none;border-bottom:1pt solid #000001;border-left:1pt solid #000001;border-right:1pt solid #000001;padding-top:0cm;padding-bottom:0cm;padding-left:0.191cm;padding-right:0.191cm;"| Extract the files |
| − | | style="border-top:none;border-bottom: | + | | style="border-top:none;border-bottom:1pt solid #000001;border-left:1pt solid #000001;border-right:1pt solid #000001;padding-top:0cm;padding-bottom:0cm;padding-left:0.191cm;padding-right:0.191cm;"| Here you can see the tar file. Extract the file. |
| Line 133: | Line 128: | ||
|- | |- | ||
| − | | style="border-top:none;border-bottom: | + | | style="border-top:none;border-bottom:1pt solid #000001;border-left:1pt solid #000001;border-right:1pt solid #000001;padding-top:0cm;padding-bottom:0cm;padding-left:0.191cm;padding-right:0.191cm;"| Open Gmsh folder |
| − | | style="border-top:none;border-bottom: | + | | style="border-top:none;border-bottom:1pt solid #000001;border-left:1pt solid #000001;border-right:1pt solid #000001;padding-top:0cm;padding-bottom:0cm;padding-left:0.191cm;padding-right:0.191cm;"| Open the folder. Go to '''bin''' and click on '''gmsh '''icon. |
|- | |- | ||
| − | | style="border-top:none;border-bottom: | + | | style="border-top:none;border-bottom:1pt solid #000001;border-left:1pt solid #000001;border-right:1pt solid #000001;padding-top:0cm;padding-bottom:0cm;padding-left:0.191cm;padding-right:0.191cm;"| Gmsh start screen |
| − | | style="border-top:none;border-bottom: | + | | style="border-top:none;border-bottom:1pt solid #000001;border-left:1pt solid #000001;border-right:1pt solid #000001;padding-top:0cm;padding-bottom:0cm;padding-left:0.191cm;padding-right:0.191cm;"| You can see the '''Gmsh '''start screen. |
| Line 144: | Line 139: | ||
|- | |- | ||
| − | | style="border-top:none;border-bottom: | + | | style="border-top:none;border-bottom:1pt solid #000001;border-left:1pt solid #000001;border-right:1pt solid #000001;padding-top:0cm;padding-bottom:0cm;padding-left:0.191cm;padding-right:0.191cm;"| Cube |
| − | | style="border-top:none;border-bottom: | + | | style="border-top:none;border-bottom:1pt solid #000001;border-left:1pt solid #000001;border-right:1pt solid #000001;padding-top:0cm;padding-bottom:0cm;padding-left:0.191cm;padding-right:0.191cm;"| Now we will create a cube using '''Gmsh'''. |
|- | |- | ||
| − | | style="border-top:none;border-bottom: | + | | style="border-top:none;border-bottom:1pt solid #000001;border-left:1pt solid #000001;border-right:1pt solid #000001;padding-top:0cm;padding-bottom:0cm;padding-left:0.191cm;padding-right:0.191cm;"| Diagram |
| − | | style="border-top:none;border-bottom: | + | | style="border-top:none;border-bottom:1pt solid #000001;border-left:1pt solid #000001;border-right:1pt solid #000001;padding-top:0cm;padding-bottom:0cm;padding-left:0.191cm;padding-right:0.191cm;"| Here you can see the cube with side equal to one unit. |
|- | |- | ||
| − | | style="border-top:none;border-bottom: | + | | style="border-top:none;border-bottom:1pt solid #000001;border-left:1pt solid #000001;border-right:1pt solid #000001;padding-top:0cm;padding-bottom:0cm;padding-left:0.191cm;padding-right:0.191cm;"| Gmsh window |
| − | | style="border-top:none;border-bottom: | + | | style="border-top:none;border-bottom:1pt solid #000001;border-left:1pt solid #000001;border-right:1pt solid #000001;padding-top:0cm;padding-bottom:0cm;padding-left:0.191cm;padding-right:0.191cm;"| On the left hand, you can see the module tree with '''Geometry, Mesh''' and '''Solver''' as the branches. |
|- | |- | ||
| − | | style="border-top:none;border-bottom: | + | | style="border-top:none;border-bottom:1pt solid #000001;border-left:1pt solid #000001;border-right:1pt solid #000001;padding-top:0cm;padding-bottom:0cm;padding-left:0.191cm;padding-right:0.191cm;"| Click Add |
| − | | style="border-top:none;border-bottom: | + | | style="border-top:none;border-bottom:1pt solid #000001;border-left:1pt solid #000001;border-right:1pt solid #000001;padding-top:0cm;padding-bottom:0cm;padding-left:0.191cm;padding-right:0.191cm;"| Go to '''Geometry > Elementary entitites > Add.''' |
|- | |- | ||
| − | | style="border-top:none;border-bottom: | + | | style="border-top:none;border-bottom:1pt solid #000001;border-left:1pt solid #000001;border-right:1pt solid #000001;padding-top:0cm;padding-bottom:0cm;padding-left:0.191cm;padding-right:0.191cm;"| Enter the coordinates of the cube |
| − | | style="border-top:none;border-bottom: | + | | style="border-top:none;border-bottom:1pt solid #000001;border-left:1pt solid #000001;border-right:1pt solid #000001;padding-top:0cm;padding-bottom:0cm;padding-left:0.191cm;padding-right:0.191cm;"| Click on '''Point. '''A new window will appear. |
|- | |- | ||
| − | | style="border-top:none;border-bottom: | + | | style="border-top:none;border-bottom:1pt solid #000001;border-left:1pt solid #000001;border-right:1pt solid #000001;padding-top:0cm;padding-bottom:0cm;padding-left:0.191cm;padding-right:0.191cm;"| Enter the coordinates |
| − | | style="border-top:none;border-bottom: | + | | style="border-top:none;border-bottom:1pt solid #000001;border-left:1pt solid #000001;border-right:1pt solid #000001;padding-top:0cm;padding-bottom:0cm;padding-left:0.191cm;padding-right:0.191cm;"| Enter the '''X,Y '''and '''Z''' '''coordinates''' starting with (0 0 0) and press Enter. |
|- | |- | ||
| − | | style="border-top:none;border-bottom: | + | | style="border-top:none;border-bottom:1pt solid #000001;border-left:1pt solid #000001;border-right:1pt solid #000001;padding-top:0cm;padding-bottom:0cm;padding-left:0.191cm;padding-right:0.191cm;"| (1 0 0) |
| Line 181: | Line 176: | ||
| − | | style="border-top:none;border-bottom: | + | | style="border-top:none;border-bottom:1pt solid #000001;border-left:1pt solid #000001;border-right:1pt solid #000001;padding-top:0cm;padding-bottom:0cm;padding-left:0.191cm;padding-right:0.191cm;"| IEnter the second coordinates as (1 0 0) and press Enter. |
| Line 196: | Line 191: | ||
|- | |- | ||
| − | | style="border-top:none;border-bottom: | + | | style="border-top:none;border-bottom:1pt solid #000001;border-left:1pt solid #000001;border-right:1pt solid #000001;padding-top:0cm;padding-bottom:0cm;padding-left:0.191cm;padding-right:0.191cm;"| Coordinates |
| − | | style="border-top:none;border-bottom: | + | | style="border-top:none;border-bottom:1pt solid #000001;border-left:1pt solid #000001;border-right:1pt solid #000001;padding-top:0cm;padding-bottom:0cm;padding-left:0.191cm;padding-right:0.191cm;"| I have entered all the eight coordinates |
|- | |- | ||
| − | | style="border-top:none;border-bottom: | + | | style="border-top:none;border-bottom:1pt solid #000001;border-left:1pt solid #000001;border-right:1pt solid #000001;padding-top:0cm;padding-bottom:0cm;padding-left:0.191cm;padding-right:0.191cm;"| Move the points |
| − | | style="border-top:none;border-bottom: | + | | style="border-top:none;border-bottom:1pt solid #000001;border-left:1pt solid #000001;border-right:1pt solid #000001;padding-top:0cm;padding-bottom:0cm;padding-left:0.191cm;padding-right:0.191cm;"| Use the left mouse click to move the points. |
|- | |- | ||
| − | | style="border-top:none;border-bottom: | + | | style="border-top:none;border-bottom:1pt solid #000001;border-left:1pt solid #000001;border-right:1pt solid #000001;padding-top:0cm;padding-bottom:0cm;padding-left:0.191cm;padding-right:0.191cm;"| 8 points visible |
| − | | style="border-top:none;border-bottom: | + | | style="border-top:none;border-bottom:1pt solid #000001;border-left:1pt solid #000001;border-right:1pt solid #000001;padding-top:0cm;padding-bottom:0cm;padding-left:0.191cm;padding-right:0.191cm;"| You can see all the 8 '''coordinates '''as points. |
|- | |- | ||
| − | | style="border-top:none;border-bottom: | + | | style="border-top:none;border-bottom:1pt solid #000001;border-left:1pt solid #000001;border-right:1pt solid #000001;padding-top:0cm;padding-bottom:0cm;padding-left:0.191cm;padding-right:0.191cm;"| Join the points by Straight lines |
| − | | style="border-top:none;border-bottom: | + | | style="border-top:none;border-bottom:1pt solid #000001;border-left:1pt solid #000001;border-right:1pt solid #000001;padding-top:0cm;padding-bottom:0cm;padding-left:0.191cm;padding-right:0.191cm;"| Now, click on the '''Straight line'''. |
|- | |- | ||
| − | | style="border-top:none;border-bottom: | + | | style="border-top:none;border-bottom:1pt solid #000001;border-left:1pt solid #000001;border-right:1pt solid #000001;padding-top:0cm;padding-bottom:0cm;padding-left:0.191cm;padding-right:0.191cm;"| Select start point |
| − | | style="border-top:none;border-bottom: | + | | style="border-top:none;border-bottom:1pt solid #000001;border-left:1pt solid #000001;border-right:1pt solid #000001;padding-top:0cm;padding-bottom:0cm;padding-left:0.191cm;padding-right:0.191cm;"| It wiil ask for '''start point s'''elect the first point. |
|- | |- | ||
| − | | style="border-top:none;border-bottom: | + | | style="border-top:none;border-bottom:1pt solid #000001;border-left:1pt solid #000001;border-right:1pt solid #000001;padding-top:0cm;padding-bottom:0cm;padding-left:0.191cm;padding-right:0.191cm;"| Select end point |
| − | | style="border-top:none;border-bottom: | + | | style="border-top:none;border-bottom:1pt solid #000001;border-left:1pt solid #000001;border-right:1pt solid #000001;padding-top:0cm;padding-bottom:0cm;padding-left:0.191cm;padding-right:0.191cm;"| It wiil ask for '''end point '''select the second point. |
|- | |- | ||
| − | | style="border-top:none;border-bottom: | + | | style="border-top:none;border-bottom:1pt solid #000001;border-left:1pt solid #000001;border-right:1pt solid #000001;padding-top:0cm;padding-bottom:0cm;padding-left:0.191cm;padding-right:0.191cm;"| Straight line |
| − | | style="border-top:none;border-bottom: | + | | style="border-top:none;border-bottom:1pt solid #000001;border-left:1pt solid #000001;border-right:1pt solid #000001;padding-top:0cm;padding-bottom:0cm;padding-left:0.191cm;padding-right:0.191cm;"| A line will be drawn between the two points. |
| Line 227: | Line 222: | ||
|- | |- | ||
| − | | style="border-top:none;border-bottom: | + | | style="border-top:none;border-bottom:1pt solid #000001;border-left:1pt solid #000001;border-right:1pt solid #000001;padding-top:0cm;padding-bottom:0cm;padding-left:0.191cm;padding-right:0.191cm;"| Join all the points |
| − | | style="border-top:none;border-bottom: | + | | style="border-top:none;border-bottom:1pt solid #000001;border-left:1pt solid #000001;border-right:1pt solid #000001;padding-top:0cm;padding-bottom:0cm;padding-left:0.191cm;padding-right:0.191cm;"| Similarly join all the points. |
| Line 234: | Line 229: | ||
|- | |- | ||
| − | | style="border-top:none;border-bottom: | + | | style="border-top:none;border-bottom:1pt solid #000001;border-left:1pt solid #000001;border-right:1pt solid #000001;padding-top:0cm;padding-bottom:0cm;padding-left:0.191cm;padding-right:0.191cm;"| Press q to abort |
| − | | style="border-top:none;border-bottom: | + | | style="border-top:none;border-bottom:1pt solid #000001;border-left:1pt solid #000001;border-right:1pt solid #000001;padding-top:0cm;padding-bottom:0cm;padding-left:0.191cm;padding-right:0.191cm;"| Press '''q''' to abort. |
|- | |- | ||
| − | | style="border-top:none;border-bottom: | + | | style="border-top:none;border-bottom:1pt solid #000001;border-left:1pt solid #000001;border-right:1pt solid #000001;padding-top:0cm;padding-bottom:0cm;padding-left:0.191cm;padding-right:0.191cm;"| Define the faces |
| − | | style="border-top:none;border-bottom: | + | | style="border-top:none;border-bottom:1pt solid #000001;border-left:1pt solid #000001;border-right:1pt solid #000001;padding-top:0cm;padding-bottom:0cm;padding-left:0.191cm;padding-right:0.191cm;"| Now we will define the faces of the cube. |
|- | |- | ||
| − | | style="border-top:none;border-bottom: | + | | style="border-top:none;border-bottom:1pt solid #000001;border-left:1pt solid #000001;border-right:1pt solid #000001;padding-top:0cm;padding-bottom:0cm;padding-left:0.191cm;padding-right:0.191cm;"| Click on Plane Surface |
| − | | style="border-top:none;border-bottom: | + | | style="border-top:none;border-bottom:1pt solid #000001;border-left:1pt solid #000001;border-right:1pt solid #000001;padding-top:0cm;padding-bottom:0cm;padding-left:0.191cm;padding-right:0.191cm;"| Click on '''Plane surface.''' |
| Line 249: | Line 244: | ||
|- | |- | ||
| − | | style="border-top:none;border-bottom: | + | | style="border-top:none;border-bottom:1pt solid #000001;border-left:1pt solid #000001;border-right:1pt solid #000001;padding-top:0cm;padding-bottom:0cm;padding-left:0.191cm;padding-right:0.191cm;"| Select the edges |
| Line 258: | Line 253: | ||
Press e to end selection | Press e to end selection | ||
| − | | style="border-top:none;border-bottom: | + | | style="border-top:none;border-bottom:1pt solid #000001;border-left:1pt solid #000001;border-right:1pt solid #000001;padding-top:0cm;padding-bottom:0cm;padding-left:0.191cm;padding-right:0.191cm;"| Select the edges of the bottom face first. |
| Line 270: | Line 265: | ||
|- | |- | ||
| − | | style="border-top:none;border-bottom: | + | | style="border-top:none;border-bottom:1pt solid #000001;border-left:1pt solid #000001;border-right:1pt solid #000001;padding-top:0cm;padding-bottom:0cm;padding-left:0.191cm;padding-right:0.191cm;"| Face appears with centre lines |
| − | | style="border-top:none;border-bottom: | + | | style="border-top:none;border-bottom:1pt solid #000001;border-left:1pt solid #000001;border-right:1pt solid #000001;padding-top:0cm;padding-bottom:0cm;padding-left:0.191cm;padding-right:0.191cm;"| You will notice the the face appears with dashed centre lines. |
|- | |- | ||
| − | | style="border-top: | + | | style="border:1pt solid #000001;padding-top:0cm;padding-bottom:0cm;padding-left:0.191cm;padding-right:0.191cm;"| Define the top face |
| − | | style="border-top: | + | | style="border:1pt solid #000001;padding-top:0cm;padding-bottom:0cm;padding-left:0.191cm;padding-right:0.191cm;"| Now define the top face. |
| Line 281: | Line 276: | ||
|- | |- | ||
| − | | style="border-top: | + | | style="border:1pt solid #000001;padding-top:0cm;padding-bottom:0cm;padding-left:0.191cm;padding-right:0.191cm;"| Select the remaining faces |
| − | | style="border-top: | + | | style="border:1pt solid #000001;padding-top:0cm;padding-bottom:0cm;padding-left:0.191cm;padding-right:0.191cm;"| Similarly, define the remaining faces. |
| Line 291: | Line 286: | ||
|- | |- | ||
| − | | style="border-top: | + | | style="border:1pt solid #000001;padding-top:0cm;padding-bottom:0cm;padding-left:0.191cm;padding-right:0.191cm;"| Define the Volume |
| − | | style="border-top: | + | | style="border:1pt solid #000001;padding-top:0cm;padding-bottom:0cm;padding-left:0.191cm;padding-right:0.191cm;"| Now, we will define the volume of the cube. |
| Line 298: | Line 293: | ||
|- | |- | ||
| − | | style="border-top: | + | | style="border:1pt solid #000001;padding-top:0cm;padding-bottom:0cm;padding-left:0.191cm;padding-right:0.191cm;"| Select the volume boundary |
| − | | style="border-top: | + | | style="border:1pt solid #000001;padding-top:0cm;padding-bottom:0cm;padding-left:0.191cm;padding-right:0.191cm;"| Select any of the surface boundary and press '''e '''to end selection. |
|- | |- | ||
| − | | style="border-top:none;border-bottom: | + | | style="border-top:none;border-bottom:1pt solid #000001;border-left:1pt solid #000001;border-right:1pt solid #000001;padding-top:0cm;padding-bottom:0cm;padding-left:0.191cm;padding-right:0.191cm;"| Green dot appears at centre |
| − | | style="border-top:none;border-bottom: | + | | style="border-top:none;border-bottom:1pt solid #000001;border-left:1pt solid #000001;border-right:1pt solid #000001;padding-top:0cm;padding-bottom:0cm;padding-left:0.191cm;padding-right:0.191cm;"| A yellow dot appears in the centre of the cube, which represents the volume. |
| Line 309: | Line 304: | ||
|- | |- | ||
| − | | style="border-top:none;border-bottom: | + | | style="border-top:none;border-bottom:1pt solid #000001;border-left:1pt solid #000001;border-right:1pt solid #000001;padding-top:0cm;padding-bottom:0cm;padding-left:0.191cm;padding-right:0.191cm;"| Define physical groups |
| − | | style="border-top:none;border-bottom: | + | | style="border-top:none;border-bottom:1pt solid #000001;border-left:1pt solid #000001;border-right:1pt solid #000001;padding-top:0cm;padding-bottom:0cm;padding-left:0.191cm;padding-right:0.191cm;"| Now, we will define the physical groups. |
| Line 316: | Line 311: | ||
|- | |- | ||
| − | | style="border-top:none;border-bottom: | + | | style="border-top:none;border-bottom:1pt solid #000001;border-left:1pt solid #000001;border-right:1pt solid #000001;padding-top:0cm;padding-bottom:0cm;padding-left:0.191cm;padding-right:0.191cm;"| Define surface first |
| − | | style="border-top:none;border-bottom: | + | | style="border-top:none;border-bottom:1pt solid #000001;border-left:1pt solid #000001;border-right:1pt solid #000001;padding-top:0cm;padding-bottom:0cm;padding-left:0.191cm;padding-right:0.191cm;"| Go to '''Physical Group>Add''' and click on '''Surface.''' |
|- | |- | ||
| − | | style="border-top:none;border-bottom: | + | | style="border-top:none;border-bottom:1pt solid #000001;border-left:1pt solid #000001;border-right:1pt solid #000001;padding-top:0cm;padding-bottom:0cm;padding-left:0.191cm;padding-right:0.191cm;"| Select the surface boundary |
| − | | style="border-top:none;border-bottom: | + | | style="border-top:none;border-bottom:1pt solid #000001;border-left:1pt solid #000001;border-right:1pt solid #000001;padding-top:0cm;padding-bottom:0cm;padding-left:0.191cm;padding-right:0.191cm;"| Select the front surface first press '''e''' to end the selection. |
| Line 327: | Line 322: | ||
|- | |- | ||
| − | | style="border-top:none;border-bottom: | + | | style="border-top:none;border-bottom:1pt solid #000001;border-left:1pt solid #000001;border-right:1pt solid #000001;padding-top:0cm;padding-bottom:0cm;padding-left:0.191cm;padding-right:0.191cm;"| Select the remaining face |
| − | | style="border-top:none;border-bottom: | + | | style="border-top:none;border-bottom:1pt solid #000001;border-left:1pt solid #000001;border-right:1pt solid #000001;padding-top:0cm;padding-bottom:0cm;padding-left:0.191cm;padding-right:0.191cm;"| Similarly, select the remaining surfaces. |
| Line 334: | Line 329: | ||
|- | |- | ||
| − | | style="border-top:none;border-bottom: | + | | style="border-top:none;border-bottom:1pt solid #000001;border-left:1pt solid #000001;border-right:1pt solid #000001;padding-top:0cm;padding-bottom:0cm;padding-left:0.191cm;padding-right:0.191cm;"| Define the volume |
| Line 344: | Line 339: | ||
Dot appears in red | Dot appears in red | ||
| − | | style="border-top:none;border-bottom: | + | | style="border-top:none;border-bottom:1pt solid #000001;border-left:1pt solid #000001;border-right:1pt solid #000001;padding-top:0cm;padding-bottom:0cm;padding-left:0.191cm;padding-right:0.191cm;"| Now, we'll define the physical '''volume.''' |
| Line 356: | Line 351: | ||
|- | |- | ||
| − | | style="border-top:none;border-bottom: | + | | style="border-top:none;border-bottom:1pt solid #000001;border-left:1pt solid #000001;border-right:1pt solid #000001;padding-top:0cm;padding-bottom:0cm;padding-left:0.191cm;padding-right:0.191cm;"| Save you work |
| − | | style="border-top:none;border-bottom: | + | | style="border-top:none;border-bottom:1pt solid #000001;border-left:1pt solid #000001;border-right:1pt solid #000001;padding-top:0cm;padding-bottom:0cm;padding-left:0.191cm;padding-right:0.191cm;"| Our cube is complete let us save our work. |
|- | |- | ||
| − | | style="border-top:none;border-bottom: | + | | style="border-top:none;border-bottom:1pt solid #000001;border-left:1pt solid #000001;border-right:1pt solid #000001;padding-top:0cm;padding-bottom:0cm;padding-left:0.191cm;padding-right:0.191cm;"| Click on save as |
Cube.geo | Cube.geo | ||
| − | | style="border-top:none;border-bottom: | + | | style="border-top:none;border-bottom:1pt solid #000001;border-left:1pt solid #000001;border-right:1pt solid #000001;padding-top:0cm;padding-bottom:0cm;padding-left:0.191cm;padding-right:0.191cm;"| Go to '''File''' menu and click on '''Save as.''' |
| Line 376: | Line 371: | ||
|- | |- | ||
| − | | style="border-top:none;border-bottom: | + | | style="border-top:none;border-bottom:1pt solid #000001;border-left:1pt solid #000001;border-right:1pt solid #000001;padding-top:0cm;padding-bottom:0cm;padding-left:0.191cm;padding-right:0.191cm;"| Slide : Assignment |
| − | | style="border-top:none;border-bottom: | + | | style="border-top:none;border-bottom:1pt solid #000001;border-left:1pt solid #000001;border-right:1pt solid #000001;padding-top:0cm;padding-bottom:0cm;padding-left:0.191cm;padding-right:0.191cm;"| This brings us to the end of the tutorial. |
| Line 383: | Line 378: | ||
|- | |- | ||
| − | | style="border-top:none;border-bottom: | + | | style="border-top:none;border-bottom:1pt solid #000001;border-left:1pt solid #000001;border-right:1pt solid #000001;padding-top:0cm;padding-bottom:0cm;padding-left:0.191cm;padding-right:0.191cm;"| Slide : Summary |
| − | | style="border-top:none;border-bottom: | + | | style="border-top:none;border-bottom:1pt solid #000001;border-left:1pt solid #000001;border-right:1pt solid #000001;padding-top:0cm;padding-bottom:0cm;padding-left:0.191cm;padding-right:0.191cm;"| In this tutorial we learnt : |
| Line 396: | Line 391: | ||
|- | |- | ||
| − | | style="border-top:none;border-bottom: | + | | style="border-top:none;border-bottom:1pt solid #000001;border-left:1pt solid #000001;border-right:1pt solid #000001;padding-top:0cm;padding-bottom:0cm;padding-left:0.191cm;padding-right:0.191cm;"| Slide : |
About Spoken tutorials | About Spoken tutorials | ||
| − | | style="border-top:none;border-bottom: | + | | style="border-top:none;border-bottom:1pt solid #000001;border-left:1pt solid #000001;border-right:1pt solid #000001;padding-top:0cm;padding-bottom:0cm;padding-left:0.191cm;padding-right:0.191cm;"| Watch the video available at this URL: |
http://spoken-tutorial.org/What_is_a_Spoken_Tutorial | http://spoken-tutorial.org/What_is_a_Spoken_Tutorial | ||
| Line 408: | Line 403: | ||
|- | |- | ||
| − | | style="border-top:none;border-bottom: | + | | style="border-top:none;border-bottom:1pt solid #000001;border-left:1pt solid #000001;border-right:1pt solid #000001;padding-top:0cm;padding-bottom:0cm;padding-left:0.191cm;padding-right:0.191cm;"| Slide: |
About Spoken tutorials | About Spoken tutorials | ||
| − | | style="border-top:none;border-bottom: | + | | style="border-top:none;border-bottom:1pt solid #000001;border-left:1pt solid #000001;border-right:1pt solid #000001;padding-top:0cm;padding-bottom:0cm;padding-left:0.191cm;padding-right:0.191cm;"| The Spoken Tutorial Project Team |
-Conducts workshops using spoken tutorials | -Conducts workshops using spoken tutorials | ||
| Line 422: | Line 417: | ||
|- | |- | ||
| − | | style="border-top:none;border-bottom: | + | | style="border-top:none;border-bottom:1pt solid #000001;border-left:1pt solid #000001;border-right:1pt solid #000001;padding-top:0cm;padding-bottom:0cm;padding-left:0.191cm;padding-right:0.191cm;"| Slide: |
Acknowledgement | Acknowledgement | ||
| Line 428: | Line 423: | ||
| − | | style="border-top:none;border-bottom: | + | | style="border-top:none;border-bottom:1pt solid #000001;border-left:1pt solid #000001;border-right:1pt solid #000001;padding-top:0cm;padding-bottom:0cm;padding-left:0.191cm;padding-right:0.191cm;"| Spoken Tutorials are part of Talk to a Teacher project, |
It is supported by the National Mission on Education through ICT, MHRD, Government of India. | It is supported by the National Mission on Education through ICT, MHRD, Government of India. | ||
| Line 437: | Line 432: | ||
|- | |- | ||
| − | | style="border-top:none;border-bottom: | + | | style="border-top:none;border-bottom:1pt solid #000001;border-left:1pt solid #000001;border-right:1pt solid #000001;padding-top:0cm;padding-bottom:0cm;padding-left:0.191cm;padding-right:0.191cm;"| About the contributor |
| − | | style="border-top:none;border-bottom: | + | | style="border-top:none;border-bottom:1pt solid #000001;border-left:1pt solid #000001;border-right:1pt solid #000001;padding-top:0cm;padding-bottom:0cm;padding-left:0.191cm;padding-right:0.191cm;"| This is Gautam Sharma from IIT BOMBAY signing off. |
Thanks for joining. | Thanks for joining. | ||
|} | |} | ||
Revision as of 12:50, 6 August 2014
Tutorial: Installing and runing Gmsh
Script and Narration: Gautam Sharma
Keywords: Gmsh.
| |
|
| Slide 1 | Hello and welcome to the spoken tutorial on Installing and running Gmsh. |
| Slide 2 : Learning Objectives
|
In this tutorial we will learn to
|
| Slide 2: Pre-requisite | As a pre-requisite the user should have basic knowledge about mesh. |
| Slide 3:
System Requirement |
To record this tutorial, I am using
|
| Slide 4: About Gmsh
|
Let me introduce you to Gmsh.
|
| Slide 5 : Advantageous in creating complex geometry using blockMesh | It is advantageous in creating complex geometries in gmsh than blockmesh utility of OpenFOAM.
|
| Installing Gmsh
|
Gmsh can be installed using Synaptic Package Manager.
It will ask for your password. Type in your password.
|
| Open browser
|
Alternately, you can also download Gmsh from the Gmsh website.
|
| Type: http://geuz.org/gmsh/ | In the address bar, type: http://geuz.org/gmsh/ |
| Scroll down to stable Linux release
|
Scroll down and download the stable Linux release, according to your OS type.
|
| Go to Home>> Downloads
Locate the file gmsh-2.8.4-Linux64.tgz |
After finishing your download, go to the Downloads folder. |
| Extract the files | Here you can see the tar file. Extract the file.
|
| Open Gmsh folder | Open the folder. Go to bin and click on gmsh icon. |
| Gmsh start screen | You can see the Gmsh start screen.
|
| Cube | Now we will create a cube using Gmsh. |
| Diagram | Here you can see the cube with side equal to one unit. |
| Gmsh window | On the left hand, you can see the module tree with Geometry, Mesh and Solver as the branches. |
| Click Add | Go to Geometry > Elementary entitites > Add. |
| Enter the coordinates of the cube | Click on Point. A new window will appear. |
| Enter the coordinates | Enter the X,Y and Z coordinates starting with (0 0 0) and press Enter. |
| (1 0 0)
|
IEnter the second coordinates as (1 0 0) and press Enter.
|
| Coordinates | I have entered all the eight coordinates |
| Move the points | Use the left mouse click to move the points. |
| 8 points visible | You can see all the 8 coordinates as points. |
| Join the points by Straight lines | Now, click on the Straight line. |
| Select start point | It wiil ask for start point select the first point. |
| Select end point | It wiil ask for end point select the second point. |
| Straight line | A line will be drawn between the two points.
|
| Join all the points | Similarly join all the points.
|
| Press q to abort | Press q to abort. |
| Define the faces | Now we will define the faces of the cube. |
| Click on Plane Surface | Click on Plane surface.
|
| Select the edges
appear in red
|
Select the edges of the bottom face first.
|
| Face appears with centre lines | You will notice the the face appears with dashed centre lines. |
| Define the top face | Now define the top face.
|
| Select the remaining faces
|
Similarly, define the remaining faces.
|
| Define the Volume | Now, we will define the volume of the cube.
|
| Select the volume boundary | Select any of the surface boundary and press e to end selection. |
| Green dot appears at centre | A yellow dot appears in the centre of the cube, which represents the volume.
|
| Define physical groups | Now, we will define the physical groups.
|
| Define surface first | Go to Physical Group>Add and click on Surface. |
| Select the surface boundary | Select the front surface first press e to end the selection.
|
| Select the remaining face | Similarly, select the remaining surfaces.
|
| Define the volume
|
Now, we'll define the physical volume.
|
| Save you work | Our cube is complete let us save our work. |
| Click on save as
|
Go to File menu and click on Save as.
|
| Slide : Assignment | This brings us to the end of the tutorial.
|
| Slide : Summary
|
In this tutorial we learnt :
|
| Slide :
About Spoken tutorials |
Watch the video available at this URL:
http://spoken-tutorial.org/What_is_a_Spoken_Tutorial It summarizes the Spoken Tutorial project. If you do not have good bandwidth, you can download and watch it. |
| Slide:
About Spoken tutorials |
The Spoken Tutorial Project Team
-Conducts workshops using spoken tutorials -Gives certificates to those who pass an online test -For more details, please write to contact@spoken-tutorial.org |
| Slide:
Acknowledgement
|
Spoken Tutorials are part of Talk to a Teacher project,
It is supported by the National Mission on Education through ICT, MHRD, Government of India. This project is coordinated by http://spoken-tutorial More information on the same is available at the following URL link http://spoken-tutorial.org/NMEICT-Intro |
| About the contributor | This is Gautam Sharma from IIT BOMBAY signing off.
Thanks for joining. |