Difference between revisions of "OpenFOAM/C3/Installing-and-running-Gmsh/English"
Nancyvarkey (Talk | contribs) |
|||
Line 21: | Line 21: | ||
− | | 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 | + | | 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 how to |
* Install and run '''Gmsh''' | * Install and run '''Gmsh''' | ||
* and create a basic geometry in '''Gmsh''' | * and create a basic geometry in '''Gmsh''' | ||
− | |||
|- | |- | ||
| 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:1pt solid #000001;padding-top:0cm;padding-bottom:0cm;padding-left:0.191cm;padding-right:0.191cm;"| Slide 2: Pre-requisite | ||
− | | 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: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'''. |
|- | |- | ||
Line 40: | Line 39: | ||
* '''Ubuntu Linux''' Operating system version 13.10. and | * '''Ubuntu Linux''' Operating system version 13.10. and | ||
* '''Gmsh''' version 2.8.4 | * '''Gmsh''' version 2.8.4 | ||
− | |||
− | |||
|- | |- | ||
Line 48: | Line 45: | ||
− | | 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. | + | | 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'''. |
− | '''Gmsh '''is an automatic 3-D finite element mesh generator, with built-in pre and post-processing facilities. | + | '''Gmsh '''is |
− | + | * an automatic 3-D finite element mesh generator, | |
− | + | * with built-in pre and post-processing facilities. | |
− | + | * It's an Open-source software. | |
|- | |- | ||
| 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;"| 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. | + | | 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'''. | ||
+ | *like '''blades''', '''aerofoil.''' | ||
+ | *'''OpenFOAM '''supports importing mesh from third party meshing software like '''Gmsh.''' | ||
+ | |- | ||
+ | | 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 | ||
− | + | | 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 show you how to install '''Gmsh'''. | |
+ | '''Gmsh'''can be installed using '''Synaptic Package Manager'''. | ||
− | |||
|- | |- | ||
− | | 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;"| | + | | 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;"| Synaptic Package Manager |
− | + | ||
− | + | ||
− | Synaptic Package Manager | + | |
− | + | ||
Gmsh installed | Gmsh installed | ||
− | |||
− | |||
− | Let me open '''Synaptic Package Manager''' for you. | + | | 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 open '''Synaptic Package Manager''' for you. |
It will ask for your password. Type in your password. | It will ask for your password. Type in your password. | ||
− | In search box type gmsh. Click on the checkbox in front of | + | In search box type '''gmsh'''. Click on the checkbox in front of '''gmsh'''. And click on '''Mark for installation'''. |
+ | Click on '''Apply'''. | ||
− | + | Click on '''Apply'''. | |
+ | This might take some time. | ||
+ | |||
+ | Your '''Gmsh '''is now installed. | ||
|- | |- | ||
Line 98: | Line 98: | ||
− | Let me open the '''browser | + | Let me open the '''browser''' for you. |
|- | |- | ||
| 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: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: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: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/''' |
+ | |||
+ | Press '''Enter.''' | ||
+ | |||
|- | |- | ||
Line 109: | Line 112: | ||
Linux 64-bit | Linux 64-bit | ||
− | | 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 | + | | 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 Downloads and select the current stable '''release''' according to your operating system. |
− | I will | + | I will select '''Linux 64-bit'''. Click on '''Save file''' and press '''Ok'''. |
|- | |- | ||
Line 122: | Line 125: | ||
|- | |- | ||
| 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: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: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. | + | | 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 129: | Line 132: | ||
|- | |- | ||
| 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: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: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: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: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: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: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. | | 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. | ||
− | |||
Let me go back to the slides. | Let me go back to the slides. | ||
Line 148: | Line 152: | ||
|- | |- | ||
| 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: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: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''' | + | | 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 switch back to '''Gmsh'''. |
+ | |||
+ | |||
+ | On the left hand, you can see the '''module tree''' with '''Geometry, Mesh''' and '''Solver'''. | ||
|- | |- | ||
| 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: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: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 | + | | 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.''' |
|- | |- | ||
Line 160: | Line 167: | ||
|- | |- | ||
| 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: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: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: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'''. |
|- | |- | ||
Line 176: | Line 183: | ||
− | | 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;"| | + | | 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 second coordinates as (1 0 0) and press '''Enter.''' |
− | The | + | The third coordinate as (1 1 0) press '''Enter'''. |
− | The | + | The fourth coordinate as (0 1 0) press '''Enter'''. |
− | Similarly, enter the '''coordinates''' for the positive z-direction starting with (0 0 1) | + | Similarly, enter the '''coordinates''' for the positive z-direction starting with (0 0 1) press '''Enter'''. |
Line 192: | Line 199: | ||
|- | |- | ||
| 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: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: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: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. |
|- | |- | ||
Line 204: | Line 211: | ||
|- | |- | ||
| 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: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: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 | + | | 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 '''Straight line'''. |
|- | |- | ||
| 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: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: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 | + | | 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 '''. |
+ | Select the first point. | ||
|- | |- | ||
| 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: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: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 ''' | + | | 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. | ||
|- | |- | ||
Line 219: | Line 229: | ||
− | Similarly join all the points | + | Similarly, join all the points. |
|- | |- | ||
| 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: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: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;"| | + | | 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 joined all the points. |
− | + | ||
− | + | ||
− | I have joined all the points. | + | |
|- | |- | ||
Line 259: | Line 266: | ||
− | It will ask for | + | It will ask for '''hole''' boundaries, if any. |
− | Since we don't have ''' | + | Since we don't have any '''hole''' in the boundary, press '''e''' to end the selection. |
|- | |- | ||
| 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: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: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 | + | | 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 will appear with dashed centre lines. |
|- | |- | ||
Line 298: | Line 305: | ||
|- | |- | ||
| 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: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: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 | + | | 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 at the centre of the cube, which represents the volume. |
Line 305: | Line 312: | ||
|- | |- | ||
| 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: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: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 | + | | 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, which will be used in exporting the geometry to '''OpenFOAM.''' |
− | + | ||
− | + | ||
− | + | ||
|- | |- | ||
| 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: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: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 | + | | 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: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: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: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 | + | | 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. |
− | Select the back surface | + | Select the back surface. Press '''e '''to end the selection. |
|- | |- | ||
Line 326: | Line 330: | ||
− | I have selected all the surfaces | + | I have selected all the surfaces. Press '''q''' to abort. |
|- | |- | ||
Line 342: | Line 346: | ||
− | Click on '''Volume.''' | + | Click on '''Volume.''' It will ask for volume. |
Line 348: | Line 352: | ||
− | The yellow dot will turn red in color. Press '''e '''to end selection. | + | The yellow dot will turn red in color. Press '''e '''to end selection. Press '''q''' to abort. |
|- | |- | ||
| 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: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: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 | + | | 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. |
|- | |- | ||
Line 359: | Line 363: | ||
Cube.geo | Cube.geo | ||
− | | 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''' | + | | 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''' - '''Save as.''' |
Line 365: | Line 369: | ||
− | Note that here '''geo '''stands for | + | Note that here '''geo '''stands for '''geometry'''. |
− | Click | + | Click '''Ok'''. |
+ | |||
+ | Click '''Ok'''. | ||
|- | |- | ||
| 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: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: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;"| | + | | 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 switch back to the slides. |
− | As an '''assignment''' | + | This brings us to the end of the tutorial. |
+ | |||
+ | |||
+ | As an '''assignment''' create other simple geometry in '''Gmsh''' like cylinder and sphere. | ||
|- | |- | ||
Line 385: | Line 394: | ||
− | * 2 ways to install '''Gmsh''' using Synaptic Package Manager and website. | + | * 2 ways to install and run '''Gmsh''' using Synaptic Package Manager and website. |
* Created a cube using '''Gmsh'''. | * Created a cube using '''Gmsh'''. | ||
− | |||
Revision as of 22:00, 7 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 how 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 |
|
Installing Gmsh | Let me show you how to install Gmsh.
Gmshcan be installed using Synaptic Package Manager.
|
Synaptic Package Manager
Gmsh installed |
Let me open Synaptic Package Manager for you.
It will ask for your password. Type in your password.
Click on Apply. Click on Apply.
|
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/
Press Enter.
|
Scroll down to stable Linux release
|
Scroll down to Downloads and select the current stable release according to your operating system.
|
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.
Let me go back to the slides. |
Cube | Now we will create a cube using Gmsh. |
Diagram | Here you can see the cube with side equal to one unit. |
Gmsh window | Let me switch back to Gmsh.
|
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)
|
Enter 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 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 | I have joined 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 will appear 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 at the centre of the cube, which represents the volume.
|
Define physical groups | Now, we will define the physical groups, which will be used in exporting the geometry to OpenFOAM. |
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 - Save as.
Click Ok. |
Slide : Assignment | Let me switch back to the slides.
|
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. |