Difference between revisions of "OpenFOAM/C2/Basic-Post-Processing-using-ParaView/English"
Nancyvarkey (Talk | contribs) |
Nancyvarkey (Talk | contribs) |
||
| Line 129: | Line 129: | ||
|- | |- | ||
|Menu bar >> click '''the lastFrame''' button. | |Menu bar >> click '''the lastFrame''' button. | ||
| − | |Now go to the '''Menu bar''' and click ''' | + | |Now go to the '''Menu bar''' and click the '''lastFrame''' button. |
|- | |- | ||
| Line 199: | Line 199: | ||
I have already copied this file in my work folder. | I have already copied this file in my work folder. | ||
| − | + | And run the '''simulation''' using '''simpleFoam'''. | |
|- | |- | ||
| − | | | + | |Terminal |
| − | + | ||
| + | Type '''cd ..''' | ||
| − | + | Type '''cd motorBike''' | |
| − | ''' | + | |Now open this solved '''case''' file in the '''command terminal'''. |
| − | + | Here I will type '''cd space dot dot''' | |
| + | '''cd space motorBike''' | ||
| − | + | |- | |
| + | |Type '''ls''' | ||
| + | |To see the content inside type '''ls''' | ||
| − | Now to '''post-process''' this '''simulation''', type '''paraFoam''' in the '''command terminal'''. | + | 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. | This will open the '''ParaView''' window. | ||
|- | |- | ||
| − | | ParaView Window >> | + | | ParaView Window >>click '''Apply''' in '''Properties''' panel. |
| To visualize the '''domain geometry''', click '''Apply''' button on the top left corner of the '''Properties''' panel. | | To visualize the '''domain geometry''', click '''Apply''' button on the top left corner of the '''Properties''' panel. | ||
| + | |- | ||
| + | |'''Menu bar''' >> click on '''lastFrame''' button | ||
| + | |To include the last iteration, click on the '''lastFrame''' button on the '''Menu bar'''. | ||
| − | + | |- | |
| + | |'''Tool Bar''' >> directional view >> '''+Y'''. | ||
| + | |Go to the '''Tool Bar''' and set the directional view to '''+Y'''. | ||
| + | |- | ||
| + | |In drop-down >> Change '''vtkBlockColors''' to U | ||
| + | |Change the '''vtkBlockColors''' to '''U''' from the drop-down options. | ||
| − | + | |- | |
| + | |Scroll down '''Properties panel''' to '''Opacity''' | ||
| + | |Now scroll down on the '''Properties panel''' to '''Opacity'''. | ||
| + | |- | ||
| + | |Reduce the '''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. | ||
| − | + | |- | |
| + | |'''Tool Bar''' >> click on '''stream Tracer''' filter | ||
| + | |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. | |
| + | |- | ||
| + | |'''Properties''' panel >>'''Seeds section''' >> change '''Point''' to '''(5 0 1) ''' | ||
| − | |||
| − | + | Change '''Number of Points''' to '''15''' | |
| − | + | ||
| − | + | ||
| − | + | ||
| − | + | ||
| − | Here in the '''Properties''' panel change the '''Point''' to '''(5 0 1) '''coordinates within '''Seeds section'''. | + | Change the '''Radius''' to '''1''' |
| + | |Here in the '''Properties''' panel change the '''Point''' to '''(5 0 1) '''coordinates within '''Seeds section'''. | ||
| Line 259: | Line 279: | ||
| − | This show the number of stream lines you want to create. | + | This show the number of '''stream lines''' you want to create. |
| Line 265: | Line 285: | ||
| − | This changes the radius of the stream line points. | + | This changes the radius of the '''stream line''' points. |
Keep the rest of the values as default. | Keep the rest of the values as default. | ||
| + | |- | ||
| + | |Click '''Apply''' | ||
| + | |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. | |
| − | You can see stream lines around the motor bike along with their magnitude. | + | |
Thus we have learned to create '''stream lines''' in '''ParaView'''. | Thus we have learned to create '''stream lines''' in '''ParaView'''. | ||
| + | |- | ||
| + | |Close '''ParaView''' window. | ||
| + | |After this close the '''ParaView''' window. | ||
| − | + | |- | |
| + | | | ||
| + | |We will go to the next problem statement. | ||
| − | |||
| − | |||
|- | |- | ||
| Slide 10 : '''Problem Statement-Clip and Slice Filters''' | | Slide 10 : '''Problem Statement-Clip and Slice Filters''' | ||
| − | | '''Clip and Slice Filters'''* OpenFOAM has provided an inbuilt case file for | + | | '''Clip and Slice Filters''' |
| − | + | * '''OpenFOAM''' has provided an '''inbuilt case''' file for '''hotRadiationRoom''' | |
|- | |- | ||
| Slide 11 : '''Problem Statement-Clip and Slice Filters''' | | Slide 11 : '''Problem Statement-Clip and Slice Filters''' | ||
| Here we will: | | Here we will: | ||
| − | * focus on post-processing of the '''hotRadiationRoom''' solution | + | * focus on '''post-processing''' of the '''hotRadiationRoom''' solution |
* '''learn to '''use filters like''' clip '''and '''slice '''in '''ParaView''' | * '''learn to '''use filters like''' clip '''and '''slice '''in '''ParaView''' | ||
|- | |- | ||
| − | | Terminal >> | + | | Terminal >> Open case file as per narration |
| − | | To open the '''hotRadiationRoom''' | + | | |
| + | *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'''. | |
| − | 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'''. | Now open this solved '''case''' file in the '''command terminal'''. | ||
| − | + | |- | |
| − | Here I will type | + | |Type |
| + | '''cd /opt/openfoam4/tutorials/heatTransfer/buoyantSimpleFoam/hotRadiationRoom''' | ||
| + | |Here I will type | ||
'''cd /opt/openfoam4/tutorials/heatTransfer/buoyantSimpleFoam/hotRadiationRoom''' | '''cd /opt/openfoam4/tutorials/heatTransfer/buoyantSimpleFoam/hotRadiationRoom''' | ||
| − | + | |- | |
| − | To see the content inside type '''ls'''. | + | |Type '''ls''' |
| + | |To see the content inside type '''ls'''. | ||
You will see all these files here. | You will see all these files here. | ||
| − | + | |- | |
| − | Now to '''post-process''' this '''simulation''', type '''paraFoam''', in the '''command terminal'''. | + | |'''Terminal''' >> type '''paraFoam''' |
| + | |Now to '''post-process''' this '''simulation''', type '''paraFoam''', in the '''command terminal'''. | ||
| Line 326: | Line 355: | ||
|- | |- | ||
| − | | ParaView Window >> | + | | ParaView Window >> click '''Apply''' button |
| To visualize the '''domain geometry''', click '''Apply''' button on the top left corner of the '''Properties''' panel. | | To visualize the '''domain geometry''', click '''Apply''' button on the top left corner of the '''Properties''' panel. | ||
| Line 332: | Line 361: | ||
This will show the '''domain geometry''' on the '''Graphic''' window. | This will show the '''domain geometry''' on the '''Graphic''' window. | ||
| − | + | |- | |
| − | Now | + | |Scroll inside '''Properties''' menu |
| + | |Now scroll down within the '''Properties''' menu. | ||
You will see the different types of '''Volume Field''' available for visualization. | You will see the different types of '''Volume Field''' available for visualization. | ||
| − | + | |- | |
| − | Here we will visualize the '''Temperature field''' within the '''domain'''. | + | |'''Volume Field''' >> check '''T variable''' >> click on '''Apply'''. |
| + | |Here we will visualize the '''Temperature field''' within the '''domain'''. | ||
For this check the '''T variable''' within the '''Volume Field''' and click on '''Apply'''. | For this check the '''T variable''' within the '''Volume Field''' and click on '''Apply'''. | ||
| − | + | |- | |
| − | + | |Toolbar drop-down >> change '''vtkBlockColors''' to '''T''' | |
| + | |Now go to the toolbar. | ||
| Line 353: | Line 385: | ||
This will show the initial '''flow conditions''' on the '''Graphic '''window. | This will show the initial '''flow conditions''' on the '''Graphic '''window. | ||
| + | |- | ||
| + | |Toolbar >> set directional view to '''+Z'''. | ||
| + | |Go to the toolbar and set the directional view to '''+Z'''. | ||
| − | + | |- | |
| − | + | |Menu bar >> click '''Play''' | |
| − | + | |Now go to the '''Menu bar''' and click '''Play''' button. | |
| − | Now go to the '''Menu bar''' and click '''Play''' button. | + | |
| Line 365: | Line 399: | ||
This will visualize the flow temperature field after 900 iterations. | This will visualize the flow temperature field after 900 iterations. | ||
| − | + | |- | |
| − | Now click and scroll on the '''Graphic''' window. | + | |Scroll '''Graphic''' window. |
| + | |Now click and scroll on the '''Graphic''' window. | ||
You can clearly see the temperature gradient due to radiation near the hot object. | You can clearly see the temperature gradient due to radiation near the hot object. | ||
| Line 376: | Line 411: | ||
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. | ||
|- | |- | ||
| − | | '''ParaView Window >>''' | + | | '''ParaView Window >> toolbar >> click on '''clip''' filter |
| First we will learn to create a sectional view of the field. | | First we will learn to create a sectional view of the field. | ||
| − | To do this, click on the '''clip''' filter on the | + | To do this, click on the '''clip''' filter on the toolbar. |
This will add a new component to the '''Pipeline''' window. | This will add a new component to the '''Pipeline''' window. | ||
| + | |- | ||
| + | |'''Properties''' panel >> select '''Y Normal'''. | ||
| + | |Now in the '''Properties''' panel select '''Y Normal'''. | ||
| − | + | |- | |
| + | |Scroll '''Graphic''' window >> shift '''reference''' section | ||
| + | |Scroll on the '''Graphic''' window like this. Then shift the '''reference''' section to the middle of the hot box. | ||
| + | |- | ||
| + | |'''Properties''' panel >> click '''Apply''' | ||
| + | |After this click '''Apply''' on the '''Properties''' panel. | ||
| − | + | |- | |
| + | |Toolbar >> change view direction to '''+Y''' | ||
| + | |Now change the view direction to '''+Y''' on the toolbar. | ||
| − | + | Thus you can see the sectional view of the temperature field. | |
| − | + | ||
| − | + | ||
| − | + | ||
| − | + | ||
| − | + | ||
| − | Thus you can see the sectional view of the temperature field | + | |
| + | |- | ||
| + | |Delete this filter | ||
| + | |Now delete this filter to visualize the full domain from the '''Properties''' panel. | ||
| − | |||
|- | |- | ||
| − | | '''ParaView Window >>''' | + | | '''ParaView Window >>''' toolbar >> click on '''slice''' filter |
| Now we will learn to create a planar view of the field. | | Now we will learn to create a planar view of the field. | ||
| Line 412: | Line 453: | ||
This will add a new component to the '''Pipeline''' window. | This will add a new component to the '''Pipeline''' window. | ||
| + | |- | ||
| + | |'''Properties''' panel >> select '''Y Normal'''. | ||
| + | |Now in the '''Properties''' panel select '''Y Normal'''. | ||
| − | + | |- | |
| − | + | |Scroll '''Graphic''' window >> toolbar >> change view direction to '''+Z''' | |
| − | + | |Scroll on the '''Graphic''' window like this. | |
| − | Scroll on the '''Graphic''' window like this. | + | |
Now change the view direction to '''+Z''' on the toolbar. | Now change the view direction to '''+Z''' on the toolbar. | ||
| + | |- | ||
| + | |'''Graphic''' window >> shift '''reference''' section | ||
| + | |Then shift the '''reference''' section to the middle of the hot box. | ||
| − | + | |- | |
| + | |'''Properties''' panel >> click '''Apply''' | ||
| + | |After this click '''Apply''' on the '''Properties''' panel. | ||
| − | + | |- | |
| − | + | |toolbar >> change view direction to '''+Y''' | |
| − | + | |Now change the view direction to '''+Y''' on the toolbar. | |
| − | + | ||
| − | Now change the view direction to '''+Y''' on the toolbar. | + | |
| Line 436: | Line 482: | ||
| Close the '''ParaView''' window. | | Close the '''ParaView''' window. | ||
|- | |- | ||
| − | Slide 12: Summary | + | |Slide 12: Summary |
|Let us summarize. | |Let us summarize. | ||
In this tutorial, we learnt some basic '''Post-Processing''' using '''ParaView'''. | In this tutorial, we learnt some basic '''Post-Processing''' using '''ParaView'''. | ||
| − | + | ||
| − | + | Under this we have learnt to | |
| − | + | ||
*Visualize field variable | *Visualize field variable | ||
| − | *Create Velocity Vectors | + | *Create '''Velocity Vectors''' |
| − | *Create Stream lines | + | *Create '''Stream lines''' |
| − | *Use clip and slice filters | + | *Use '''clip''' and '''slice''' filters |
|- | |- | ||
| − | | Slide | + | | Slide 13: Exercise |
| − | |You can use the discussed utilities on other inbuilt case files. | + | |You can use the discussed utilities on other '''inbuilt case''' files. |
This will help you understand the post-processing using ParaView better. | This will help you understand the post-processing using ParaView better. | ||
|- | |- | ||
| − | | Slide | + | | Slide 14: |
Forum to answer questions | Forum to answer questions | ||
| Line 462: | Line 507: | ||
|- | |- | ||
| − | | Slide | + | | Slide 15: |
Forum to answer questions | Forum to answer questions | ||
| Line 468: | Line 513: | ||
|- | |- | ||
| − | |Slide | + | |Slide 16: |
Case Study Project | Case Study Project | ||
| − | | The '''FOSSEE ''' team coordinates the Case Study project. | + | | The '''FOSSEE ''' team coordinates the '''Case Study project'''. |
|- | |- | ||
| − | | Slide | + | | Slide 17: |
Lab Migration Project | Lab Migration Project | ||
| | | | ||
|- | |- | ||
| − | | Slide | + | | Slide 18: |
Acknowledgement | Acknowledgement | ||
Latest revision as of 18:35, 26 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
| 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:
|
| Slide 4 :
System Requirement |
To record this tutorial I am using
|
| Slide 5 :
Pre-requisite |
To practice this tutorial, the user should have
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
|
| Slide 7 : Problem Statement-Variable Visualization | Here we will:
|
| Slide | You can find the pitzDaily case file within the simpleFoam directory within OpenFOAM-4.0>tutorials directory.
|
| 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.
|
| Type paraFoam | Now to post-process this simulation, type paraFoam, in the command terminal.
|
| 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.
|
| Check the U variable | For this, check the U variable within the Volume Field.
|
| 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.
|
| 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.
|
| Click on the Glyph filter >> point to the Pipeline window. | After this we will learn to visualize velocity vectors.
|
| Scroll within the Glyph Properties panel. | Now within the Glyph Properties panel make sure the
|
| Click Apply button. | Click Apply button on the top left corner of the Properties panel.
|
| Point to circulation zone and magnitude of velocity. | You can now clearly see the circulation zone and magnitude of velocity.
|
| 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:
|
| Terminal >> Visual Narration >> | You can find the motorBike case file in the simpleFoam directory within OpenFOAM-4.1>tutorials directory.
And run the simulation using simpleFoam. |
| Terminal
Type cd .. Type cd motorBike |
Now open this solved case file in the command terminal.
cd space motorBike |
| Type ls | To see the content inside type ls
|
| Type paraFoam | Now to post-process this simulation, type paraFoam in the command terminal.
|
| ParaView Window >>click Apply in Properties panel. | To visualize the domain geometry, click Apply button on the top left corner of the Properties panel. |
| Menu bar >> click on lastFrame button | To include the last iteration, click on the lastFrame button on the Menu bar. |
| Tool Bar >> directional view >> +Y. | Go to the Tool Bar and set the directional view to +Y. |
| In drop-down >> Change vtkBlockColors to U | Change the vtkBlockColors to U from the drop-down options. |
| Scroll down Properties panel to Opacity | Now scroll down on the Properties panel to Opacity. |
| Reduce the Opacity | Reduce the Opacity to make the domain transparent like this.
|
| Tool Bar >> click on stream Tracer filter | To create streamlines around the motor bike, click on stream Tracer filter on the Tool Bar.
|
| Properties panel >>Seeds section >> change Point to (5 0 1)
|
Here in the Properties panel change the Point to (5 0 1) coordinates within Seeds section.
|
| Click Apply | After all changes have been made, click Apply on the Properties menu of the stream Tracer.
|
| Close ParaView window. | 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
|
| Slide 11 : Problem Statement-Clip and Slice Filters | Here we will:
|
| Terminal >> Open case file as per narration |
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.
| |
| Type
cd /opt/openfoam4/tutorials/heatTransfer/buoyantSimpleFoam/hotRadiationRoom |
Here I will type
cd /opt/openfoam4/tutorials/heatTransfer/buoyantSimpleFoam/hotRadiationRoom |
| Type ls | To see the content inside type ls.
|
| Terminal >> type paraFoam | Now to post-process this simulation, type paraFoam, in the command terminal.
|
| ParaView Window >> click Apply button | To visualize the domain geometry, click Apply button on the top left corner of the Properties panel.
|
| Scroll inside Properties menu | Now scroll down within the Properties menu.
|
| Volume Field >> check T variable >> click on Apply. | Here we will visualize the Temperature field within the domain.
|
| Toolbar drop-down >> change vtkBlockColors to T | Now go to the toolbar.
|
| Toolbar >> set directional view to +Z. | Go to the toolbar and set the directional view to +Z. |
| Menu bar >> click Play | Now go to the Menu bar and click Play button.
|
| Scroll Graphic window. | Now click and scroll on the Graphic window.
You can clearly see the temperature gradient due to radiation near the hot object.
|
| ParaView Window >> toolbar >> click on clip filter | First we will learn to create a sectional view of the field.
|
| Properties panel >> select Y Normal. | Now in the Properties panel select Y Normal. |
| Scroll Graphic window >> shift reference section | Scroll on the Graphic window like this. Then shift the reference section to the middle of the hot box. |
| Properties panel >> click Apply | After this click Apply on the Properties panel. |
| Toolbar >> change view direction to +Y | Now change the view direction to +Y on the toolbar.
|
| Delete this filter | Now delete this filter to visualize the full domain from the Properties panel. |
| ParaView Window >> toolbar >> click on slice filter | Now we will learn to create a planar view of the field.
|
| Properties panel >> select Y Normal. | Now in the Properties panel select Y Normal. |
| Scroll Graphic window >> toolbar >> change view direction to +Z | Scroll on the Graphic window like this.
|
| Graphic window >> shift reference section | Then shift the reference section to the middle of the hot box. |
| Properties panel >> click Apply | After this click Apply on the Properties panel. |
| toolbar >> change view direction to +Y | Now change the view direction to +Y on the toolbar.
|
| Close the ParaView window and switch to the slides | Close the ParaView window. |
| Slide 12: Summary | Let us summarize.
Under this we have learnt to
|
| Slide 13: Exercise | You can use the discussed utilities on other inbuilt case files.
|
| Slide 14:
Forum to answer questions |
Please post your timed queries in this forum. |
| Slide 15:
Forum to answer questions |
Please post your general queries on OpenFOAM in this forum. |
| Slide 16:
Case Study Project |
The FOSSEE team coordinates the Case Study project. |
| Slide 17:
Lab Migration Project |
|
| Slide 18:
Acknowledgement |
The Spoken Tutorial Project is funded by NMEICT, MHRD, Govt. of India.
|
| Thank You | This is Deepa Vedartham from IIT Bombay signing off. Thanks for watching. |