Difference between revisions of "OpenFOAM/C2/Basic-Post-Processing-using-ParaView/English"

From Script | Spoken-Tutorial
Jump to: navigation, search
(Created page with "<span style="color:#000000;">Tutorial </span>: Basic Post-Processing using ParaView Script : Subhasree Basu Narration : Deepa Vedartham Keywords: OpenFOAM-5, Velocity vecto...")
 
Line 9: Line 9:
  
  
{| style="border-spacing:0;width:17cm;"
+
{| border=1
 
|-
 
|-
| align=center style="border-top:1pt solid #000000;border-bottom:1pt solid #000000;border-left:1pt solid #000000;border-right:none;padding:0.18cm;" | '''Visual Cue'''
+
| '''Visual Cue'''
| align=center style="border:1pt solid #000000;padding:0.18cm;" | '''Narration'''
+
| '''Narration'''
 
|-
 
|-
| style="border-top:none;border-bottom:1pt solid #000000;border-left:1pt solid #000000;border-right:none;padding:0.18cm;" | Slide 1 : Title
+
| Slide 1 : Title
| style="border-top:none;border-bottom:1pt solid #000000;border-left:1pt solid #000000;border-right:1pt solid #000000;padding:0.18cm;" | Hello and welcome to the spoken tutorial on '''Basic Post-Processing using ParaView'''
+
| Hello and welcome to the spoken tutorial on '''Basic Post-Processing using ParaView'''.
|-
+
| style="border-top:none;border-bottom:1pt solid #000000;border-left:1pt solid #000000;border-right:none;padding:0.18cm;" | Slide 2 : Learning Objectives
+
| style="border-top:none;border-bottom:1pt solid #000000;border-left:1pt solid #000000;border-right:1pt solid #000000;padding:0.18cm;" | In this tutorial, we will learn:* <span style="background-color:transparent;">S</span><span style="background-color:transparent;">ome basic visualization techniques in ParaView.</span>
+
 
+
  
 
|-
 
|-
| style="border-top:none;border-bottom:1pt solid #000000;border-left:1pt solid #000000;border-right:none;padding:0.18cm;" | Slide 3 : Learning Objectives
+
| Slide 2 : Learning Objectives
| style="border-top:none;border-bottom:1pt solid #000000;border-left:1pt solid #000000;border-right:1pt solid #000000;padding:0.18cm;" | Under this we will learn:# Variable Visualization
+
| In this tutorial, we will learn some basic visualization techniques in '''ParaView'''.
# Velocity vector Visualization
+
# Streamlines Visualization
+
# Slice and Clip filters
+
 
+
  
 
|-
 
|-
| style="border-top:none;border-bottom:1pt solid #000000;border-left:1pt solid #000000;border-right:none;padding:0.18cm;" | Slide 4 :
+
| Slide 3 : Learning Objectives
 +
| Under this we will learn:
 +
# '''Variable visualization'''
 +
# '''Velocity vector visualization'''
 +
# '''Streamlines''' visualization
 +
# '''Slice''' and '''Clip filters
 +
'''
 +
|-
 +
| Slide 4 :
  
 
System Requirement
 
System Requirement
| style="border-top:none;border-bottom:1pt solid #000000;border-left:1pt solid #000000;border-right:1pt solid #000000;padding:0.18cm;" | To record this tutorial I am using* '''Ubuntu''' Linux Operating system '''16.04 LTS'''
+
| To record this tutorial I am using
 +
* '''Ubuntu Linux''' Operating system 16.04 LTS
 
* '''OpenFOAM '''version 4.1
 
* '''OpenFOAM '''version 4.1
* <span style="color:#000000;">'''ParaView '''</span><span style="color:#000000;">version</span><span style="color:#000000;">''' </span><span style="color:#000000;">5.0'''</span>
+
* '''ParaView ''' version 5.0
 
+
  
 
|-
 
|-
| style="border-top:none;border-bottom:1pt solid #000000;border-left:1pt solid #000000;border-right:none;padding:0.18cm;" | Slide 5 :
+
| Slide 5 :
  
 
Pre-requisite
 
Pre-requisite
| style="border-top:none;border-bottom:1pt solid #000000;border-left:1pt solid #000000;border-right:1pt solid #000000;padding:0.18cm;" | To practice this tutorial, the user should have* Basic knowledge '''of Linux terminal commands'''
+
| To practice this tutorial, the user should have
* Experience with simulating cases in OpenFOAM
+
* Basic knowledge of '''Linux terminal commands'''
 +
* Experience with simulating cases in '''OpenFOAM'''
 
* Working skills in '''ParaView'''
 
* Working skills in '''ParaView'''
  
 +
If not, please go through the previous '''OpenFOAM''' spoken tutorials on this website: '''https://spoken-tutorial.org/'''
 +
|-
 +
| Slide 6 : Problem Statement-'''Variable Visualization'''
 +
| '''Variable visualization'''
 +
* '''OpenFOAM''' has provided an '''inbuilt case''' file for '''pitzDaily'''.
  
 
 
 
If not, please go through the previous OpenFOAM Spoken''' T'''utorials on this website:''' http://spoken-tutorial.org/'''
 
 
|-
 
|-
| style="border-top:none;border-bottom:1pt solid #000000;border-left:1pt solid #000000;border-right:none;padding:0.18cm;" | Slide 6 : Problem Statement-'''Variable Visualization'''
+
| Slide 7 : Problem Statement-'''Variable Visualization'''
| style="border-top:none;border-bottom:1pt solid #000000;border-left:1pt solid #000000;border-right:1pt solid #000000;padding:0.18cm;" | '''Variable Visualization'''* OpenFOAM has provided an inbuilt case file for '''pitzDaily'''
+
| Here we will:
 
+
* focus on '''post-processing''' of the '''pitzDaily''' solution
 +
* learn to '''visualize flow field variables''' like '''velocity, pressure, vorticity,''' etc.
 +
* learn to '''visualize velocity vector '''within the '''flow''' field
  
 
|-
 
|-
| style="border-top:none;border-bottom:1pt solid #000000;border-left:1pt solid #000000;border-right:none;padding:0.18cm;" | Slide 7 : Problem Statement-'''Variable Visualization'''
+
| Slide
| style="border-top:none;border-bottom:1pt solid #000000;border-left:1pt solid #000000;border-right:1pt solid #000000;padding:0.18cm;" | Here we will:* focus on post-processing of the pitzDaily solution
+
| You can find the '''pitzDaily case''' file within the '''simpleFoam''' directory within '''OpenFOAM-4.0>tutorials '''directory.
  
* learn to '''visualize flow field''' variables like '''velocity, pressure, vorticity, etc'''
 
* learn to visualize''' velocity vector '''within the flow field
 
  
 +
I have already copied this file in my work folder and run the simulation in my machine using '''simpleFoam'''.
  
 
|-
 
|-
| style="border-top:none;border-bottom:1pt solid #000000;border-left:1pt solid #000000;border-right:none;padding:0.18cm;" | Terminal >>
+
|Open a command Terminal.
 +
|Now we will open this solved '''case''' file in the '''command terminal'''.
  
 +
|-
 +
|Type cd /opt/openfoam4/tutorials/incompressible/simpleFoam/pitzDaily
 +
|Here I will type:
 +
'''cd /opt/openfoam4/tutorials/incompressible/simpleFoam/pitzDaily'''
  
 +
|-
 +
|Type ls
 +
|To see the content inside this folder type '''ls'''.
  
  
 +
You will see all these files here.
  
 +
|-
 +
|Type paraFoam
 +
|Now to '''post-process''' this '''simulation''', type '''paraFoam''', in the '''command terminal'''.
  
  
 +
This will open the '''ParaView''' window.
 +
|-
 +
| ParaView Window >> click '''Apply'''
 +
| To visualize the '''domain geometry''' click '''Apply''' button.
  
 +
This is on the top left corner of the '''Properties''' panel.
  
 +
|-
 +
|Graphic window >>
 +
|This will show the '''domain geometry''' on the '''Graphic''' window.
  
 +
|-
 +
|Scroll down >> point to the different types of Volume fields
 +
|Now scroll down within the '''Properties''' panel.
  
  
 +
You will see the different types of '''Volume Fields''' available for '''visualization'''.
  
  
 +
Here we will '''visualize''' the '''velocity field''' within the '''domain'''.
  
 +
|-
 +
|Check the '''U variable'''
 +
|For this, check the '''U variable''' within the '''Volume Field'''.
  
  
 +
Please note that the '''U variable''' is available to '''visualization''', by default.
  
 +
|-
 +
|Go to the toolbar.
 +
|Now go to the toolbar.
  
 +
|-
 +
|Drop-down >>change '''vtkBlockColors''' to '''U'''
 +
|Change the '''vtkBlockColors''' to '''U''' from the drop-down options.
  
  
 +
This will show the initial '''flow conditions''' on the '''Graphic''' window.
  
 +
|-
 +
|Menu bar >> click '''the lastFrame''' button.
 +
|Now go to the '''Menu bar''' and click '''the lastFrame''' button.
  
 +
|-
 +
|'''Velocity field''' pattern
 +
|You can see the '''velocity field''' pattern of the '''converged solution'''.
  
  
 
+
This will '''visualize''' the '''flow velocity field''' after 298 iterations.
Visual Narration >>
+
| style="border-top:none;border-bottom:1pt solid #000000;border-left:1pt solid #000000;border-right:1pt solid #000000;padding:0.18cm;" | You can find the '''pitzDaily''' case file within the '''simpleFoam''' directory within '''OpenFOAM-4.0>tutorials '''directory
+
 
+
 
+
I have already copied this file in my work folder and run the simulation in my machine using '''simpleFoam'''
+
 
+
 
+
Now we will open this solved case file in the command terminal
+
 
+
 
+
 
+
 
+
Here I will type:
+
 
+
<div style="color:#000000;">'''cd /opt/openfoam4/tutorials/incompressible/simpleFoam/pitzDaily'''</div>
+
 
+
 
+
<div style="color:#000000;">To see the content inside this folder type:</div>
+
 
+
<div style="color:#000000;">'''ls'''</div>
+
 
+
 
+
<div style="color:#000000;">You will see all these files here</div>
+
 
+
 
+
<div style="color:#000000;">Now to post-process this simulation type:</div>
+
 
+
<div style="color:#000000;">'''paraFoam'''</div>
+
 
+
<div style="color:#000000;">in the command terminal.</div>
+
  
  
<div style="color:#000000;">This will open the ParaView window</div>
+
Thus we have learnt to '''visualize field variables''' in '''ParaView'''.
 
|-
 
|-
| style="border-top:none;border-bottom:1pt solid #000000;border-left:1pt solid #000000;border-right:none;padding:0.18cm;" | ParaView Window >>
+
| Click on the '''Glyph filter''' >> point to the '''Pipeline''' window.
| style="border-top:none;border-bottom:1pt solid #000000;border-left:1pt solid #000000;border-right:1pt solid #000000;padding:0.18cm;" | To visualize the domain geomtery click '''Apply''' buttom.
+
| After this we will learn to '''visualize velocity vectors'''.
  
This is on the top left corner of the '''Properties''' panel
 
  
 +
To do this, click on the '''Glyph filter''' on the toolbar.
  
This will show the domain geometry on the '''Graphic window'''
 
  
 +
This will add a new component to the '''Pipeline''' window.
  
Now if you scroll down within the '''Properties''' panel
 
 
 
You will see the different types of '''Volume Field''' available for visualization
 
 
 
Here we will visualize the '''velocity field''' within the domain
 
 
 
For this check the '''U''' variable within the '''Volume Field'''
 
 
 
Please note that the '''U '''variable is available to visualization by default
 
 
 
Now go to the '''Tool Bar '''
 
 
 
Change the '''vtkBlockColors''' to '''U''' from the drop down options
 
 
 
This will show the initial flow conditions on the '''Graphic window'''
 
 
 
Now go to the '''Menu bar''' and click '''the lastFrame''' button
 
 
 
You can see the velocity field pattern of the '''converged solution'''
 
 
 
This will visualize the flow velocity field after 298 iterations
 
 
 
Thus we have learnt to visualize field variables in ParaView
 
 
|-
 
|-
| style="border-top:none;border-bottom:1pt solid #000000;border-left:1pt solid #000000;border-right:none;padding:0.18cm;" | ParaView Window >>
+
|Scroll within the '''Glyph Properties''' panel.
 
+
|Now within the '''Glyph Properties''' panel make sure the  
 
+
* '''Glyph type''' is arrow
 
+
 
+
 
+
 
+
 
+
 
+
 
+
 
+
 
+
 
+
 
+
 
+
 
+
 
+
 
+
 
+
 
+
 
+
 
+
 
+
 
+
 
+
 
+
 
+
Visual Narration >>
+
| style="border-top:none;border-bottom:1pt solid #000000;border-left:1pt solid #000000;border-right:1pt solid #000000;padding:0.18cm;" | After this we will learn to visualize velocity vectors
+
 
+
 
+
To do this click on the '''Glyph filter''' on the '''Tool Bar'''
+
 
+
 
+
This will add a new component to the pipeline window
+
 
+
 
+
Now within the Glyph '''Properties''' panel make sure the * '''Glyph type''' is arrow
+
 
* '''Scale Mode''' is off
 
* '''Scale Mode''' is off
 
* '''Scaling Factor''' is 0.003
 
* '''Scaling Factor''' is 0.003
  
  
 +
Keep the rest as default.
  
Keep the rest as default
+
|-
 +
|Click '''Apply''' button.
 +
|Click '''Apply''' button on the top left corner of the '''Properties''' panel.
  
  
Click '''Apply''' button on the top left corner of the '''Properties''' panel
+
You will see small '''velocity vectors visualized''' within the '''domain'''.
  
 +
|-
 +
|Point to '''circulation zone''' and magnitude of '''velocity'''.
 +
|You can now clearly see the '''circulation zone''' and magnitude of '''velocity'''.
  
You will see small velocity vectors visualized within the domain
 
  
 +
Thus we have learned to create '''velocity vector''' in a '''flow''' field.
  
You can now clearly see the circulation zone and magnitude of velocity.
+
|-
 
+
|Close '''ParaView''' window
 
+
|After this close '''ParaView''' window.
Thus we have learned to create velocity vector in a flow field
+
 
+
  
After this close ParaView window.
+
Now let us go back to the next problem statement.
  
Now let us go back to the next problem statement
 
 
|-
 
|-
| style="border-top:none;border-bottom:1pt solid #000000;border-left:1pt solid #000000;border-right:none;padding:0.18cm;" | Slide 8 : '''Problem Statement-Streamlines Visualization'''
+
| Slide 8 : '''Problem Statement-Streamlines Visualization'''
| style="border-top:none;border-bottom:1pt solid #000000;border-left:1pt solid #000000;border-right:1pt solid #000000;padding:0.18cm;" | Streamlines Visualization* OpenFOAM has provided an inbuilt case file for flow over a '''motorBike'''
+
| '''Streamlines Visualization'''
  
 +
'''OpenFOAM''' has provided an '''inbuilt case''' file for '''flow''' over a '''motorBike'''.
  
 
|-
 
|-
| style="border-top:none;border-bottom:1pt solid #000000;border-left:1pt solid #000000;border-right:none;padding:0.18cm;" | Slide 9 : '''Problem Statement-Streamlines Visualization'''
+
| Slide 9 : '''Problem Statement-Streamlines Visualization'''
| style="border-top:none;border-bottom:1pt solid #000000;border-left:1pt solid #000000;border-right:1pt solid #000000;padding:0.18cm;" | Here we will:* focus on post-processing of the '''motorBike''' solution
+
| Here we will:
 
+
* focus on '''post-processing''' of the '''motorBike''' solution
* learn to create '''stream lines''' and view them in ParaView
+
* learn to create '''stream lines''' and view them in '''ParaView'''
 
+
  
 
|-
 
|-
| style="border-top:none;border-bottom:1pt solid #000000;border-left:1pt solid #000000;border-right:none;padding:0.18cm;" | Terminal >>
+
| Terminal >> Visual Narration >>
 +
| You can find the '''motorBike case''' file in the '''simpleFoam''' directory within '''OpenFOAM-4.1>tutorials '''directory.
  
  
 +
I have already copied this file in my work folder.
  
 +
Then run the '''simulation''' using '''simpleFoam'''.
  
 +
|-
 +
|
 +
|Now open this solved '''case''' file in the '''command terminal'''.
  
  
 +
Here I will type '''cd ..'''
  
 +
'''cd motorBike'''
  
  
 +
To see the content inside type '''ls'''
  
  
 +
You will see all these files here.
  
  
 +
Now to '''post-process''' this '''simulation''', type '''paraFoam''' in the '''command terminal'''.
  
  
 
+
This will open the '''ParaView''' window.
 
+
 
+
 
+
 
+
 
+
 
+
 
+
 
+
 
+
 
+
Visual Narration >>
+
| style="border-top:none;border-bottom:1pt solid #000000;border-left:1pt solid #000000;border-right:1pt solid #000000;padding:0.18cm;" | You can find the '''motorBike''' case file in the '''simpleFoam''' directory within '''OpenFOAM-4.1>tutorials '''directory
+
 
+
 
+
I have already copied this file in my work folder. Then run the simulation using '''simpleFoam'''
+
 
+
 
+
Now open this solved case file in the command terminal
+
 
+
 
+
Here I will type:
+
 
+
cd ..
+
 
+
<div style="color:#000000;">'''cd motorBike'''</div>
+
 
+
 
+
<div style="color:#000000;">To see the content inside type:</div>
+
 
+
<div style="color:#000000;">'''ls'''</div>
+
 
+
 
+
<div style="color:#000000;">You will see all these files here</div>
+
 
+
 
+
<div style="color:#000000;">Now to post-process this simulation type:</div>
+
 
+
<div style="color:#000000;">'''paraFoam'''</div>
+
 
+
<div style="color:#000000;">in the command terminal.</div>
+
 
+
 
+
<div style="color:#000000;">This will open the ParaView window</div>
+
 
|-
 
|-
| style="border-top:none;border-bottom:1pt solid #000000;border-left:1pt solid #000000;border-right:none;padding:0.18cm;" | ParaView Window >>
+
| ParaView Window >>Visual Narration >>Visual Narration >>
 +
| To visualize the '''domain geometry''', click '''Apply''' button on the top left corner of the '''Properties''' panel.
  
  
 +
To include the last iteration, click on the '''lastFrame''' button on the '''Menu bar'''.
  
  
 +
Go to the '''Tool Bar''' and set the directional view to '''+Y'''.
  
  
 +
Change the '''vtkBlockColors''' to U from the drop down options.
  
  
 +
Now scroll down on the '''Properties panel''' to '''Opacity'''.
  
  
 +
Reduce the '''Opacity''' to make the domain transparent like this.
  
  
 +
You will be able to see the motor bike with the rider through the domain now.
  
  
 +
To create '''streamlines''' around the motor bike click on '''stream Tracer''' filter on the '''Tool Bar'''.
  
  
 +
This will add a new component within the '''Pipeline''' browser.
  
  
Visual Narration >>
+
Here in the '''Properties''' panel change the '''Point''' to '''(5 0 1) '''coordinates within '''Seeds section'''.
  
  
 +
This will change the location of the center of the '''stream lines'''.
  
  
 +
Now change the '''Number of Points''' to '''15'''.
  
  
 +
This show the number of stream lines you want to create.
  
  
 +
Change the '''Radius''' to '''1'''.
  
  
 +
This changes the radius of the stream line points.
  
  
 +
Keep the rest of the values as default.
  
  
 
+
After all changes have been made, click '''Apply''' on the '''Properties''' menu of the '''stream Tracer'''.
 
+
 
+
 
+
 
+
 
+
 
+
 
+
 
+
 
+
 
+
 
+
 
+
 
+
 
+
 
+
 
+
 
+
 
+
 
+
 
+
 
+
 
+
 
+
 
+
 
+
 
+
 
+
 
+
 
+
 
+
 
+
 
+
 
+
 
+
 
+
 
+
 
+
 
+
 
+
 
+
 
+
 
+
 
+
 
+
 
+
 
+
 
+
 
+
 
+
Visual Narration >>
+
| style="border-top:none;border-bottom:1pt solid #000000;border-left:1pt solid #000000;border-right:1pt solid #000000;padding:0.18cm;" | To visualize the domain geometry click '''Apply''' button on the top left corner of the '''Properties''' panel
+
 
+
 
+
To include the last iteration click on the '''lastFrame''' button on the '''Menu bar'''
+
 
+
 
+
Go to the '''Tool Bar''' and set the directional view to '''+Y'''
+
 
+
 
+
Change the '''vtkBlockColors''' to U from the drop down options
+
 
+
 
+
Now scroll down on the '''Properties panel''' to '''Opacity'''
+
 
+
 
+
Reduce the '''Opacity''' to make the domain transparent like this
+
 
+
 
+
You will be able to see the motor bike with the rider through the domain now
+
 
+
 
+
To create streamlines around the motor bike click on '''stream Tracer''' filter on the '''Tool Bar'''
+
 
+
 
+
This will add a new component within the '''Pipeline''' browser
+
 
+
 
+
Here in the '''Properties''' panel change the '''Point''' to '''(5 0 1) '''coordinates within '''Seeds section'''
+
 
+
 
+
This will change the location of the center of the stream lines
+
 
+
 
+
Now change the '''Number of Points''' to '''15'''
+
 
+
 
+
This show the number of stream lines you want to create
+
 
+
 
+
Change the '''Radius''' to '''1'''
+
 
+
 
+
This changes the radius of the stream line points
+
 
+
 
+
Keep the rest of the values as default
+
 
+
 
+
After all changes have been made click '''Apply''' on the '''Properties''' menu of the '''stream Tracer'''
+
  
  
Line 444: Line 277:
  
  
Thus we have learned to create stream lines in ParaView
+
Thus we have learned to create '''stream lines''' in '''ParaView'''.
  
  
After this close the ParaView window.
+
After this close the '''ParaView''' window.
  
  
 
We will go to the next problem statement.
 
We will go to the next problem statement.
 
|-
 
|-
| style="border-top:none;border-bottom:1pt solid #000000;border-left:1pt solid #000000;border-right:none;padding:0.18cm;" | Slide 10 : '''Problem Statement-Clip and Slice Filters'''
+
| Slide 10 : '''Problem Statement-Clip and Slice Filters'''
| style="border-top:none;border-bottom:1pt solid #000000;border-left:1pt solid #000000;border-right:1pt solid #000000;padding:0.18cm;" | '''Clip and Slice Filters'''* OpenFOAM has provided an inbuilt case file for {{anchor|DdeLink1641993596885}} '''hotRadiationRoom'''
+
| '''Clip and Slice Filters'''* OpenFOAM has provided an inbuilt case file for {{anchor|DdeLink1641993596885}} '''hotRadiationRoom'''
  
  
 
|-
 
|-
| style="border-top:none;border-bottom:1pt solid #000000;border-left:1pt solid #000000;border-right:none;padding:0.18cm;" | Slide 11 : '''Problem Statement-Clip and Slice Filters'''
+
| Slide 11 : '''Problem Statement-Clip and Slice Filters'''
| style="border-top:none;border-bottom:1pt solid #000000;border-left:1pt solid #000000;border-right:1pt solid #000000;padding:0.18cm;" | Here we will:* focus on post-processing of the '''hotRadiationRoom''' solution
+
| Here we will:
* '''learn to '''use filters like''' clip '''and '''slice '''in ParaView
+
* focus on post-processing of the '''hotRadiationRoom''' solution
 
+
* '''learn to '''use filters like''' clip '''and '''slice '''in '''ParaView'''
  
 
|-
 
|-
| style="border-top:none;border-bottom:1pt solid #000000;border-left:1pt solid #000000;border-right:none;padding:0.18cm;" | Terminal >>
+
| Terminal >>Visual Narration >>
 +
| To open the '''hotRadiationRoom''' case file
  
 +
Go to the '''hotRadiationRoom''' tutorial in '''BuoyantSimpleFoam '''within''' heatTransfer case directory.
  
 +
You can find this within OpenFOAM-4.1>tutorials '''directory.
  
  
 +
I have already copied this file in my work folder and '''run''' the '''simulation''' using '''BuoyantSimpleFoam'''.
  
  
 +
Now open this solved '''case''' file in the '''command terminal'''.
  
  
 +
Here I will type
 +
'''cd /opt/openfoam4/tutorials/heatTransfer/buoyantSimpleFoam/hotRadiationRoom'''
  
  
 +
To see the content inside type '''ls'''.
  
  
 +
You will see all these files here.
  
  
 +
Now to '''post-process''' this '''simulation''', type '''paraFoam''', in the '''command terminal'''.
  
  
 +
This will open the '''ParaView''' window.
  
 +
|-
 +
| ParaView Window >>
 +
| To visualize the '''domain geometry''', click '''Apply''' button on the top left corner of the '''Properties''' panel.
  
  
 +
This will show the '''domain geometry''' on the '''Graphic''' window.
  
  
 +
Now if you scroll down within the '''Properties''' menu.
  
Visual Narration >>
 
| style="border-top:none;border-bottom:1pt solid #000000;border-left:1pt solid #000000;border-right:1pt solid #000000;padding:0.18cm;" | To open the '''hotRadiationRoom''' case file
 
  
Go to the '''hotRadiationRoom''' tutorial in '''BuoyantSimpleFoam '''within''' heatTransfer case directory. You can find this within OpenFOAM-4.1>tutorials '''directory
+
You will see the different types of '''Volume Field''' available for visualization.
  
  
I have already copied this file in my work folder and run the simulation using '''BuoyantSimpleFoam'''
+
Here we will visualize the '''Temperature field''' within the '''domain'''.
  
  
Now open this solved case file in the command terminal.
+
For this check the '''T variable''' within the '''Volume Field''' and click on '''Apply'''.
  
  
Here I will type:
+
Now go to the '''Tool Bar'''.
  
<div style="color:#000000;">'''cd /opt/openfoam4/tutorials/heatTransfer/buoyantSimpleFoam/hotRadiationRoom'''</div>
 
  
 +
Change the '''vtkBlockColors''' to '''T''' from the drop down options.
  
<div style="color:#000000;">To see the content inside type:</div>
 
  
<div style="color:#000000;">'''ls'''</div>
+
This will show the initial '''flow conditions''' on the '''Graphic '''window.
  
  
<div style="color:#000000;">You will see all these files here</div>
+
Go to the '''Tool Bar''' and set the directional view to '''+Z'''.
  
  
<div style="color:#000000;">Now to post-process this simulation type:</div>
+
Now go to the '''Menu bar''' and click '''Play''' button.
  
<div style="color:#000000;">'''paraFoam'''</div>
 
  
<div style="color:#000000;">in the command terminal.</div>
+
You can see the temperature field pattern of the '''converged solution'''.
  
  
<div style="color:#000000;">This will open the ParaView window</div>
+
This will visualize the flow temperature field after 900 iterations.
|-
+
| style="border-top:none;border-bottom:1pt solid #000000;border-left:1pt solid #000000;border-right:none;padding:0.18cm;" | ParaView Window >>
+
| style="border-top:none;border-bottom:1pt solid #000000;border-left:1pt solid #000000;border-right:1pt solid #000000;padding:0.18cm;" | To visualize the domain geometry click '''Apply''' button on the top left corner of the '''Properties''' panel
+
  
  
This will show the domain geometry on the '''Graphic window'''
+
Now click and scroll on the '''Graphic''' window.
  
 
+
You can clearly see the temperature gradient due to radiation near the hot object.
Now if you scroll down within the '''Properties''' menu
+
 
+
 
+
You will see the different types of '''Volume Field''' available for visualization
+
 
+
 
+
Here we will visualize the '''Temperature field''' within the domain
+
 
+
 
+
For this check the '''T''' variable within the '''Volume Field and click on Apply'''
+
 
+
 
+
Now go to the '''Tool Bar '''
+
 
+
 
+
Change the '''vtkBlockColors''' to '''T''' from the drop down options
+
 
+
 
+
This will show the initial flow conditions on the graphic window
+
 
+
 
+
Go to the '''Tool Bar''' and set the directional view to '''+Z'''
+
 
+
 
+
Now go to the '''Menu bar''' and click '''Play''' button
+
 
+
 
+
You can see the temperature field pattern of the '''converged solution'''
+
 
+
 
+
This will visualize the flow temperature field after 900 iterations
+
 
+
 
+
Now click and scroll on the '''Graphic''' window. You can clearly see the temperature gradient due to radiation near the hot object.
+
  
  
Line 568: Line 376:
 
Thus we need to get a sectional or planar view of the field.
 
Thus we need to get a sectional or planar view of the field.
 
|-
 
|-
| style="border-top:none;border-bottom:1pt solid #000000;border-left:1pt solid #000000;border-right:none;padding:0.18cm;" | '''ParaView Window >>'''
+
| '''ParaView Window >>''' Visual Narration >>
 
+
| First we will learn to create a sectional view of the field.
 
+
 
+
 
+
 
+
 
+
 
+
 
+
 
+
 
+
 
+
 
+
 
+
 
+
Visual Narration >>
+
| style="border-top:none;border-bottom:1pt solid #000000;border-left:1pt solid #000000;border-right:1pt solid #000000;padding:0.18cm;" | First we will learn to create a sectional view of the field  
+
  
  
To do this, click on the '''clip''' filter on the '''Tool''' Bar
+
To do this, click on the '''clip''' filter on the '''Tool''' Bar.
  
  
This will add a new component to the pipeline window
+
This will add a new component to the '''Pipeline''' window.
  
  
Now in the '''Properties''' panel select Y''' Normal'''
+
Now in the '''Properties''' panel select '''Y Normal'''.
  
  
Scroll on the Graphic Window like this. Then shift the reference section to the middle of the hot box.
+
Scroll on the '''Graphic''' window like this. Then shift the reference section to the middle of the hot box.
  
  
After this click '''Apply''' on the Properties panel
+
After this click '''Apply''' on the '''Properties''' panel.
  
  
Now change the view direction to '''+Y''' on the '''Tool''' Bar
+
Now change the view direction to '''+Y''' on the toolbar.
  
  
Line 608: Line 401:
  
  
Now delete this filter to visualize the full domain from the '''Properties''' panel
+
Now delete this filter to visualize the full domain from the '''Properties''' panel.
 
|-
 
|-
| style="border-top:none;border-bottom:1pt solid #000000;border-left:1pt solid #000000;border-right:none;padding:0.18cm;" | '''ParaView Window >>'''
+
| '''ParaView Window >>'''
| style="border-top:none;border-bottom:1pt solid #000000;border-left:1pt solid #000000;border-right:1pt solid #000000;padding:0.18cm;" | Now we will learn to create a planar view of the field  
+
| Now we will learn to create a planar view of the field.
  
  
To do this, click on the '''slice''' filter on the '''Tool''' Bar
+
To do this, click on the '''slice''' filter on the toolbar.
  
  
This will add a new component to the pipeline window
+
This will add a new component to the '''Pipeline''' window.
  
  
Now in the Properties panel select '''Y Normal'''
+
Now in the Properties panel select '''Y Normal'''.
  
  
Scroll on the '''Graphic''' Window like this.  
+
Scroll on the '''Graphic''' window like this.  
  
  
Now change the view direction to '''+Z''' on the '''Tool''' Bar
+
Now change the view direction to '''+Z''' on the toolbar.
  
  
Line 632: Line 425:
  
  
After this click '''Apply''' on the '''Properties''' panel
+
After this click '''Apply''' on the '''Properties''' panel.
  
  
Now change the view direction to '''+Y''' on the '''Tool''' Bar
+
Now change the view direction to '''+Y''' on the toolbar.
  
  
Thus you can see a plane section view of the temperature field
+
Thus you can see a plane section view of the temperature field.
 
|-
 
|-
| style="border-top:none;border-bottom:1pt solid #000000;border-left:1pt solid #000000;border-right:none;padding:0.18cm;color:#000000;" | Close the ParaView window and switch to the slides
+
|Close the '''ParaView''' window and switch to the slides
| style="border-top:none;border-bottom:1pt solid #000000;border-left:1pt solid #000000;border-right:1pt solid #000000;padding:0.18cm;color:#000000;" | Close the ParaView Window.
+
| Close the '''ParaView''' window.
 
|-
 
|-
| style="border-top:none;border-bottom:1pt solid #000000;border-left:1pt solid #000000;border-right:none;padding:0.18cm;color:#000000;" | Slide 12: Summary
+
Slide 12: Summary
| style="border-top:none;border-bottom:1pt solid #000000;border-left:1pt solid #000000;border-right:1pt solid #000000;padding:0.18cm;" | <div style="color:#000000;">Let us summarize.</div>
+
|Let us summarize.
  
  
<div style="color:#000000;">In this tutorial, we learnt some '''Basic Post-Processing using ParaView'''</div>
+
In this tutorial, we learnt some basic '''Post-Processing''' using '''ParaView'''.
 
|-
 
|-
| style="border-top:none;border-bottom:1pt solid #000000;border-left:1pt solid #000000;border-right:none;padding:0.18cm;color:#000000;" | Slide 13: Summary
+
|Slide 13: Summary
| style="border-top:none;border-bottom:1pt solid #000000;border-left:1pt solid #000000;border-right:1pt solid #000000;padding:0.18cm;" | Under this we have learnt to* <div style="color:#000000;">Visualize field variable</div>
+
| Under this we have learnt to
* <div style="color:#000000;">Create Velocity Vectors</div>
+
*Visualize field variable
* <div style="color:#000000;">Create Stream lines</div>
+
*Create Velocity Vectors
* <div style="color:#000000;">Use clip and slice filters</div>
+
*Create Stream lines
 
+
*Use clip and slice filters
  
 
|-
 
|-
| style="border-top:none;border-bottom:1pt solid #000000;border-left:1pt solid #000000;border-right:none;padding:0.18cm;color:#000000;" | Slide 14: Exercise
+
| Slide 14: Exercise
| style="border-top:none;border-bottom:1pt solid #000000;border-left:1pt solid #000000;border-right:1pt solid #000000;padding:0.18cm;" | <div style="color:#000000;">You can use the discussed utilities on other inbuilt case files.</div>
+
|You can use the discussed utilities on other inbuilt case files.
  
  
<div style="color:#000000;">This will help you understand the post-processing using ParaView better.</div>
+
This will help you understand the post-processing using ParaView better.
 
|-
 
|-
| style="border-top:none;border-bottom:1pt solid #000000;border-left:1pt solid #000000;border-right:none;padding:0.18cm;" | <div style="color:#000000;">Slide 15:</div>
+
| Slide 15:
  
 +
Forum to answer questions
 +
| Please post your timed queries in this forum.
  
<div style="color:#000000;">Forum to answer questions</div>
 
| style="border-top:none;border-bottom:1pt solid #000000;border-left:1pt solid #000000;border-right:1pt solid #000000;padding:0.18cm;" | <div style="color:#000000;">Please post your timed queries in this forum.</div>
 
 
 
<div style="color:#000000;"></div>
 
 
<div style="color:#000000;"></div>
 
 
|-
 
|-
| style="border-top:none;border-bottom:1pt solid #000000;border-left:1pt solid #000000;border-right:none;padding:0.18cm;" | <div style="color:#000000;">Slide 16:</div>
+
| Slide 16:
  
 +
Forum to answer questions
 +
| Please post your general queries on '''OpenFOAM''' in this forum.
  
<div style="color:#000000;">Forum to answer questions</div>
 
| style="border-top:none;border-bottom:1pt solid #000000;border-left:1pt solid #000000;border-right:1pt solid #000000;padding:0.18cm;" | <span style="background-color:#ffffff;color:#000000;">Please post your general queries on </span><span style="background-color:#ffffff;color:#000000;">'''OpenFOAM'''</span><span style="background-color:#ffffff;color:#000000;"> in this forum.</span>
 
 
|-
 
|-
| style="border-top:none;border-bottom:1pt solid #000000;border-left:1pt solid #000000;border-right:none;padding:0.18cm;" | <div style="color:#000000;">Slide 17:</div>
+
|Slide 17:
  
 
+
Case Study Project
<div style="color:#000000;">Case Study Project</div>
+
| The '''FOSSEE ''' team coordinates the Case Study project.
| style="border-top:none;border-bottom:1pt solid #000000;border-left:1pt solid #000000;border-right:1pt solid #000000;padding:0.18cm;" | <span style="background-color:#ffffff;color:#000000;">The </span><span style="background-color:#ffffff;color:#000000;">'''FOSSEE '''</span><span style="background-color:#ffffff;color:#000000;">team coordinates the </span><span style="background-color:#ffffff;color:#000000;">Case Study </span><span style="background-color:#ffffff;color:#000000;">project.</span>
+
 
|-
 
|-
| style="border-top:none;border-bottom:1pt solid #000000;border-left:1pt solid #000000;border-right:none;padding:0.18cm;" | <div style="color:#000000;">Slide 18:</div>
+
| Slide 18:
 
+
  
<div style="color:#000000;">Lab Migration Project</div>
+
Lab Migration Project
| style="border-top:none;border-bottom:1pt solid #000000;border-left:1pt solid #000000;border-right:1pt solid #000000;padding:0.18cm;" |  
+
|  
 
|-
 
|-
| style="border-top:none;border-bottom:1pt solid #000000;border-left:1pt solid #000000;border-right:none;padding:0.18cm;" | <div style="color:#000000;">Slide 19:</div>
+
| Slide 19:
  
<div style="color:#000000;">Acknowledgement</div>
+
Acknowledgement
  
  
<div style="color:#000000;">http://spoken-tutorial.org</div>
+
https://spoken-tutorial.org
| style="border-top:none;border-bottom:1pt solid #000000;border-left:1pt solid #000000;border-right:1pt solid #000000;padding:0.18cm;" | <div style="color:#000000;">The Spoken Tutorial Project is funded by NMEICT, MHRD, Govt. of India</div>
+
| The Spoken Tutorial Project is funded by NMEICT, MHRD, Govt. of India.
  
  
<div style="color:#000000;">For more details, visit this website.</div>
+
For more details, visit this website.
 
|-
 
|-
| style="border-top:none;border-bottom:1pt solid #000000;border-left:1pt solid #000000;border-right:none;padding:0.18cm;color:#000000;" | Thank You
+
|Thank You
| style="border-top:none;border-bottom:1pt solid #000000;border-left:1pt solid #000000;border-right:1pt solid #000000;padding:0.18cm;color:#000000;" | This is Deepa Vedartham from IIT Bombay signing off. Thanks for watching.
+
| This is Deepa Vedartham from IIT Bombay signing off. Thanks for watching.
 
|-
 
|-
 
|}
 
|}

Revision as of 18:38, 22 August 2019

Tutorial : Basic Post-Processing using ParaView

Script : Subhasree Basu

Narration : Deepa Vedartham

Keywords: OpenFOAM-5, Velocity vectors, Stream lines, slice, clip, ParaView, Spoken Tutorial


Slide 12: Summary
Visual Cue Narration
Slide 1 : Title Hello and welcome to the spoken tutorial on Basic Post-Processing using ParaView.
Slide 2 : Learning Objectives In this tutorial, we will learn some basic visualization techniques in ParaView.
Slide 3 : Learning Objectives Under this we will learn:
  1. Variable visualization
  2. Velocity vector visualization
  3. Streamlines visualization
  4. Slice and Clip filters

Slide 4 :

System Requirement

To record this tutorial I am using
  • Ubuntu Linux Operating system 16.04 LTS
  • OpenFOAM version 4.1
  • ParaView version 5.0
Slide 5 :

Pre-requisite

To practice this tutorial, the user should have
  • Basic knowledge of Linux terminal commands
  • Experience with simulating cases in OpenFOAM
  • Working skills in ParaView

If not, please go through the previous OpenFOAM spoken tutorials on this website: https://spoken-tutorial.org/

Slide 6 : Problem Statement-Variable Visualization Variable visualization
  • OpenFOAM has provided an inbuilt case file for pitzDaily.
Slide 7 : Problem Statement-Variable Visualization Here we will:
  • focus on post-processing of the pitzDaily solution
  • learn to visualize flow field variables like velocity, pressure, vorticity, etc.
  • learn to visualize velocity vector within the flow field
Slide You can find the pitzDaily case file within the simpleFoam directory within OpenFOAM-4.0>tutorials directory.


I have already copied this file in my work folder and run the simulation in my machine using simpleFoam.

Open a command Terminal. Now we will open this solved case file in the command terminal.
Type cd /opt/openfoam4/tutorials/incompressible/simpleFoam/pitzDaily Here I will type:

cd /opt/openfoam4/tutorials/incompressible/simpleFoam/pitzDaily

Type ls To see the content inside this folder type ls.


You will see all these files here.

Type paraFoam Now to post-process this simulation, type paraFoam, in the command terminal.


This will open the ParaView window.

ParaView Window >> click Apply To visualize the domain geometry click Apply button.

This is on the top left corner of the Properties panel.

Graphic window >> This will show the domain geometry on the Graphic window.
Scroll down >> point to the different types of Volume fields Now scroll down within the Properties panel.


You will see the different types of Volume Fields available for visualization.


Here we will visualize the velocity field within the domain.

Check the U variable For this, check the U variable within the Volume Field.


Please note that the U variable is available to visualization, by default.

Go to the toolbar. Now go to the toolbar.
Drop-down >>change vtkBlockColors to U Change the vtkBlockColors to U from the drop-down options.


This will show the initial flow conditions on the Graphic window.

Menu bar >> click the lastFrame button. Now go to the Menu bar and click the lastFrame button.
Velocity field pattern You can see the velocity field pattern of the converged solution.


This will visualize the flow velocity field after 298 iterations.


Thus we have learnt to visualize field variables in ParaView.

Click on the Glyph filter >> point to the Pipeline window. After this we will learn to visualize velocity vectors.


To do this, click on the Glyph filter on the toolbar.


This will add a new component to the Pipeline window.

Scroll within the Glyph Properties panel. Now within the Glyph Properties panel make sure the
  • Glyph type is arrow
  • Scale Mode is off
  • Scaling Factor is 0.003


Keep the rest as default.

Click Apply button. Click Apply button on the top left corner of the Properties panel.


You will see small velocity vectors visualized within the domain.

Point to circulation zone and magnitude of velocity. You can now clearly see the circulation zone and magnitude of velocity.


Thus we have learned to create velocity vector in a flow field.

Close ParaView window After this close ParaView window.

Now let us go back to the next problem statement.

Slide 8 : Problem Statement-Streamlines Visualization Streamlines Visualization

OpenFOAM has provided an inbuilt case file for flow over a motorBike.

Slide 9 : Problem Statement-Streamlines Visualization Here we will:
  • focus on post-processing of the motorBike solution
  • learn to create stream lines and view them in ParaView
Terminal >> Visual Narration >> You can find the motorBike case file in the simpleFoam directory within OpenFOAM-4.1>tutorials directory.


I have already copied this file in my work folder.

Then run the simulation using simpleFoam.

Now open this solved case file in the command terminal.


Here I will type cd ..

cd motorBike


To see the content inside type ls


You will see all these files here.


Now to post-process this simulation, type paraFoam in the command terminal.


This will open the ParaView window.

ParaView Window >>Visual Narration >>Visual Narration >> To visualize the domain geometry, click Apply button on the top left corner of the Properties panel.


To include the last iteration, click on the lastFrame button on the Menu bar.


Go to the Tool Bar and set the directional view to +Y.


Change the vtkBlockColors to U from the drop down options.


Now scroll down on the Properties panel to Opacity.


Reduce the Opacity to make the domain transparent like this.


You will be able to see the motor bike with the rider through the domain now.


To create streamlines around the motor bike click on stream Tracer filter on the Tool Bar.


This will add a new component within the Pipeline browser.


Here in the Properties panel change the Point to (5 0 1) coordinates within Seeds section.


This will change the location of the center of the stream lines.


Now change the Number of Points to 15.


This show the number of stream lines you want to create.


Change the Radius to 1.


This changes the radius of the stream line points.


Keep the rest of the values as default.


After all changes have been made, click Apply on the Properties menu of the stream Tracer.


You can see stream lines around the motor bike along with their magnitude.


Thus we have learned to create stream lines in ParaView.


After this close the ParaView window.


We will go to the next problem statement.

Slide 10 : Problem Statement-Clip and Slice Filters Clip and Slice Filters* OpenFOAM has provided an inbuilt case file for Template:Anchor hotRadiationRoom


Slide 11 : Problem Statement-Clip and Slice Filters Here we will:
  • focus on post-processing of the hotRadiationRoom solution
  • learn to use filters like clip and slice in ParaView
Terminal >>Visual Narration >> To open the hotRadiationRoom case file

Go to the hotRadiationRoom tutorial in BuoyantSimpleFoam within heatTransfer case directory.

You can find this within OpenFOAM-4.1>tutorials directory.


I have already copied this file in my work folder and run the simulation using BuoyantSimpleFoam.


Now open this solved case file in the command terminal.


Here I will type cd /opt/openfoam4/tutorials/heatTransfer/buoyantSimpleFoam/hotRadiationRoom


To see the content inside type ls.


You will see all these files here.


Now to post-process this simulation, type paraFoam, in the command terminal.


This will open the ParaView window.

ParaView Window >> To visualize the domain geometry, click Apply button on the top left corner of the Properties panel.


This will show the domain geometry on the Graphic window.


Now if you scroll down within the Properties menu.


You will see the different types of Volume Field available for visualization.


Here we will visualize the Temperature field within the domain.


For this check the T variable within the Volume Field and click on Apply.


Now go to the Tool Bar.


Change the vtkBlockColors to T from the drop down options.


This will show the initial flow conditions on the Graphic window.


Go to the Tool Bar and set the directional view to +Z.


Now go to the Menu bar and click Play button.


You can see the temperature field pattern of the converged solution.


This will visualize the flow temperature field after 900 iterations.


Now click and scroll on the Graphic window.

You can clearly see the temperature gradient due to radiation near the hot object.


But we are unable to visualize the whole section.


Thus we need to get a sectional or planar view of the field.

ParaView Window >> Visual Narration >> First we will learn to create a sectional view of the field.


To do this, click on the clip filter on the Tool Bar.


This will add a new component to the Pipeline window.


Now in the Properties panel select Y Normal.


Scroll on the Graphic window like this. Then shift the reference section to the middle of the hot box.


After this click Apply on the Properties panel.


Now change the view direction to +Y on the toolbar.


Thus you can see the sectional view of the temperature field


Now delete this filter to visualize the full domain from the Properties panel.

ParaView Window >> Now we will learn to create a planar view of the field.


To do this, click on the slice filter on the toolbar.


This will add a new component to the Pipeline window.


Now in the Properties panel select Y Normal.


Scroll on the Graphic window like this.


Now change the view direction to +Z on the toolbar.


Then shift the reference section to the middle of the hot box.


After this click Apply on the Properties panel.


Now change the view direction to +Y on the toolbar.


Thus you can see a plane section view of the temperature field.

Close the ParaView window and switch to the slides Close the ParaView window.
Let us summarize.


In this tutorial, we learnt some basic Post-Processing using ParaView.

Slide 13: Summary Under this we have learnt to
  • Visualize field variable
  • Create Velocity Vectors
  • Create Stream lines
  • Use clip and slice filters
Slide 14: Exercise You can use the discussed utilities on other inbuilt case files.


This will help you understand the post-processing using ParaView better.

Slide 15:

Forum to answer questions

Please post your timed queries in this forum.
Slide 16:

Forum to answer questions

Please post your general queries on OpenFOAM in this forum.
Slide 17:

Case Study Project

The FOSSEE team coordinates the Case Study project.
Slide 18:

Lab Migration Project

Slide 19:

Acknowledgement


https://spoken-tutorial.org

The Spoken Tutorial Project is funded by NMEICT, MHRD, Govt. of India.


For more details, visit this website.

Thank You This is Deepa Vedartham from IIT Bombay signing off. Thanks for watching.

Contributors and Content Editors

DeepaVedartham, Nancyvarkey