Difference between revisions of "OpenFOAM/C2/Creating-simple-geometry-in-OpenFOAM/English"
Nancyvarkey (Talk | contribs) |
Nancyvarkey (Talk | contribs) |
||
(9 intermediate revisions by one other user not shown) | |||
Line 15: | Line 15: | ||
| style="border-top:none;border-bottom:0.05pt solid #000000;border-left:0.05pt solid #000000;border-right:0.05pt solid #000000;padding:0.097cm;"| Hello and welcome to the spoken tutorial on '''creating a simple geometry in OpenFOAM''' | | style="border-top:none;border-bottom:0.05pt solid #000000;border-left:0.05pt solid #000000;border-right:0.05pt solid #000000;padding:0.097cm;"| Hello and welcome to the spoken tutorial on '''creating a simple geometry in OpenFOAM''' | ||
+ | |||
|- | |- | ||
| style="border-top:none;border-bottom:0.05pt solid #000000;border-left:0.05pt solid #000000;border-right:none;padding:0.097cm;"| Slide 2: Learning Objective | | style="border-top:none;border-bottom:0.05pt solid #000000;border-left:0.05pt solid #000000;border-right:none;padding:0.097cm;"| Slide 2: Learning Objective | ||
Line 20: | Line 21: | ||
*How to create a '''simple geometry''' | *How to create a '''simple geometry''' | ||
− | *How to view geometry in ''' | + | *How to view the '''geometry''' in '''ParaView ''' |
|- | |- | ||
| style="border-top:none;border-bottom:0.05pt solid #000000;border-left:0.05pt solid #000000;border-right:none;padding:0.097cm;"| Slide 3: System Requirement | | style="border-top:none;border-bottom:0.05pt solid #000000;border-left:0.05pt solid #000000;border-right:none;padding:0.097cm;"| Slide 3: System Requirement | ||
| style="border-top:none;border-bottom:0.05pt solid #000000;border-left:0.05pt solid #000000;border-right:0.05pt solid #000000;padding:0.097cm;"| To record this tutorial I am using | | style="border-top:none;border-bottom:0.05pt solid #000000;border-left:0.05pt solid #000000;border-right:0.05pt solid #000000;padding:0.097cm;"| To record this tutorial I am using | ||
− | *'''Linux | + | *'''Linux operating system Ubuntu 10.04''' |
− | *'''OpenFOAM version 2.1.0 ''' | + | *'''OpenFOAM version 2.1.0''' |
− | *'''ParaView version 3.12.0 ''' | + | *'''ParaView version 3.12.0''' |
|- | |- | ||
Line 45: | Line 46: | ||
run>> tutorials >> incompressible>> icoFoam >>cavity | run>> tutorials >> incompressible>> icoFoam >>cavity | ||
− | | style="border-top:none;border-bottom:0.05pt solid #000000;border-left:0.05pt solid #000000;border-right:0.05pt solid #000000;padding:0.097cm;"| In '''CFD''' the '''Pre-processing''' part consists of creating | + | | style="border-top:none;border-bottom:0.05pt solid #000000;border-left:0.05pt solid #000000;border-right:0.05pt solid #000000;padding:0.097cm;"| In '''CFD''' the '''Pre-processing''' part consists of creating '''geometry''' and '''meshing''' it. |
− | + | ||
− | + | ||
− | + | Let us take the '''Lid driven cavity case''' as an example. | |
− | the path for '''lid driven cavity'''. | + | I have already opened the '''command terminal''' and entered the path for '''lid driven cavity'''. |
|- | |- | ||
| style="border-top:none;border-bottom:0.05pt solid #000000;border-left:0.05pt solid #000000;border-right:none;padding:0.097cm;"| Slide 5: For OpenFOAM v 5.0 | | style="border-top:none;border-bottom:0.05pt solid #000000;border-left:0.05pt solid #000000;border-right:none;padding:0.097cm;"| Slide 5: For OpenFOAM v 5.0 | ||
− | + | To source the OpenFOAM version 5, type: | |
'''$of5 ''' | '''$of5 ''' | ||
Line 78: | Line 77: | ||
constant>>polyMesh | constant>>polyMesh | ||
− | | style="border-top:none;border-bottom:0.05pt solid #000000;border-left:0.05pt solid #000000;border-right:0.05pt solid #000000;padding:0.097cm;"| There are three | + | | style="border-top:none;border-bottom:0.05pt solid #000000;border-left:0.05pt solid #000000;border-right:0.05pt solid #000000;padding:0.097cm;"| There are three '''folders 0,constant''' and '''system'''. |
− | '''Geometry''' is inside the '''polymesh''' | + | '''Geometry''' is inside the '''polymesh folder''' of '''constant'''. |
|- | |- | ||
| style="border-top:none;border-bottom:0.05pt solid #000000;border-left:0.05pt solid #000000;border-right:none;padding:0.097cm;"| Terminal window: type cd constant | | style="border-top:none;border-bottom:0.05pt solid #000000;border-left:0.05pt solid #000000;border-right:none;padding:0.097cm;"| Terminal window: type cd constant | ||
− | | style="border-top:none;border-bottom:0.05pt solid #000000;border-left:0.05pt solid #000000;border-right:0.05pt solid #000000;padding:0.097cm;"| In the '''command terminal''' type '''cd constant''' and press '''Enter'''. | + | | style="border-top:none;border-bottom:0.05pt solid #000000;border-left:0.05pt solid #000000;border-right:0.05pt solid #000000;padding:0.097cm;"| In the '''command terminal''' type '''cd space constant''' and press '''Enter'''. |
|- | |- | ||
| style="border-top:none;border-bottom:0.05pt solid #000000;border-left:0.05pt solid #000000;border-right:none;padding:0.097cm;"| Type ls | | style="border-top:none;border-bottom:0.05pt solid #000000;border-left:0.05pt solid #000000;border-right:none;padding:0.097cm;"| Type ls | ||
− | | style="border-top:none;border-bottom:0.05pt solid #000000;border-left:0.05pt solid #000000;border-right:0.05pt solid #000000;padding:0.097cm;"| | + | | style="border-top:none;border-bottom:0.05pt solid #000000;border-left:0.05pt solid #000000;border-right:0.05pt solid #000000;padding:0.097cm;"| Now type '''ls''' and press '''Enter'''. |
− | In this there is another folder called as''' polymesh'''. | + | In this there is another '''folder''' called as''' polymesh'''. |
|- | |- | ||
Line 99: | Line 98: | ||
|- | |- | ||
| style="border-top:none;border-bottom:0.05pt solid #000000;border-left:0.05pt solid #000000;border-right:none;padding:0.097cm;"| Type ls | | style="border-top:none;border-bottom:0.05pt solid #000000;border-left:0.05pt solid #000000;border-right:none;padding:0.097cm;"| Type ls | ||
− | | style="border-top:none;border-bottom:0.05pt solid #000000;border-left:0.05pt solid #000000;border-right:0.05pt solid #000000;padding:0.097cm;"| | + | | style="border-top:none;border-bottom:0.05pt solid #000000;border-left:0.05pt solid #000000;border-right:0.05pt solid #000000;padding:0.097cm;"| Now type '''ls''' and press '''Enter'''. |
+ | |||
|- | |- | ||
| style="border-top:none;border-bottom:0.05pt solid #000000;border-left:0.05pt solid #000000;border-right:none;padding:0.097cm;"| Slide 6: For OpenFOAM v 5.0 | | style="border-top:none;border-bottom:0.05pt solid #000000;border-left:0.05pt solid #000000;border-right:none;padding:0.097cm;"| Slide 6: For OpenFOAM v 5.0 | ||
− | To list the contents of the '''cavity''' directory, type: | + | To list the contents of the '''cavity''' directory, type: '''$ls''' |
− | + | ||
− | '''$ls''' | + | |
'''0 constant system''' | '''0 constant system''' | ||
− | To open the system directory, type: | + | To open the system directory, type: '''$cd system''' |
− | + | ||
− | '''$cd system''' | + | |
To list the contents of the system directory, type: | To list the contents of the system directory, type: | ||
Line 123: | Line 119: | ||
− | + | ||
| style="border-top:none;border-bottom:0.05pt solid #000000;border-left:0.05pt solid #000000;border-right:0.05pt solid #000000;padding:0.097cm;"| This contains the '''geometry''' file called as '''blockMeshDict'''. | | style="border-top:none;border-bottom:0.05pt solid #000000;border-left:0.05pt solid #000000;border-right:0.05pt solid #000000;padding:0.097cm;"| This contains the '''geometry''' file called as '''blockMeshDict'''. | ||
Open the '''blockMeshDict''' file with any '''editor''' of your choice. | Open the '''blockMeshDict''' file with any '''editor''' of your choice. | ||
− | In the '''terminal''' type '''gedit blockMeshDict'''. | + | |- |
+ | | style="border-top:none;border-bottom:0.05pt solid #000000;border-left:0.05pt solid #000000;border-right:none;padding:0.097cm;"| Type gedit blockMeshDict | ||
+ | |||
+ | |||
+ | | style="border-top:none;border-bottom:0.05pt solid #000000;border-left:0.05pt solid #000000;border-right:0.05pt solid #000000;padding:0.097cm;"| In the '''terminal''' type '''gedit blockMeshDict'''. | ||
Note that '''M''' and '''D''' here are capital and press '''Enter'''. | Note that '''M''' and '''D''' here are capital and press '''Enter'''. | ||
− | Let me drag this to the '''capture area'''. | + | |- |
+ | | style="border-top:none;border-bottom:0.05pt solid #000000;border-left:0.05pt solid #000000;border-right:none;padding:0.097cm;"| Drag the window to the capture area | ||
+ | |||
+ | |||
+ | | style="border-top:none;border-bottom:0.05pt solid #000000;border-left:0.05pt solid #000000;border-right:0.05pt solid #000000;padding:0.097cm;"| Let me drag this to the '''capture area'''. | ||
Now minimise this. | Now minimise this. | ||
Line 142: | Line 146: | ||
|- | |- | ||
| style="border-top:none;border-bottom:0.05pt solid #000000;border-left:0.05pt solid #000000;border-right:none;padding:0.097cm;"| Hover over the diagram | | style="border-top:none;border-bottom:0.05pt solid #000000;border-left:0.05pt solid #000000;border-right:none;padding:0.097cm;"| Hover over the diagram | ||
− | | style="border-top:none;border-bottom:0.05pt solid #000000;border-left:0.05pt solid #000000;border-right:0.05pt solid #000000;padding:0.097cm;"| In '''OpenFoam''' the entire geometry is broken into '''blocks.''' | + | | style="border-top:none;border-bottom:0.05pt solid #000000;border-left:0.05pt solid #000000;border-right:0.05pt solid #000000;padding:0.097cm;"| In '''OpenFoam''' the entire '''geometry''' is broken into '''blocks.''' |
|- | |- | ||
Line 154: | Line 158: | ||
|- | |- | ||
| style="border-top:none;border-bottom:0.05pt solid #000000;border-left:0.05pt solid #000000;border-right:none;padding:0.097cm;"| Dimension of Cavity | | style="border-top:none;border-bottom:0.05pt solid #000000;border-left:0.05pt solid #000000;border-right:none;padding:0.097cm;"| Dimension of Cavity | ||
− | | style="border-top:none;border-bottom:0.05pt solid #000000;border-left:0.05pt solid #000000;border-right:0.05pt solid #000000;padding:0.097cm;"| '''Lid driven cavity''' is of '''length 1 and height 1'''. | + | | style="border-top:none;border-bottom:0.05pt solid #000000;border-left:0.05pt solid #000000;border-right:0.05pt solid #000000;padding:0.097cm;"| '''Lid driven cavity''' is of '''length 1''' and '''height 1'''. |
Line 163: | Line 167: | ||
right click >create document>empty file | right click >create document>empty file | ||
− | | style="border-top:none;border-bottom:0.05pt solid #000000;border-left:0.05pt solid #000000;border-right:0.05pt solid #000000;padding:0.097cm;"| On your ''' | + | | style="border-top:none;border-bottom:0.05pt solid #000000;border-left:0.05pt solid #000000;border-right:0.05pt solid #000000;padding:0.097cm;"| On your '''Desktop''' create an '''empty file''' by '''right click > create document > Empty file ''' |
+ | |- | ||
+ | | style="border-top:none;border-bottom:0.05pt solid #000000;border-left:0.05pt solid #000000;border-right:none;padding:0.097cm;"| Name the file | ||
− | + | right click >create document>empty file | |
− | + | | style="border-top:none;border-bottom:0.05pt solid #000000;border-left:0.05pt solid #000000;border-right:0.05pt solid #000000;padding:0.097cm;"| Name this as '''block Mesh Dict.''' | |
− | + | (Note that '''M''' and '''D''' here are capital) | |
− | + | ||
− | + | ||
|- | |- | ||
Line 178: | Line 182: | ||
upto convertToMeters | upto convertToMeters | ||
+ | |||
+ | |||
+ | |||
+ | Paste | ||
| style="border-top:none;border-bottom:0.05pt solid #000000;border-left:0.05pt solid #000000;border-right:0.05pt solid #000000;padding:0.097cm;"|Open this. | | style="border-top:none;border-bottom:0.05pt solid #000000;border-left:0.05pt solid #000000;border-right:0.05pt solid #000000;padding:0.097cm;"|Open this. | ||
Line 186: | Line 194: | ||
Copy this and paste it here. | Copy this and paste it here. | ||
+ | |||
Scroll down. | Scroll down. | ||
Line 191: | Line 200: | ||
Now leave some space after '''convertTometers'''. | Now leave some space after '''convertTometers'''. | ||
− | + | |- | |
+ | | style="border-top:none;border-bottom:0.05pt solid #000000;border-left:0.05pt solid #000000;border-right:none;padding:0.097cm;"| Type 1 | ||
− | + | Type ; >> Enter | |
− | |||
− | |||
− | |||
+ | Enter | ||
+ | | style="border-top:none;border-bottom:0.05pt solid #000000;border-left:0.05pt solid #000000;border-right:0.05pt solid #000000;padding:0.097cm;"|Enter '''1''' as the '''geometry''' is in '''meters'''. | ||
− | type vertices | + | Insert a '''semi-colon''' and press '''Enter'''. |
− | | style="border-top:none;border-bottom:0.05pt solid #000000;border-left:0.05pt solid #000000;border-right:0.05pt solid #000000;padding:0.097cm;"| In the file type '''vertices''' and press '''Enter'''. | + | |
+ | |||
+ | Again press '''Enter'''. | ||
+ | |- | ||
+ | | style="border-top:none;border-bottom:0.05pt solid #000000;border-left:0.05pt solid #000000;border-right:none;padding:0.097cm;"| In the blockMeshDict file >>type vertices | ||
+ | | style="border-top:none;border-bottom:0.05pt solid #000000;border-left:0.05pt solid #000000;border-right:0.05pt solid #000000;padding:0.097cm;"| In the file, type '''vertices''' and press '''Enter'''. | ||
|- | |- | ||
| style="border-top:none;border-bottom:0.05pt solid #000000;border-left:0.05pt solid #000000;border-right:none;padding:0.097cm;"| Insert ( | | style="border-top:none;border-bottom:0.05pt solid #000000;border-left:0.05pt solid #000000;border-right:none;padding:0.097cm;"| Insert ( | ||
+ | |||
+ | Enter >> Tab key | ||
| style="border-top:none;border-bottom:0.05pt solid #000000;border-left:0.05pt solid #000000;border-right:0.05pt solid #000000;padding:0.097cm;"| Insert the '''open bracket''' and press '''Enter'''. | | style="border-top:none;border-bottom:0.05pt solid #000000;border-left:0.05pt solid #000000;border-right:0.05pt solid #000000;padding:0.097cm;"| Insert the '''open bracket''' and press '''Enter'''. | ||
Line 213: | Line 229: | ||
− | |||
− | + | | style="border-top:none;border-bottom:0.05pt solid #000000;border-left:0.05pt solid #000000;border-right:0.05pt solid #000000;padding:0.097cm;"| Start with point '''0'''. | |
− | + | ||
− | | style="border-top:none;border-bottom:0.05pt solid #000000;border-left:0.05pt solid #000000;border-right:0.05pt solid #000000;padding:0.097cm;"| Start with '''0''' | + | |
Insert open close brackets. | Insert open close brackets. | ||
− | Enter | + | '''Enter'''. |
+ | |- | ||
+ | | style="border-top:none;border-bottom:0.05pt solid #000000;border-left:0.05pt solid #000000;border-right:none;padding:0.097cm;"| Type (0 0 0) >> '''Tab''' key>> Open close bracket >> move to positive x axis | ||
+ | |||
+ | |||
+ | enter (1 0 0) >> '''Enter''' | ||
+ | | style="border-top:none;border-bottom:0.05pt solid #000000;border-left:0.05pt solid #000000;border-right:0.05pt solid #000000;padding:0.097cm;"| | ||
'''(0 space 0 space 0) '''and press '''Enter'''. | '''(0 space 0 space 0) '''and press '''Enter'''. | ||
Line 251: | Line 270: | ||
| style="border-top:none;border-bottom:0.05pt solid #000000;border-left:0.05pt solid #000000;border-right:none;padding:0.097cm;"| Point 4 in the front face | | style="border-top:none;border-bottom:0.05pt solid #000000;border-left:0.05pt solid #000000;border-right:none;padding:0.097cm;"| Point 4 in the front face | ||
− | enter ( | + | enter (0 0 0.1) >> '''Enter''' |
| style="border-top:none;border-bottom:0.05pt solid #000000;border-left:0.05pt solid #000000;border-right:0.05pt solid #000000;padding:0.097cm;"| Again press the '''Tab''' key. | | style="border-top:none;border-bottom:0.05pt solid #000000;border-left:0.05pt solid #000000;border-right:0.05pt solid #000000;padding:0.097cm;"| Again press the '''Tab''' key. | ||
− | Enter the 4th point on the '''front face. | + | Enter the 4th point on the '''front face'''. |
− | Open close bracket. (0 space 0 space 0.1)''' | + | Open close bracket. '''(0 space 0 space 0.1)''' |
And press '''Enter'''. | And press '''Enter'''. | ||
Line 266: | Line 285: | ||
|- | |- | ||
| style="border-top:none;border-bottom:0.05pt solid #000000;border-left:0.05pt solid #000000;border-right:none;padding:0.097cm;"| Inert ) and ; | | style="border-top:none;border-bottom:0.05pt solid #000000;border-left:0.05pt solid #000000;border-right:none;padding:0.097cm;"| Inert ) and ; | ||
− | | style="border-top:none;border-bottom:0.05pt solid #000000;border-left:0.05pt solid #000000;border-right:0.05pt solid #000000;padding:0.097cm;"| Close the | + | | style="border-top:none;border-bottom:0.05pt solid #000000;border-left:0.05pt solid #000000;border-right:0.05pt solid #000000;padding:0.097cm;"| Close the bracket and insert a '''semicolon''' after it. |
Press '''Enter'''. | Press '''Enter'''. | ||
Line 279: | Line 298: | ||
Type '''blocks''' and press '''Enter'''. | Type '''blocks''' and press '''Enter'''. | ||
+ | |||
Insert an open bracket and press '''Enter'''. | Insert an open bracket and press '''Enter'''. | ||
− | Let me switch back to the slides. | + | |- |
+ | | style="border-top:none;border-bottom:0.05pt solid #000000;border-left:0.05pt solid #000000;border-right:none;padding:0.097cm;"| Back to slides. | ||
+ | |||
+ | |||
+ | | style="border-top:none;border-bottom:0.05pt solid #000000;border-left:0.05pt solid #000000;border-right:0.05pt solid #000000;padding:0.097cm;"|Let me switch back to the slides. | ||
− | Note that Lid driven cavity is taken as a '''single block ''' | + | Note that '''Lid driven cavity''' is taken as a '''single block ''' |
|- | |- | ||
− | | style="border-top:none;border-bottom:0.05pt solid #000000;border-left:0.05pt solid #000000;border-right:none;padding:0.097cm;"| | + | | style="border-top:none;border-bottom:0.05pt solid #000000;border-left:0.05pt solid #000000;border-right:none;padding:0.097cm;"| Switch back to '''blockMeshDict'''. |
+ | Enter the vertices of block | ||
− | + | ||
+ | hex (0 1 2 3 4 5 6 7 ) total 8 points | ||
| style="border-top:none;border-bottom:0.05pt solid #000000;border-left:0.05pt solid #000000;border-right:0.05pt solid #000000;padding:0.097cm;"| Let me switch back to '''blockMeshDict'''. | | style="border-top:none;border-bottom:0.05pt solid #000000;border-left:0.05pt solid #000000;border-right:0.05pt solid #000000;padding:0.097cm;"| Let me switch back to '''blockMeshDict'''. | ||
− | Enter the points for the blocks in | + | Enter the points for the '''blocks''' in the clockwise sense. |
− | + | We are using here '''hexahedral blocks''' for '''meshing'''. | |
− | + | ||
+ | Now type hex '''H E X''', leave some space, in brackets enter '''(0 space 1 space 2 space 3 space 4 space 5 space 6 space 7)'''. Again leave some space. | ||
+ | |||
+ | |||
+ | |||
+ | Note that for '''multiple blocks''' the points will be more. | ||
|- | |- | ||
| style="border-top:none;border-bottom:0.05pt solid #000000;border-left:0.05pt solid #000000;border-right:none;padding:0.097cm;"| Enter grid points in x, y and z axis | | style="border-top:none;border-bottom:0.05pt solid #000000;border-left:0.05pt solid #000000;border-right:none;padding:0.097cm;"| Enter grid points in x, y and z axis | ||
− | | style="border-top:none;border-bottom:0.05pt solid #000000;border-left:0.05pt solid #000000;border-right:0.05pt solid #000000;padding:0.097cm;"| After this enter the '''grid points''' in the x,y | + | | style="border-top:none;border-bottom:0.05pt solid #000000;border-left:0.05pt solid #000000;border-right:0.05pt solid #000000;padding:0.097cm;"| After this enter the '''grid points''' in the '''x,y''' and '''z directions'''. |
|- | |- | ||
Line 310: | Line 341: | ||
enter ( 30 30 1) | enter ( 30 30 1) | ||
− | | style="border-top:none;border-bottom:0.05pt solid #000000;border-left:0.05pt solid #000000;border-right:0.05pt solid #000000;padding:0.097cm;"| In | + | | style="border-top:none;border-bottom:0.05pt solid #000000;border-left:0.05pt solid #000000;border-right:0.05pt solid #000000;padding:0.097cm;"| In brackets enter '''open close bracket 30 space 30 space 1''', leave some space. |
+ | |||
+ | |||
+ | You can '''modify''' the '''grid''' as when needed. | ||
|- | |- | ||
| style="border-top:none;border-bottom:0.05pt solid #000000;border-left:0.05pt solid #000000;border-right:none;padding:0.097cm;"| Grid point in z axis is kept as 1 | | style="border-top:none;border-bottom:0.05pt solid #000000;border-left:0.05pt solid #000000;border-right:none;padding:0.097cm;"| Grid point in z axis is kept as 1 | ||
− | | style="border-top:none;border-bottom:0.05pt solid #000000;border-left:0.05pt solid #000000;border-right:0.05pt solid #000000;padding:0.097cm;"| '''Grid point in z-axis''' can be | + | | style="border-top:none;border-bottom:0.05pt solid #000000;border-left:0.05pt solid #000000;border-right:0.05pt solid #000000;padding:0.097cm;"| '''Grid point''' in the '''z-axis''' can be taken as one. |
|- | |- | ||
Line 321: | Line 355: | ||
insert ) and ; | insert ) and ; | ||
− | | style="border-top:none;border-bottom:0.05pt solid #000000;border-left:0.05pt solid #000000;border-right:0.05pt solid #000000;padding:0.097cm;"| | + | | style="border-top:none;border-bottom:0.05pt solid #000000;border-left:0.05pt solid #000000;border-right:0.05pt solid #000000;padding:0.097cm;"| Now leave some space and type '''simple grading'''. |
− | + | Leave some space and enter '''(1 space 1 space 1)'''. | |
+ | This is the '''grid spacing''' in the '''x,y''' and '''z direction'''. | ||
+ | Press '''Enter'''. | ||
+ | |||
+ | Insert close bracket. Insert a '''semicolon''' and press '''Enter'''. | ||
+ | |||
+ | Again press '''Enter'''. | ||
|- | |- | ||
| style="border-top:none;border-bottom:0.05pt solid #000000;border-left:0.05pt solid #000000;border-right:none;padding:0.097cm;"| Type edges | | style="border-top:none;border-bottom:0.05pt solid #000000;border-left:0.05pt solid #000000;border-right:none;padding:0.097cm;"| Type edges | ||
− | | style="border-top:none;border-bottom:0.05pt solid #000000;border-left:0.05pt solid #000000;border-right:0.05pt solid #000000;padding:0.097cm;"| Now type '''edges''' | + | | style="border-top:none;border-bottom:0.05pt solid #000000;border-left:0.05pt solid #000000;border-right:0.05pt solid #000000;padding:0.097cm;"| Now type '''edges''' and press '''Enter'''. |
+ | |||
+ | As this is a simple '''geometry, edges''' can be kept empty. | ||
|- | |- | ||
| style="border-top:none;border-bottom:0.05pt solid #000000;border-left:0.05pt solid #000000;border-right:none;padding:0.097cm;"| Insert ( ); | | style="border-top:none;border-bottom:0.05pt solid #000000;border-left:0.05pt solid #000000;border-right:none;padding:0.097cm;"| Insert ( ); | ||
− | | style="border-top:none;border-bottom:0.05pt solid #000000;border-left:0.05pt solid #000000;border-right:0.05pt solid #000000;padding:0.097cm;"| Insert '''open | + | | style="border-top:none;border-bottom:0.05pt solid #000000;border-left:0.05pt solid #000000;border-right:0.05pt solid #000000;padding:0.097cm;"| Insert '''open bracket''' press '''Enter'''. |
+ | |||
+ | Close the bracket, insert a '''semicolon''' and press '''Enter'''. | ||
|- | |- | ||
Line 342: | Line 386: | ||
|- | |- | ||
| style="border-top:none;border-bottom:0.05pt solid #000000;border-left:0.05pt solid #000000;border-right:none;padding:0.097cm;"| | | style="border-top:none;border-bottom:0.05pt solid #000000;border-left:0.05pt solid #000000;border-right:none;padding:0.097cm;"| | ||
− | | style="border-top:none;border-bottom:0.05pt solid #000000;border-left:0.05pt solid #000000;border-right:0.05pt solid #000000;padding:0.097cm;"| Here you need to enter the ''' | + | | style="border-top:none;border-bottom:0.05pt solid #000000;border-left:0.05pt solid #000000;border-right:0.05pt solid #000000;padding:0.097cm;"| Here you need to enter the '''boundar'''y name for the '''faces'''. |
|- | |- | ||
Line 349: | Line 393: | ||
insert ( | insert ( | ||
− | | style="border-top:none;border-bottom:0.05pt solid #000000;border-left:0.05pt solid #000000;border-right:0.05pt solid #000000;padding:0.097cm;"| Type '''boundary''' | + | | style="border-top:none;border-bottom:0.05pt solid #000000;border-left:0.05pt solid #000000;border-right:0.05pt solid #000000;padding:0.097cm;"| Type '''boundary''' and press '''Enter'''. |
− | + | Insert an open bracket and press '''Enter'''. | |
− | Let me switch back to slides | + | Let me switch back to slides. |
|- | |- | ||
− | | style="border-top:none;border-bottom:0.05pt solid #000000;border-left:0.05pt solid #000000;border-right:none;padding:0.097cm;"| Slide : Geometry | + | | style="border-top:none;border-bottom:0.05pt solid #000000;border-left:0.05pt solid #000000;border-right:none;padding:0.097cm;"| Slide 7 : Geometry |
− | | style="border-top:none;border-bottom:0.05pt solid #000000;border-left:0.05pt solid #000000;border-right:0.05pt solid #000000;padding:0.097cm;"| In the geometry | + | | style="border-top:none;border-bottom:0.05pt solid #000000;border-left:0.05pt solid #000000;border-right:0.05pt solid #000000;padding:0.097cm;"| In the '''geometry''' the upper wall is moving and other three walls are fixed. |
|- | |- | ||
− | | style="border-top:none;border-bottom:0.05pt solid #000000;border-left:0.05pt solid #000000;border-right:none;padding:0.097cm;"| Front and back faces are | + | | style="border-top:none;border-bottom:0.05pt solid #000000;border-left:0.05pt solid #000000;border-right:none;padding:0.097cm;"| Front and back faces are named as empty |
− | | style="border-top:none;border-bottom:0.05pt solid #000000;border-left:0.05pt solid #000000;border-right:0.05pt solid #000000;padding:0.097cm;"| The | + | | style="border-top:none;border-bottom:0.05pt solid #000000;border-left:0.05pt solid #000000;border-right:0.05pt solid #000000;padding:0.097cm;"| The front and back '''faces''' are termed as '''empty''' as this is a '''2D''' problem. |
|- | |- | ||
| style="border-top:none;border-bottom:0.05pt solid #000000;border-left:0.05pt solid #000000;border-right:none;padding:0.097cm;"| Open the current blockMeshDict file | | style="border-top:none;border-bottom:0.05pt solid #000000;border-left:0.05pt solid #000000;border-right:none;padding:0.097cm;"| Open the current blockMeshDict file | ||
− | | style="border-top:none;border-bottom:0.05pt solid #000000;border-left:0.05pt solid #000000;border-right:0.05pt solid #000000;padding:0.097cm;"| Open the ''' | + | | style="border-top:none;border-bottom:0.05pt solid #000000;border-left:0.05pt solid #000000;border-right:0.05pt solid #000000;padding:0.097cm;"| Open the new '''blockMeshDict''' file again. |
|- | |- | ||
| style="border-top:none;border-bottom:0.05pt solid #000000;border-left:0.05pt solid #000000;border-right:none;padding:0.097cm;"| Boundary patch as moving wall | | style="border-top:none;border-bottom:0.05pt solid #000000;border-left:0.05pt solid #000000;border-right:none;padding:0.097cm;"| Boundary patch as moving wall | ||
− | | style="border-top:none;border-bottom:0.05pt solid #000000;border-left:0.05pt solid #000000;border-right:0.05pt solid #000000;padding:0.097cm;"| In '''boundary''' put the name of the '''patch''' as '''moving wall''' | + | | style="border-top:none;border-bottom:0.05pt solid #000000;border-left:0.05pt solid #000000;border-right:0.05pt solid #000000;padding:0.097cm;"| In '''boundary''' put the name of the '''patch''' as '''moving wall''' press '''Enter'''. |
|- | |- | ||
| style="border-top:none;border-bottom:0.05pt solid #000000;border-left:0.05pt solid #000000;border-right:none;padding:0.097cm;"| Insert { | | style="border-top:none;border-bottom:0.05pt solid #000000;border-left:0.05pt solid #000000;border-right:none;padding:0.097cm;"| Insert { | ||
− | | style="border-top:none;border-bottom:0.05pt solid #000000;border-left:0.05pt solid #000000;border-right:0.05pt solid #000000;padding:0.097cm;"| Insert | + | | style="border-top:none;border-bottom:0.05pt solid #000000;border-left:0.05pt solid #000000;border-right:0.05pt solid #000000;padding:0.097cm;"| Insert an open curly bracket and press '''Enter'''. |
|- | |- | ||
Line 382: | Line 426: | ||
insert ; | insert ; | ||
− | | style="border-top:none;border-bottom:0.05pt solid #000000;border-left:0.05pt solid #000000;border-right:0.05pt solid #000000;padding:0.097cm;"| Enter '''type''' for the | + | | style="border-top:none;border-bottom:0.05pt solid #000000;border-left:0.05pt solid #000000;border-right:0.05pt solid #000000;padding:0.097cm;"| Enter the '''type''' for the moving wall. Enter '''type space wall''' |
− | + | Insert a '''semicolon''' and press '''Enter'''. | |
|- | |- | ||
− | | style="border-top:none;border-bottom:0.05pt solid #000000;border-left:0.05pt solid #000000;border-right:0.05pt solid #000000;padding:0.097cm;"| | + | | style="border-top:none;border-bottom:0.05pt solid #000000;border-left:0.05pt solid #000000;border-right:0.05pt solid #000000;padding:0.097cm;"| Type faces |
− | | style="border-top:none;border-bottom:0.05pt solid #000000;border-left:0.05pt solid #000000;border-right:0.05pt solid #000000;padding:0.097cm;"| | + | | style="border-top:none;border-bottom:0.05pt solid #000000;border-left:0.05pt solid #000000;border-right:0.05pt solid #000000;padding:0.097cm;"| Now '''faces'''. Now press '''Enter'''. |
− | Enter open and | + | |
− | In | + | Insert open bracket, and press '''Enter'''. Press the '''tab''' key. |
+ | |||
+ | |||
+ | Open close bracket. In this bracket, enter the points for '''faces'''. | ||
|- | |- | ||
| style="border-top:none;border-bottom:0.05pt solid #000000;border-left:0.05pt solid #000000;border-right:none;padding:0.097cm;"| | | style="border-top:none;border-bottom:0.05pt solid #000000;border-left:0.05pt solid #000000;border-right:none;padding:0.097cm;"| | ||
− | | style="border-top:none;border-bottom:0.05pt solid #000000;border-left:0.05pt solid #000000;border-right:0.05pt solid #000000;padding:0.097cm;"| Let me switch to slides | + | | style="border-top:none;border-bottom:0.05pt solid #000000;border-left:0.05pt solid #000000;border-right:0.05pt solid #000000;padding:0.097cm;"| Let me switch back to the slides. |
|- | |- | ||
− | | style="border-top:none;border-bottom:0.05pt solid #000000;border-left:0.05pt solid #000000;border-right:none;padding:0.097cm;"| Slide : Geometry | + | | style="border-top:none;border-bottom:0.05pt solid #000000;border-left:0.05pt solid #000000;border-right:none;padding:0.097cm;"| Slide 8 : Geometry |
− | | style="border-top:none;border-bottom:0.05pt solid #000000;border-left:0.05pt solid #000000;border-right:0.05pt solid #000000;padding:0.097cm;"| Note that order the points in such a way that the '''thumb''' should be '''normal''' to | + | | style="border-top:none;border-bottom:0.05pt solid #000000;border-left:0.05pt solid #000000;border-right:0.05pt solid #000000;padding:0.097cm;"| Note that the order of the '''points''' should be in such a way that the '''thumb''' should be '''normal''' to the '''face.''' |
|- | |- | ||
| style="border-top:none;border-bottom:0.05pt solid #000000;border-left:0.05pt solid #000000;border-right:none;padding:0.097cm;"| Clockwise curl of fingers | | style="border-top:none;border-bottom:0.05pt solid #000000;border-left:0.05pt solid #000000;border-right:none;padding:0.097cm;"| Clockwise curl of fingers | ||
− | | style="border-top:none;border-bottom:0.05pt solid #000000;border-left:0.05pt solid #000000;border-right:0.05pt solid #000000;padding:0.097cm;"| And '''fingers''' make a ''' | + | | style="border-top:none;border-bottom:0.05pt solid #000000;border-left:0.05pt solid #000000;border-right:0.05pt solid #000000;padding:0.097cm;"| And '''fingers''' make a '''curl''' as shown in the figure. |
+ | |||
+ | The '''curl''' can be '''clockwise''' or '''anticlockwise'''. | ||
|- | |- | ||
| style="border-top:none;border-bottom:0.05pt solid #000000;border-left:0.05pt solid #000000;border-right:none;padding:0.097cm;"| Points should be entered matching the points inserted in vertices | | style="border-top:none;border-bottom:0.05pt solid #000000;border-left:0.05pt solid #000000;border-right:none;padding:0.097cm;"| Points should be entered matching the points inserted in vertices | ||
− | | style="border-top:none;border-bottom:0.05pt solid #000000;border-left:0.05pt solid #000000;border-right:0.05pt solid #000000;padding:0.097cm;"| Also note that the '''points''' should match with the '''points inserted in vertices''' | + | | style="border-top:none;border-bottom:0.05pt solid #000000;border-left:0.05pt solid #000000;border-right:0.05pt solid #000000;padding:0.097cm;"| Also note that the '''points''' should match with the '''points''' inserted in vertices. |
+ | |||
+ | |||
+ | Now let me switch back to new '''blockMeshDict''' file. | ||
|- | |- | ||
Line 415: | Line 467: | ||
insert } and ; | insert } and ; | ||
− | | style="border-top:none;border-bottom:0.05pt solid #000000;border-left:0.05pt solid #000000;border-right:0.05pt solid #000000;padding:0.097cm;"| | + | | style="border-top:none;border-bottom:0.05pt solid #000000;border-left:0.05pt solid #000000;border-right:0.05pt solid #000000;padding:0.097cm;"| In the '''faces''', enter '''(3 space 7 space 6 space 2)'''. |
+ | |||
+ | Let me switch back to the slide. | ||
+ | |||
+ | |||
+ | These are the points for the moving wall '''(3 7 6 2)'''. | ||
+ | |||
+ | Minimize this. Note that you can start from any point on that '''face'''. | ||
+ | |||
+ | Now press '''Enter'''. Close the bracket. | ||
− | + | You need to enter the '''semicolon'''. | |
+ | |||
+ | After you insert the points for the '''faces''' again press '''Enter'''. | ||
+ | Close the curly bracket. | ||
+ | Another note - now after the curly brackets, press '''Enter'''. Again press '''Enter'''. | ||
|- | |- | ||
| style="border-top:none;border-bottom:0.05pt solid #000000;border-left:0.05pt solid #000000;border-right:none;padding:0.097cm;"| Boundary patches for fixedWalls | | style="border-top:none;border-bottom:0.05pt solid #000000;border-left:0.05pt solid #000000;border-right:none;padding:0.097cm;"| Boundary patches for fixedWalls | ||
− | | style="border-top:none;border-bottom:0.05pt solid #000000;border-left:0.05pt solid #000000;border-right:0.05pt solid #000000;padding:0.097cm;"| Similarly enter '''boundary condition''' and '''faces''' for the | + | | style="border-top:none;border-bottom:0.05pt solid #000000;border-left:0.05pt solid #000000;border-right:0.05pt solid #000000;padding:0.097cm;"| Similarly enter '''boundary condition''' and '''faces''' for the fixed walls. |
|- | |- | ||
| style="border-top:none;border-bottom:0.05pt solid #000000;border-left:0.05pt solid #000000;border-right:none;padding:0.097cm;"| For front and back face enter type as empty | | style="border-top:none;border-bottom:0.05pt solid #000000;border-left:0.05pt solid #000000;border-right:none;padding:0.097cm;"| For front and back face enter type as empty | ||
− | | style="border-top:none;border-bottom:0.05pt solid #000000;border-left:0.05pt solid #000000;border-right:0.05pt solid #000000;padding:0.097cm;"| Being a 2D problem the '''type of boundary''' | + | | style="border-top:none;border-bottom:0.05pt solid #000000;border-left:0.05pt solid #000000;border-right:0.05pt solid #000000;padding:0.097cm;"| Being a '''2D''' problem, the '''type''' of '''boundary''' for front and back '''faces''' can be kept as '''empty'''. |
− | for ''' | + | Refer to the figure in this slide for entering the '''points'''. Minimise this. |
+ | |||
+ | Insert the closed brackets and put a '''semicolon''' and press '''Enter'''. | ||
+ | Again press '''Enter'''. | ||
+ | |||
|- | |- | ||
− | | style="border-top:none;border-bottom:0.05pt solid #000000;border-left:0.05pt solid #000000;border-right:none;padding:0.097cm;"| Insert | + | | style="border-top:none;border-bottom:0.05pt solid #000000;border-left:0.05pt solid #000000;border-right:none;padding:0.097cm;"| Insert mergePatchPairs |
− | | style="border-top:none;border-bottom:0.05pt solid #000000;border-left:0.05pt solid #000000;border-right:0.05pt solid #000000;padding:0.097cm;"| ''' | + | | style="border-top:none;border-bottom:0.05pt solid #000000;border-left:0.05pt solid #000000;border-right:0.05pt solid #000000;padding:0.097cm;"| Type '''mergePatchPairs''' and press '''Enter'''. |
+ | |||
+ | Since there are no patches to be merged, it can be kept empty. | ||
+ | |||
+ | |||
+ | Insert open close brackets and insert a '''semicolon'''. Again press '''Enter'''. | ||
|- | |- | ||
Line 452: | Line 526: | ||
The command terminal will not work till blockMeshDict is closed | The command terminal will not work till blockMeshDict is closed | ||
− | | style="border-top:none;border-bottom:0.05pt solid #000000;border-left:0.05pt solid #000000;border-right:0.05pt solid #000000;padding:0.097cm;"| Close the '''original blockMeshDict''' | + | | style="border-top:none;border-bottom:0.05pt solid #000000;border-left:0.05pt solid #000000;border-right:0.05pt solid #000000;padding:0.097cm;"| Close both the '''original blockMeshDict''' files. |
− | Note that '''command terminal''' will not work until '''blockMeshDict file''' is | + | Note that the '''command terminal''' will not work until '''blockMeshDict file''' is closed. |
|- | |- | ||
| style="border-top:none;border-bottom:0.05pt solid #000000;border-left:0.05pt solid #000000;border-right:none;padding:0.097cm;"| Type cd .. twice | | style="border-top:none;border-bottom:0.05pt solid #000000;border-left:0.05pt solid #000000;border-right:none;padding:0.097cm;"| Type cd .. twice | ||
− | | style="border-top:none;border-bottom:0.05pt solid #000000;border-left:0.05pt solid #000000;border-right:0.05pt solid #000000;padding:0.097cm;"| type '''cd (dot) (dot)''' twice to return to the '''cavity''' | + | | style="border-top:none;border-bottom:0.05pt solid #000000;border-left:0.05pt solid #000000;border-right:0.05pt solid #000000;padding:0.097cm;"| Switch back to the '''terminal'''. |
+ | |||
+ | |||
+ | Now type '''cd space (dot) (dot)''' twice to return back to the '''cavity folder'''. | ||
+ | Now '''mesh''' the '''geometry'''. | ||
|- | |- | ||
| style="border-top:none;border-bottom:0.05pt solid #000000;border-left:0.05pt solid #000000;border-right:none;padding:0.097cm;"| Meshing, type blockMesh | | style="border-top:none;border-bottom:0.05pt solid #000000;border-left:0.05pt solid #000000;border-right:none;padding:0.097cm;"| Meshing, type blockMesh | ||
− | | style="border-top:none;border-bottom:0.05pt solid #000000;border-left:0.05pt solid #000000;border-right:0.05pt solid #000000;padding:0.097cm;"| in '''terminal''' type | + | | style="border-top:none;border-bottom:0.05pt solid #000000;border-left:0.05pt solid #000000;border-right:0.05pt solid #000000;padding:0.097cm;"| To do this, in the '''terminal''' type '''blockMesh''' and press '''Enter'''. |
|- | |- | ||
| style="border-top:none;border-bottom:0.05pt solid #000000;border-left:0.05pt solid #000000;border-right:none;padding:0.097cm;"| Viewing the geometry type paraFoam | | style="border-top:none;border-bottom:0.05pt solid #000000;border-left:0.05pt solid #000000;border-right:none;padding:0.097cm;"| Viewing the geometry type paraFoam | ||
− | | style="border-top:none;border-bottom:0.05pt solid #000000;border-left:0.05pt solid #000000;border-right:0.05pt solid #000000;padding:0.097cm;"| View the '''geometry''' by typing in the '''command terminal''' ''' | + | | style="border-top:none;border-bottom:0.05pt solid #000000;border-left:0.05pt solid #000000;border-right:0.05pt solid #000000;padding:0.097cm;"| View the '''geometry''' by typing in the '''command terminal- paraFoam''' and press '''Enter'''. |
− | + | ||
− | + | ||
+ | This will open the '''ParaView''' window. | ||
|- | |- | ||
| style="border-top:none;border-bottom:0.05pt solid #000000;border-left:0.05pt solid #000000;border-right:none;padding:0.097cm;"| In the object inspector menu click Apply | | style="border-top:none;border-bottom:0.05pt solid #000000;border-left:0.05pt solid #000000;border-right:none;padding:0.097cm;"| In the object inspector menu click Apply | ||
− | | style="border-top:none;border-bottom:0.05pt solid #000000;border-left:0.05pt solid #000000;border-right:0.05pt solid #000000;padding:0.097cm;"| On the left hand side click '''Apply''' on '''object inspector menu''' | + | | style="border-top:none;border-bottom:0.05pt solid #000000;border-left:0.05pt solid #000000;border-right:0.05pt solid #000000;padding:0.097cm;"| On the left hand side, click '''Apply''' on '''object inspector menu'''. Now you can see the '''geometry'''. |
+ | |||
+ | Now let me switch back to the slides. | ||
|- | |- | ||
− | | style="border-top:none;border-bottom:0.05pt solid #000000;border-left:0.05pt solid #000000;border-right:none;padding:0.097cm;"| Slide | + | | style="border-top:none;border-bottom:0.05pt solid #000000;border-left:0.05pt solid #000000;border-right:none;padding:0.097cm;"| Slide 9: Summary |
| style="border-top:none;border-bottom:0.05pt solid #000000;border-left:0.05pt solid #000000;border-right:0.05pt solid #000000;padding:0.097cm;"| In this tutorial we learnt: | | style="border-top:none;border-bottom:0.05pt solid #000000;border-left:0.05pt solid #000000;border-right:0.05pt solid #000000;padding:0.097cm;"| In this tutorial we learnt: | ||
− | Creating a simple geometry in '''OpenFOAM''' | + | *Creating a simple '''geometry''' in '''OpenFOAM''' |
+ | *Viewed the '''geometry''' in '''ParaView''' | ||
− | + | This brings us to the end of the tutorial. | |
− | + | ||
− | This brings us to the end of the tutorial | + | |
|- | |- | ||
− | | style="border-top:none;border-bottom:0.05pt solid #000000;border-left:0.05pt solid #000000;border-right:none;padding:0.097cm;"| Slide : Assignment | + | | style="border-top:none;border-bottom:0.05pt solid #000000;border-left:0.05pt solid #000000;border-right:none;padding:0.097cm;"| Slide 10 : Assignment |
| style="border-top:none;border-bottom:0.05pt solid #000000;border-left:0.05pt solid #000000;border-right:0.05pt solid #000000;padding:0.097cm;"| Assignment | | style="border-top:none;border-bottom:0.05pt solid #000000;border-left:0.05pt solid #000000;border-right:0.05pt solid #000000;padding:0.097cm;"| Assignment | ||
− | Change the | + | *Change the dimensions of '''lid driven cavity'''. |
− | + | *Change the '''grid''' size to '''(50 50 1)'''. | |
− | View the geometry in ''' | + | *View the '''geometry''' in '''ParaView''' |
− | + | ||
− | + | ||
− | + | ||
|- | |- | ||
− | | style="border-top:none;border-bottom:0.05pt solid #000000;border-left:0.05pt solid #000000;border-right:none;padding:0.097cm;"| Slide : About spoken tutorials | + | | style="border-top:none;border-bottom:0.05pt solid #000000;border-left:0.05pt solid #000000;border-right:none;padding:0.097cm;"| Slide 11 : About spoken tutorials |
− | | style="border-top:none;border-bottom:0.05pt solid #000000;border-left:0.05pt solid #000000;border-right:0.05pt solid #000000;padding:0.097cm;"| Watch the video available at this URL: | + | | style="border-top:none;border-bottom:0.05pt solid #000000;border-left:0.05pt solid #000000;border-right:0.05pt solid #000000;padding:0.097cm;"| Watch the video available at this URL: http://spoken-tutorial.org/What_is_a_Spoken_Tutorial |
Line 507: | Line 582: | ||
|- | |- | ||
− | | style="border-top:none;border-bottom:0.05pt solid #000000;border-left:0.05pt solid #000000;border-right:none;padding:0.097cm;"| Slide : | + | | style="border-top:none;border-bottom:0.05pt solid #000000;border-left:0.05pt solid #000000;border-right:none;padding:0.097cm;"| Slide 12 : spoken tutorials workshops |
| style="border-top:none;border-bottom:0.05pt solid #000000;border-left:0.05pt solid #000000;border-right:0.05pt solid #000000;padding:0.097cm;"| The Spoken Tutorial Project Team | | style="border-top:none;border-bottom:0.05pt solid #000000;border-left:0.05pt solid #000000;border-right:0.05pt solid #000000;padding:0.097cm;"| The Spoken Tutorial Project Team | ||
Line 518: | Line 593: | ||
|- | |- | ||
− | | style="border-top:none;border-bottom:0.05pt solid #000000;border-left:0.05pt solid #000000;border-right:none;padding:0.097cm;"| Slide : Forum to answer questions | + | | style="border-top:none;border-bottom:0.05pt solid #000000;border-left:0.05pt solid #000000;border-right:none;padding:0.097cm;"| Slide 13 : Forum to answer questions |
− | + | Do you have questions on THIS Spoken Tutorial? | |
Choose the minute and second where you have the question | Choose the minute and second where you have the question | ||
Explain your question briefly | Explain your question briefly | ||
Someone from the FOSSEE team will answer them. Please visit | Someone from the FOSSEE team will answer them. Please visit | ||
http://forums.spoken-tutorial.org/ | http://forums.spoken-tutorial.org/ | ||
+ | | style="border-top:none;border-bottom:0.05pt solid #000000;border-left:0.05pt solid #000000;border-right:0.05pt solid #000000;padding:0.097cm;"| | ||
|- | |- | ||
− | | style="border-top:none;border-bottom:0.05pt solid #000000;border-left:0.05pt solid #000000;border-right:none;padding:0.097cm;"| Slide : Forum to answer questions | + | | style="border-top:none;border-bottom:0.05pt solid #000000;border-left:0.05pt solid #000000;border-right:none;padding:0.097cm;"| Slide 14 : Forum to answer questions |
− | + | Questions not related to the Spoken Tutorial? | |
Do you have general/technical questions on the Software? | Do you have general/technical questions on the Software? | ||
Please visit the FOSSEE forum | Please visit the FOSSEE forum | ||
http://forums.fossee.in/ | http://forums.fossee.in/ | ||
Choose the Software and post your question | Choose the Software and post your question | ||
+ | | style="border-top:none;border-bottom:0.05pt solid #000000;border-left:0.05pt solid #000000;border-right:0.05pt solid #000000;padding:0.097cm;"| | ||
|- | |- | ||
− | | style="border-top:none;border-bottom:0.05pt solid #000000;border-left:0.05pt solid #000000;border-right:none;padding:0.097cm;"| Slide : Lab Migration project | + | | style="border-top:none;border-bottom:0.05pt solid #000000;border-left:0.05pt solid #000000;border-right:none;padding:0.097cm;"| Slide 15 : Lab Migration project |
− | + | We coordinate migration from commercial CFD software like ANSYS to OpenFOAM | |
We conduct free Workshops and provide solutions to CFD Problem Statements in OpenFOAM | We conduct free Workshops and provide solutions to CFD Problem Statements in OpenFOAM | ||
For more details visit this site: | For more details visit this site: | ||
http://cfd.fossee.in/ | http://cfd.fossee.in/ | ||
+ | | style="border-top:none;border-bottom:0.05pt solid #000000;border-left:0.05pt solid #000000;border-right:0.05pt solid #000000;padding:0.097cm;"| | ||
|- | |- | ||
− | | style="border-top:none;border-bottom:0.05pt solid #000000;border-left:0.05pt solid #000000;border-right:none;padding:0.097cm;"| Slide : Case Study project | + | | style="border-top:none;border-bottom:0.05pt solid #000000;border-left:0.05pt solid #000000;border-right:none;padding:0.097cm;"| Slide 16 : Case Study project |
− | + | We invite students to solve a feasible CFD problem statement of reasonable complexity using OpenFOAM | |
We give honorarium and certificate to those who do this | We give honorarium and certificate to those who do this | ||
For more details visit this site: | For more details visit this site: | ||
http://cfd.fossee.in/ | http://cfd.fossee.in/ | ||
+ | | style="border-top:none;border-bottom:0.05pt solid #000000;border-left:0.05pt solid #000000;border-right:0.05pt solid #000000;padding:0.097cm;"| | ||
|- | |- | ||
− | | style="border-top:none;border-bottom:0.05pt solid #000000;border-left:0.05pt solid #000000;border-right:none;padding:0.097cm;"| Slide: Acknowledgement | + | | style="border-top:none;border-bottom:0.05pt solid #000000;border-left:0.05pt solid #000000;border-right:none;padding:0.097cm;"| Slide 17 : Acknowledgement |
| style="border-top:none;border-bottom:0.05pt solid #000000;border-left:0.05pt solid #000000;border-right:0.05pt solid #000000;padding:0.097cm;"| Spoken Tutorials are part of Talk to a Teacher project, | | style="border-top:none;border-bottom:0.05pt solid #000000;border-left:0.05pt solid #000000;border-right:0.05pt solid #000000;padding:0.097cm;"| Spoken Tutorials are part of Talk to a Teacher project, | ||
Line 564: | Line 643: | ||
Thanks for joining. | Thanks for joining. | ||
− | |||
− | |||
− | |||
− | |||
|} | |} |
Latest revision as of 11:52, 13 June 2019
Title of script: Creating simple geometry in OpenFOAM
Author: Rahul Ashok Joshi
Keywords: Video Tutorial,Computational Fluid Dynamics (CFD),OpenFOAM geometry
|
|
Slide 1 | Hello and welcome to the spoken tutorial on creating a simple geometry in OpenFOAM |
Slide 2: Learning Objective | In this tutorial I will show you
|
Slide 3: System Requirement | To record this tutorial I am using
|
Slide 4: System Requirement
The tutorials were recorded using the versions specified in previous slide. Subsequently the tutorials were edited to latest versions. To install latest system requirements go to Installation Sheet. |
|
Only narration
|
In CFD the Pre-processing part consists of creating geometry and meshing it.
Let us take the Lid driven cavity case as an example. I have already opened the command terminal and entered the path for lid driven cavity. |
Slide 5: For OpenFOAM v 5.0
To source the OpenFOAM version 5, type: $of5 To go to the run folder, type: $cd $FOAM_RUN To open the cavity case directory, type: $cd tutorials/incompressible/icoFoam/cavity/cavity To list the contents of case directory, type: $ls |
|
In the command terminal
|
There are three folders 0,constant and system.
Geometry is inside the polymesh folder of constant. |
Terminal window: type cd constant | In the command terminal type cd space constant and press Enter. |
Type ls | Now type ls and press Enter.
|
Type cd polyMesh | Type cd polymesh and press Enter. |
Type ls | Now type ls and press Enter. |
Slide 6: For OpenFOAM v 5.0
To list the contents of the cavity directory, type: $ls 0 constant system To open the system directory, type: $cd system To list the contents of the system directory, type: $ls blockMeshDict controlDict fvSchemes fvSolution |
|
Open the blockMeshDict file.
|
This contains the geometry file called as blockMeshDict.
Open the blockMeshDict file with any editor of your choice. |
Type gedit blockMeshDict
|
In the terminal type gedit blockMeshDict.
Note that M and D here are capital and press Enter. |
Drag the window to the capture area
|
Let me drag this to the capture area.
Now minimise this. |
Slides | Let me switch back to the slides. |
Hover over the diagram | In OpenFoam the entire geometry is broken into blocks. |
Block vertex starts from 0 | The blocks are numbered starting from 0 as shown in the figure. |
For 2D geometry enter a unit thickness cell in z axis | Note that in OpenFOAM for creating a 2D geometry, you need to give cell thickness value in the z-axis. |
Dimension of Cavity | Lid driven cavity is of length 1 and height 1.
|
Create empty file
right click >create document>empty file |
On your Desktop create an empty file by right click > create document > Empty file |
Name the file
right click >create document>empty file |
Name this as block Mesh Dict.
(Note that M and D here are capital) |
Copy data from old blockMeshDict file
Paste |
Open this.
Now copy the data from the original lid driven cavity blockMeshDict file to the new blockMeshDict file from line 0.
Copy this and paste it here.
Now leave some space after convertTometers. |
Type 1
Type ; >> Enter
|
Enter 1 as the geometry is in meters.
Insert a semi-colon and press Enter.
|
In the blockMeshDict file >>type vertices | In the file, type vertices and press Enter. |
Insert (
Enter >> Tab key |
Insert the open bracket and press Enter.
Press the Tab key. |
Start with point 0
|
Start with point 0.
Insert open close brackets. Enter. |
Type (0 0 0) >> Tab key>> Open close bracket >> move to positive x axis
|
(0 space 0 space 0) and press Enter. Again press Tab key. Open close bracket.
|
Point 2 in the x-y plane | Again press the Tab key. Open close bracket.
Move towards point 2 in the positive x-y plane and enter (1 space 1 space 0) Press Enter. |
Point 3 in y direction | Again press the Tab key. Open close bracket.
Enter the 3rd point in positive y axis (0 space 1 space 0 ) Press Enter. |
Point 4 in the front face
enter (0 0 0.1) >> Enter |
Again press the Tab key.
Enter the 4th point on the front face. Open close bracket. (0 space 0 space 0.1) And press Enter. |
Points 5,6,7 with unit cell thickness in z axis | Similarly enter the other points with one unit value in the positive z -axis. |
Inert ) and ; | Close the bracket and insert a semicolon after it.
Press Enter. Again press Enter. |
Type blocks and insert (
|
Below vertices are the blocks.
Type blocks and press Enter.
|
Back to slides.
|
Let me switch back to the slides.
Note that Lid driven cavity is taken as a single block |
Switch back to blockMeshDict.
Enter the vertices of block
|
Let me switch back to blockMeshDict.
Now type hex H E X, leave some space, in brackets enter (0 space 1 space 2 space 3 space 4 space 5 space 6 space 7). Again leave some space.
Note that for multiple blocks the points will be more. |
Enter grid points in x, y and z axis | After this enter the grid points in the x,y and z directions. |
Enter the mesh/grid size
enter ( 30 30 1) |
In brackets enter open close bracket 30 space 30 space 1, leave some space.
|
Grid point in z axis is kept as 1 | Grid point in the z-axis can be taken as one. |
Enter simpleGrading value ( 1 1 1 )
|
Now leave some space and type simple grading.
Leave some space and enter (1 space 1 space 1). This is the grid spacing in the x,y and z direction. Press Enter.
Again press Enter. |
Type edges | Now type edges and press Enter.
As this is a simple geometry, edges can be kept empty. |
Insert ( ); | Insert open bracket press Enter.
Close the bracket, insert a semicolon and press Enter. |
Boundary conditions | Below edges are the boundary conditions. |
Here you need to enter the boundary name for the faces. | |
Type boundary
|
Type boundary and press Enter.
|
Slide 7 : Geometry | In the geometry the upper wall is moving and other three walls are fixed. |
Front and back faces are named as empty | The front and back faces are termed as empty as this is a 2D problem. |
Open the current blockMeshDict file | Open the new blockMeshDict file again. |
Boundary patch as moving wall | In boundary put the name of the patch as moving wall press Enter. |
Insert { | Insert an open curly bracket and press Enter. |
Type of moving wall : wall
|
Enter the type for the moving wall. Enter type space wall
|
Type faces | Now faces. Now press Enter.
Insert open bracket, and press Enter. Press the tab key.
|
Let me switch back to the slides. | |
Slide 8 : Geometry | Note that the order of the points should be in such a way that the thumb should be normal to the face. |
Clockwise curl of fingers | And fingers make a curl as shown in the figure.
The curl can be clockwise or anticlockwise. |
Points should be entered matching the points inserted in vertices | Also note that the points should match with the points inserted in vertices.
|
Enter (3 7 6 2)
|
In the faces, enter (3 space 7 space 6 space 2).
Let me switch back to the slide.
Minimize this. Note that you can start from any point on that face.
You need to enter the semicolon.
Close the curly bracket. Another note - now after the curly brackets, press Enter. Again press Enter. |
Boundary patches for fixedWalls | Similarly enter boundary condition and faces for the fixed walls. |
For front and back face enter type as empty | Being a 2D problem, the type of boundary for front and back faces can be kept as empty.
|
Insert mergePatchPairs | Type mergePatchPairs and press Enter.
Since there are no patches to be merged, it can be kept empty.
|
BlockMeshDict file is completed
|
We are done with creating the blockMeshDict file.
The complete blockMeshDict file is as shown here. |
Close the original blockMeshDict file
|
Close both the original blockMeshDict files.
|
Type cd .. twice | Switch back to the terminal.
|
Meshing, type blockMesh | To do this, in the terminal type blockMesh and press Enter. |
Viewing the geometry type paraFoam | View the geometry by typing in the command terminal- paraFoam and press Enter.
|
In the object inspector menu click Apply | On the left hand side, click Apply on object inspector menu. Now you can see the geometry.
Now let me switch back to the slides. |
Slide 9: Summary | In this tutorial we learnt:
This brings us to the end of the tutorial. |
Slide 10 : Assignment | Assignment
|
Slide 11 : About spoken tutorials | Watch the video available at this URL: http://spoken-tutorial.org/What_is_a_Spoken_Tutorial
If you do not have good bandwidth, you can download and watch it. |
Slide 12 : spoken tutorials workshops | 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 us at contact@spoken-tutorial.org |
Slide 13 : Forum to answer questions
Do you have questions on THIS Spoken Tutorial? Choose the minute and second where you have the question Explain your question briefly Someone from the FOSSEE team will answer them. Please visit http://forums.spoken-tutorial.org/ |
|
Slide 14 : Forum to answer questions
Questions not related to the Spoken Tutorial? Do you have general/technical questions on the Software? Please visit the FOSSEE forum http://forums.fossee.in/ Choose the Software and post your question |
|
Slide 15 : Lab Migration project
We coordinate migration from commercial CFD software like ANSYS to OpenFOAM We conduct free Workshops and provide solutions to CFD Problem Statements in OpenFOAM For more details visit this site: http://cfd.fossee.in/ |
|
Slide 16 : Case Study project
We invite students to solve a feasible CFD problem statement of reasonable complexity using OpenFOAM We give honorarium and certificate to those who do this For more details visit this site: http://cfd.fossee.in/ |
|
Slide 17 : 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. More information on the same is available at the following URL link http://spoken-tutorial.org/NMEICT-Intro |
About the contributor | This is Rahul Joshi from IIT BOMBAY signing off.
Thanks for joining. |