Tutorial Straight Pipe Pointwise Openfoam
Tutorial Straight Pipe Pointwise Openfoam
Introduction
This tutorial provides instructions for meshing an internal flow in a
straight pipe. A geometry and mesh like those shown to the right
are created. Pointwise software is used to create a structured grid
that has fine resolution near the wall and coarser resolution
elsewhere. A pressure drop is calculated across the inlet and outlet
of the pipe. OpenFOAM software is used as the CFD solver.
Straight Pipe
Choose solver
1. This tutorial assumes that Pointwise is running. If it is not running, open it before proceeding to the
next step.
2. CAE-Select Solver-OpenFOAM
It is wise to choose the desired CFD solver before creating any grids. Setting the solver first
reduces the possibility of problems later when exporting the mesh.
3. OK.
The current solver is displayed in the lower left corner of the Pointwise window.
4. File-Save.
5. After selecting an appropriate folder in which to save the project, enter Straight_Pipe for the File
name.
6. Save.
3.
Split connectors
1.
Recall View -Z from the View toolbar.
2. View-Zoom-Zoom to Fit (or <F2>).
3. You are now looking down the Z axis of the pipe. Notice the 10 layers of cells along the wall of the
pipe. The surface mesh has been extruded into a block of cells. There should now be a (1) after
Blocks in the List panel.
A block refers to a volume grid in Pointwise. Unlike with
some other mesh generators, the boundary layer mesh is
considered as its own block.
4. LMB the vertical connector (con-3).
5. Edit-Split
6. LMB Point7.
7. OK.
8. LMB the horizontal connector (con-4).
9. Edit-Split
10. LMB Point8.
11. OK.
12.
15. Simultaneously select the two newly split connectors that have 9 nodes.
Select (con-1-split-2-split-2 and con-2-split-1-split-1)
from under Connectors in the List side panel.
16. Grid-Dimension
17. Enter 11 as the Number of Points. Dimension-OK.
The Dimension feature in the Grid toolbar can also be used to change the number of points
on a connector. Select a connector(s). Enter a dimension in the toolbar
Connectors opposite from each other must have the same
number of points to create a structured grid.
. <Enter>.
Simultaneously select dom-3, dom-5, and dom-6 from the List panel.
Create-Extrude-Path
Done.
List tab.
Select con-11. Con-11 is an axial connector that will guide the extrusion path.
Path tab.
Steps already should be set at 99.
Run-OK.
7.
8.
9. New.
10. LMB bc-3 and change the name to outlet.
11. In the same row, Unspecified and choose patch from the drop down menu.
12. List tab.
13. Select the five domains on the opposite end of the pipe
as the outlet (dom-3-split-1, dom-3-split-2, dom3, dom-5, and dom-6).
14. Set BC tab.
15. LMB in the empty box next to the third row. A 5
should appear in the # column, and 8 domains remain unspecified.
16. New.
17. LMB bc-4 and change the name to symmetry.
18. In the same row, Unspecified and choose symmetryPlane from the drop down menu.
19. List tab.
20. Simultaneously select all the domains on both symmetry
planes of the pipe (dom-2, dom-4, dom-10, dom11, dom-12, and dom-17).
21. Set BC tab.
22. LMB in the empty box next to the fourth row. A 6
should appear in the # column.
23. New.
24. LMB bc-5 and change the name to wall.
25. In the same row, Unspecified and choose wall from the drop down menu.
26. List tab.
27. Select the two pipe wall domains (dom-1-split-1 and
dom-1-split-2).
28. Set BC tab.
29. LMB in the empty box next to the fifth row. A 2 should
appear in the # column.
30. The boundary conditions should now be set as indicated
to the right. Notice that all domains are now specified.
31. Close the BC tab.
LMB the + next to Blocks in the side panel if it isnt already expanded.
Simultaneously select all the blocks (total of 4).
File-Export-CAE
After selecting an appropriate location, create a new
folder in which to export the project.
Name the folder polyMesh
.
Choose or Save or OK, depending on your operating system.
File-Save the Pointwise file.
File-Exit Pointwise.
The dimension is set by indicating the power of each base unit within the [ ] brackets. The base
units are listed in the following order: [mass length time temperature quantity current luminous].
The initial value of the internal pressure field is uniform and equal to zero.
The inlet and wall boundaries are set to type zeroGradient. This means that solved values at
these boundaries must be constant for progressive elements in the direction normal to the
boundary surface (the normal gradient equals 0). The actual values will be numerically
calculated by the solver.
The type symmetryPlane indicates that there is a plane of symmetry on the selected faces.
Notice that the value for the outlet pressure is a scalar and is set equal to a fixed value of 0 (open
to the atmosphere).
11. Save when all the changes have been made.
12. Close the p file.
13. Navigate to initial velocity U file, and then open it in the background using a text editor.
14. gedit U &
15. In the open text file change the boundary names
and conditions until the text between the
dividing lines matches that seen below.
Values of the internal velocity field are
uniform and each component of the initial
vector is set to zero.
Only the outlet velocity is set to type
zeroGradient. This means that the outlet
velocity must be constant for progressive
elements in the direction normal to the
outlet surface (the normal gradient equals
0). The actual values will be numerically
calculated by the solver.
The type symmetryPlane indicates that
there is a plane of symmetry on the selected
faces.
Notice that the value for the inlet velocity is
a vector and is set to flow at -.04 m/s along
the negative z-axis, making the flow normal
to the inlet face.
The wall velocity vector is set to (0 0 0) to
enforce the no-slip boundary conditions at a
stationary wall.
16. Save when all the changes have been made.
17. Close the U file.
18. Close the boundary file.
The dimension is set by indicating the power of each base unit within the [ ] brackets. The base
units are listed in the following order: [mass length time temperature quantity current luminous].
5.
6.
7.
8.
Launch ParaView
1.
2.
3.
4.
5.
6.
Apply.
7. With
Glyph.
Glyph.
12.
Apply.
13.