OpenFOAM/C2/Creating-curved-geometry-in-OpenFOAM/English-timed
From Script | Spoken-Tutorial
Visual Cue | Narration |
00:01 | Hello and welcome to the spoken tutorial on creating Curved geometry in OpenFOAM |
00:07 | In this tutorial I will show you
|
00:09 | Steps for creating a curved geometry in openfoam
|
00:14 | Viewing the results in paraview |
00:18 | To record this tutorial
|
00:19 | I am using Linux Operating system Ubuntu version 10.04. OpenFOAM version 2.1.0
|
00:28 | ParaView version 3.12.0 |
00:33 | We will create a geometry for flow over cylinder.
|
00:37 | Note that I am using this case just for explanation.
|
00:42 | The cylinder is in a form of a semi circle.
|
00:45 | Meshing is a body fitted grid.
|
00:49 | The entire geometry is divided into blocks.
|
00:54 | We break the semi circle into equal number of parts.
|
00:59 | Now minimise this |
01:04 | Open a blockMeshDict file of the previous tutorial
|
01:08 | I have already opened it
|
01:12 | Scroll down, for simple geometries you can see that edges is kept empty |
01:21 | Now Create a new blockMeshDict file
|
01:23 | To do this let us minimise this first |
01:27 | Now Right click > create document > empty file |
01:34 | name this as blockMeshDict.
|
01:41 | Note that M and D here are capital
|
01:46 | Open this |
01:51 | Now you can copy the initial few lines from the lid driven cavity upto convertTometers |
01:58 | Go up copy this upto convertToMeters |
02:04 | Copy this and paste it in the new blockMeshDict file |
02:12 | Now Change the convert to meters from point one to one |
02:18 | As our geometry is in meters we will keep this as one |
02:24 | Now press enter , press enter again |
02:28 | After this you need to enter the co-ordinates of the geometry in vertices
|
02:35 | Let me switch back to the slide.Note that the points should be ordered in such a way starting from 0,1,2,3 and so on. as shown in the figure |
02:47 | Minimise the slide. Now type vertices in the blockMeshDict file and press enter |
02:57 | Insert the open bracket and Press enter |
03:00 | Now enter the co-ordinates of a geometry as shown in the diagram. |
03: 05 | Let me switch back to the slides |
03:08 | For explanation I will use right half of the semi-circle |
03:12 | Enter the values for the points in the figure starting from 0
|
03:16 | Let me switch back to the blockMeshDict file |
03:20 | leave some space and enter co-ordinates of point 0 |
03:27 | Open close bracket enter (0.5 (space) 0 (space) 0). Press Enter |
03:36 | Again leave some space , open close bracket |
03:39 | Enter co-ordinates for point (1 (space) 0 (space) 0) Press enter |
03:45 | Now leave two vertical spaces , again press enter |
03:49 | again press enter |
03:51 | leave some space and enter the co-ordinate for point number 4 |
03:57 | Open close bracket, enter (0.707 (space) 0.707 (space) 0) |
04:05 | Press enter. Leave some space
|
04:09 | Open close bracket
|
04:11 | Enter the co-ordinates for the point 5
|
04:13 | Enter (0.353 (space) 0.353 (space) 0), press enter |
04:22 | I leave 4 vertical spaces and |
04:24 | Enter co-ordinates for point number 9 |
04:27 | 1 2 3 4 , again press enter, leave some space
|
04:34 | Open close bracket |
04:36 | Enter (0 (space) 1 (space) 0), press enter |
04:42 | Leave some space
|
04:44 | Enter co-ordinates for point number 10 |
04:47 | Open close bracket (0 (space) 0.5 (space) 0) and press enter |
04:55 | Similarly enter the co-ordinates for the remaining points in the geometry.
|
05:00 | Insert a close bracket put a semi-colon Press enter
|
05:05 | Again press enter |
05:07 | Now Type blocks press enter
|
05:13 | Insert a open bracket press enter |
05:17 | Let me switch back to the slides |
05:20 | TheBlock numbers are circled as shown in the figure |
05:25 | Now let me switch back to the blockMeshDict file |
05:28 | Leave some space
|
05:31 | Now Enter the type of block i.e. Hex
|
05:35 | leave some space |
05:37 | Now enter the points for the blocks
|
05:41 | Open close brackets
|
05:44 | Leave some space |
05:46 | the simple grading can be kept as (1 1 1) press enter |
05:55 | For creating the blocks please refer to the tutorial
|
05:58 | on creating simple geometry in OpenFOAM
|
06:03 | Note that there will be more number of blocks in this example |
06:08 | Now Insert a close bracket
|
06:10 | Insert a semi-colon press enter. Again press enter |
06:16 | in the next line type edges and press enter
|
06:22 | insert a open bracket and press enter |
06:26 | Here you need to enter the points which are the end points of the arcs |
06:31 | Leave some space and type arc leave some space
|
06:37 | Type the points which are the end points of the arc |
06:41 | Let me switch back to the slide.Now insert the end points of the arc
|
06:47 | In this we get,We start with arc 0 5
|
06:53 | Let me switch back to the blockMeshDict file
|
06:56 | Enter 0 space 5 |
07:00 | Leave some space
|
07:02 | Insert open close bracket |
07:04 | In the bracket enter the co-ordinate of any intermediate point in between the two arc points.
|
07:12 | Now Let me switch back again to slides |
07:15 | In the figure you can see that you have to pick up a point in between the two end points of the arc. |
07:24 | In this geometry I have picked up right half of the circle |
07:28 | Using simple geometric relations
|
07:31 | you can find the co-ordinates of the intermediate point as shown in the semi-circle |
07:39 | Similarly you can repeat the procedure for rest of the semi-circle geometry |
07:45 | Now let me switch back to the blockMeshDict file
|
07:49 | press enter |
07:51 | Note that there are more number of arcs in this example |
08:00 | Insert a close bracket
|
08:03 | Insert a semi -colon press enter again press enter |
08:08 | Now Enter the boundary patches after arcs
|
08:11 | Refer to the tutorial on Simple geometry in OpenFOAM
|
08:15 | For entering the boundary patches |
08:18 | Enter boundary,press enter
|
08:20 | Insert open bracket press enter. Insert close bracket semi-colon press enter
|
08:27 | Again press enter |
08:29 | Now In the next line type mergePatchPairs
|
08:35 | Note that P here is capital |
08:37 | Press enter
|
08:39 | Insert a open bracket press enter |
08: 42 | Since there are no patches to be merged this can be kept empty
|
08:46 | Insert a close bracket
|
08:48 | Insert a semi -colon and press enter |
08:51 | Let me switch back to the slides
|
08:54 | Similarly enter the co-ordinate points for the points in the front face of unit thickness of the geometry
|
09:01 | as shown in the figure
|
09:03 | Open a Command terminal |
09:06 | In the command terminal type the path for your case file |
09:09 | I have already set the path for the tutorial case of flow over cylinder |
09:15 | In the terminal type blockMesh for meshing the geometry and press enter
|
09:23 | Meshing is done |
09:25 | Now Type paraFoam in the terminal and press enter to view the geometry |
09:32 | Let me drag this to the capture area |
09:35 | Now on left-hand side of object inspector menu click Apply
|
09:42 | geometry will be created as seen in the paraview window |
09:47 | Scroll down the Object inspector menu |
09:50 | Check or uncheck the Mesh field box |
09:55 | You can see different regions of the geometry.
|
09:58 | You can also see the wire frame of the geometry |
10:01 | On top of theactive variable control menu in the drop down menu
|
10:07 | Change from Surface to wireframe |
10:11 | You can see the wireframe model of the geometry
|
10:16 | close this. Let me switch back to the slides |
10:21 | In this tutorial we learnt: |
10:23 | How to create a curved geometry.
|
10:26 | How to enter points for edges in OpenFOAM
|
10:29 | This brings us to the end of the tutorial |
10:33 | As an Assignment
|
10:34 | Create a geometry with inner semi-circle of radius 2 meters
|
10:39 | and outer semi- circle of radius 4 meters
|
10:44 | and View the geometry in paraview |
10:48 | Watch the video available at this URL: http://spoken-tutorial.org/What_is_a_Spoken_Tutorial |
10:51 | It summarizes the Spoken Tutorial project. |
10:53 | If you do not have good bandwidth, you can download and watch it. |
10:58 | The Spoken Tutorial Project Team |
11:00 | |
11:04 | |
11:07 | |
11:15 | Spoken Tutorials are part of Talk to a Teacher project, |
11:18 | It is supported by the National Mission on Education through ICT, MHRD, Government of India. |
11:24 | More information on the same is available at the following URL link http://spoken-tutorial.org/NMEICT-Intro |
11:29 | This is Rahul Joshi from IIT BOMBAY signing off. Thanks for joining |