OpenFOAM/C3/Downloading-and-installing-Salome/English
Tutorial: Creating and meshing a Curved-Pipe Geometry in Salome for OpenFOAM.
Script and Narration : Saurabh S. Sawant
Keywords: Video tutorial,CFD.
|
|
Slide 1: Title
Play the slide |
Hello and welcome to the spoken tutorial on Creating and meshing a Curved-Pipe Geometry in Salome for OpenFOAM. |
Slide 2 : Learning Objectives
Play the slide |
In this tutorial we will see:
To create curved pipe geometry in Salome. To mesh the geometry in the Salome. To modify the mesh using submesh. |
Slide 3: System Requirement
Play the slide
|
To record this tutorial,
and Salome version 6.6.0
|
Slide 4:Prerequisites
Play the slide |
To practice this tutorial the learner should have Salome installed on his computer, if not, you may refer to the tutorial on,
Downloading and Installing Salome.
|
Open Salome software by clicking on the Salome icon on the desktop. | Open Salome software by clicking on the Salome icon on the desktop. |
Click on the Geometry module in the Modules bar.
|
Click on the Geometry module in the Modules bar.
|
Click on New. | Click on New. |
Click on 'New Entity' in the top menu bar.
|
Let's click on 'New Entity' in the top menu bar.
|
In the drop down options, go to basic and then 2d sketch. | In the drop down options, go to basic and then 2d sketch. |
Press Apply. | First Point is at zero zero, by default.
Press Apply.
|
Go to second element type, Arcs. | Now, Go to second element type, Arcs. |
Select the Type as Direction and Direction as Tangent. | Select the Type as Direction and Direction as Tangent. |
Type the Radius -10 and tbe Angle as 90. Press Apply. | Type the Radius -10 and tbe Angle as 90. Press Apply. |
Select the first element type, Lines. | Then select the first element type, Lines.
|
Select the Type as Direction and Direction as Tangent. | Select the Type as Direction and Direction as Tangent.
|
In front of length, type 30. | In front of length, type 30. |
Press Apply and then Close. | Press Apply and then Close. |
Zoom in | Let me zoom in for the close view. |
Open the Geometry tree in the Object Browser. | Open the Geometry tree in the Object Browser.
We can see sketch_1. |
Check off to hide the sketch and check on to see it back. | You can check off to hide the sketch or check on to see it back. |
Go to New Entity>>Blocks>> Divided Disk. | Now, Go to New Entity>>Blocks>> Divided Disk.
|
Select the orientation as OZX and type the radius equal to 1. | Select the orientation as OZX and type the radius equal to 1.
|
Click on 'Apply and Close'. | Click on 'Apply and Close'. |
Go to New Entity>> Generation>> Extrusion Along Path. | Now, go to New Entity>> Generation>> Extrusion Along Path. |
Select the Base Object as Divided Disk_1
and Path Object as Sketch_1 from geometry tree. |
Select the Base Object as Divided Disk_1
and Path Object as Sketch_1 from geometry tree. |
Press Apply and Close. | Press Apply and Close.
Pipe_1 object has been created in the geometry tree. |
Go to New Entity>>Explode. | Go to New Entity>>Explode. |
Select the Main Object as Pipe_1. | Select the Main Object as Pipe_1. |
In the Sub-shapes Type drop down menu, select Face. | In the Sub-shapes Type drop down menu, select Face.
|
Check on Select sub-shapes. | Check on Select sub-shapes. |
Zoom in by scrolling up. | Let me zoom in by scrolling up. |
I can rotate the object by clicking on this rotation menu.
| |
Hold the left mouse button and move the mouse upward to rotate the object. | Hold the left mouse button and move the mouse upward to rotate the object. |
Take the mouse pointer near the inlet face. | Take the mouse pointer as shown on the screen. |
Hold the left mouse button. | Hold the left mouse button. |
Drag the mouse so that all the inlet faces fall into the rectangular area. | Drag the mouse so that all the inlet faces fall into the rectangular area.
|
Release the mouse button. | Release the mouse button. |
Click on Show only selected button. | Click on Show only selected button to ensure that all the inlet faces have been selected. |
Click on Apply and Close. | Click on Apply and Close.
We see five faces are created in the geometry tree. |
Click on New Entity>>Group>>Create.
|
Now, click on New Entity>>Group>>Create.
|
Select the main shape as Pipe_1 from the geometry tree. | Select the main shape as Pipe_1 from the geometry tree.
|
Select the third Shape Type, Faces. | Select the third Shape Type, Faces.
|
Select the newly created five faces from the geometry tree. Add them by clicking on Add button. | Then select the newly created five faces from the geometry tree. Add them by clicking on Add button. |
Name the group as 'inlet'. | Name the group as 'inlet'.
|
Press Apply and close. | Press Apply and close.
We see inlet group has been created. |
Follow the similar procedure on the other end of the pipe and group those faces as outlet. | Follow the similar procedure on the other end of the pipe and group those faces as outlet. |
I have created the outlet group. | |
In the modules drop down menu select Mesh.
|
Now, in the modules drop down menu select Mesh.
|
In the top menu bar, click on Create Mesh.
|
Now, in the top menu bar, click on Create Mesh.
|
Select the Geometry as Pipe_1 from the geometry tree. | Select the Geometry as Pipe_1 from the geometry tree.
|
Click on 'Assign a set of hypotheses' and select '3D: Automatic Hexahedralization'.
|
Click on 'Assign a set of hypotheses' and select '3D: Automatic Hexahedralization'.
|
Select the Number of Segments 12.
|
Select the Number of Segments 12.
|
Click on OK.
|
Click on OK.
|
Click on Apply and Close. | Click on Apply and Close.
We see Mesh_1 in the geometry tree. |
Right click on Mesh_1 and click on Compute. | Right click on Mesh_1 and click on Compute. |
We see Mesh has been created.
| |
Zoom in | Let me Zoom in. |
Move the object by this panning option. | You can move the object by this panning option. |
Refine the mesh in the flow direction. | Now we will refine the mesh in the flow direction.
|
Go back to the geometry module from modules drop down menu. | To do so go back to the geometry module from modules drop down menu.
|
Get the proper view by using panning and rotation option. | Now, let me get the proper view by using panning and rotation option. |
Go to New Entity>> Explode. | Go to New Entity>> Explode. |
Select the main object as Pipe_1. | Select the main object as Pipe_1.
|
Select sub-shapes Type, Edge.
|
Sub-shapes Type, Edge.
|
Check on Select sub-shapes. | Check on Select sub-shapes. |
Move the window to the corner. | Let me move the window to the corner.
|
Take the mouse pointer near to the inlet. | Now, take the mouse pointer as shown on the screen.
|
Hold the left mouse button. | Hold the left mouse button. |
Drag the mouse so that all the outlet edges fall inside the rectangular window. | Drag the mouse so that all the outlet edges fall inside the rectangular window. |
Release left mouse button. | Release left mouse button. |
The selected edges would appear in white color.
| |
Click on hide selected in the Sub-shape selection window. | Then, click on hide selected in the Sub-shape selection window.
|
Similarly, hide other 3 face edges. | Similarly, there are 3 more face edges that we need to select one by one and hide. |
After that, you would only see the edges in the flow direction. | |
Select all of these edges using similar method and click on Apply and Close. | Select all of these edges using similar method and click on Apply and Close. |
In the geometry tree below outlet we see 24 edges have been exploded.
| |
Go to New Entity>>Group>>Create. | To group these edges go to New Entity>>Group>>Create. |
Select the Shape Type as Edge. | Select the Shape Type as Edge. |
Select the Main Shape as Pipe_1 from the geometry tree. | Select the Main Shape as Pipe_1 from the geometry tree. |
Select all of these exploded edges. | Now, select all of these exploded edges. |
Add them by clicking on Add button. | Then, add them by clicking on Add button. |
Name it as flowedges. | Name it as flowedges. |
Click on Apply and close. | Click on Apply and close.
|
We see, flowedges group has been created. | |
Go to Mesh module from modules drop down option. | Go to Mesh module from modules drop down option.
|
Right click on Mesh_1 and click on Create Sub-mesh.
|
Right click on Mesh_1 and click on Create Sub-mesh.
|
Select the geometry as flowedges. | Select the geometry as flowedges.
|
Select the algorithm, wire discretization. | Select the algorithm, wire discretization.
|
Click on first button to the right of the drop down menu. | Now, to select the appropriate hypothesis click on first button to the right of the drop down menu. |
Click on, Nb. Segments. | Click on, Nb. Segments.
|
Type the number of segment as 30. | Type the number of segment as 30. |
Click on Ok. | Click on Ok. |
Click on Apply and Close. | Click on Apply and Close. |
Click on Mesh_1 and click on Compute. | Now, click on Mesh_1 and click on Compute.
Refined mesh has been created.
|
Close the window. | Close the window. |
We see mesh has been refined in the flow direction. | |
Go to File>> Save As | To save this work,
Go to File>> Save As
|
Name the file as Curved-geometry. | Name the file as Curved-geometry.
|
Save the work on the Desktop. | I am saving the work on the Desktop. |
Close Salome. | Close Salome. |
Point to the file Curved-geometry.hdf on the desktop. | We see file has been saved as Curved-geometry.hdf. |
Slide 11: Summary | In this tutorial we have learned:
To create curved pipe geometry in Salome. To mesh the geometry in Salome. To modify the mesh using submesh. |
Slide 12 : Assignment | For Assignment,
Create a pipe having inner diameter 6 units smaller than the outer diameter. Change the angle of the bent.
|
Slide 13 :
About Spoken tutorials |
The video is available at the following 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 14:
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, contact@spoken-tutorial.org |
Slide 15:
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 this mission is available at, |
I am Saurabh Sawant from IIT Bombay, Thank you. |