Difference between revisions of "OpenFOAM-version-7/C2/Installing-OpenFOAM-in-Ubuntu-Linux/English"

From Script | Spoken-Tutorial
Jump to: navigation, search
 
Line 33: Line 33:
 
|-
 
|-
 
|| Highlight '''Terminal''' on the machine
 
|| Highlight '''Terminal''' on the machine
|| Open a '''terminal''' by pressing '''Ctrl, Alt and T''' keys together.
+
|| Open a '''terminal''' by pressing '''Ctrl, Alt''' and '''T''' keys together.
  
  
Line 59: Line 59:
 
Type the '''password''' and press '''Enter'''.
 
Type the '''password''' and press '''Enter'''.
 
|-  
 
|-  
|| Only Narration
+
|| Press Ctrl + L
 
|| Let me clear the screen.
 
|| Let me clear the screen.
 
|-  
 
|-  
Line 73: Line 73:
 
|| Only Narration
 
|| Only Narration
 
|| Here onwards, please remember to press the '''Enter''' key after typing each '''command'''.
 
|| Here onwards, please remember to press the '''Enter''' key after typing each '''command'''.
 
+
|-
Let me clear the screen.  
+
||Press Ctrl + L
 +
||Let me clear the screen.  
 
|-  
 
|-  
 
|| [Terminal]
 
|| [Terminal]
Line 98: Line 99:
  
 
Point to the installation process
 
Point to the installation process
|| The installation may take some time depending upon your internet speed.
+
|| The installation may take some time depending upon your '''internet''' speed.
 
|-  
 
|-  
 
|| [Terminal]
 
|| [Terminal]
Line 109: Line 110:
 
|| Let’s now configure the system to use the installed '''OpenFOAM package'''.
 
|| Let’s now configure the system to use the installed '''OpenFOAM package'''.
  
 
+
|-
Let me clear the screen.
+
|| Press Ctrl + L
 +
||Let me clear the screen.
 
|-  
 
|-  
 
|| [Terminal]
 
|| [Terminal]
Line 134: Line 136:
  
  
Add the following line of '''code''' as shown.
+
Add the following line of code as shown.
  
  
Line 140: Line 142:
 
|-  
 
|-  
 
|| [Text Editor]  
 
|| [Text Editor]  
 
 
 
Ctrl + S and close the window
 
Ctrl + S and close the window
 
|| Save and close the file.
 
|| Save and close the file.
Line 149: Line 149:
  
  
To open a '''new terminal''', press '''Ctrl, Alt and T''' keys together.
+
To open a new '''terminal''', press '''Ctrl, Alt''' and '''T''' keys together.
 
|-  
 
|-  
 
|| [Terminal]
 
|| [Terminal]
Line 166: Line 166:
 
This confirms that '''OpenFOAM 7''' is properly installed.
 
This confirms that '''OpenFOAM 7''' is properly installed.
 
|-  
 
|-  
|| Only Narration
+
|| Press Ctrl + L
 
|| Let me clear the screen.
 
|| Let me clear the screen.
 
|-  
 
|-  
Line 188: Line 188:
 
|-  
 
|-  
 
|| [ParaView]  
 
|| [ParaView]  
 
 
 
Click on close
 
Click on close
 
|| '''Close''' this window.
 
|| '''Close''' this window.
Line 197: Line 195:
  
  
We can access '''OpenFOAM''' '''commands''' from the '''terminal '''now.
+
We can access '''OpenFOAM commands''' from the '''terminal '''now.
 
|-  
 
|-  
 
|| Only Narration
 
|| Only Narration
Line 207: Line 205:
 
|| Slide: Summary
 
|| Slide: Summary
 
|| In this tutorial, we have learnt how to:
 
|| In this tutorial, we have learnt how to:
* Install '''OpenFOAM''' version 7
+
* Install '''OpenFOAM7'''  
 
* Install '''ParaView''' version 5.6.0 and
 
* Install '''ParaView''' version 5.6.0 and
 
* Verify the installation
 
* Verify the installation
Line 218: Line 216:
 
|-
 
|-
 
|| Slide: Spoken Tutorial Workshops
 
|| Slide: Spoken Tutorial Workshops
|| We conduct workshops using Spoken Tutorials and give certificates.
+
|| We conduct workshops using spoken tutorials and give certificates.
  
  
Line 241: Line 239:
 
|| Slide: FOSSEE Case Study Project
 
|| Slide: FOSSEE Case Study Project
 
||  
 
||  
* The FOSSEE team coordinates solving feasible CFD problems of reasonable complexity using OpenFOAM.
+
* The FOSSEE team coordinates solving feasible '''CFD''' problems of reasonable complexity using '''OpenFOAM'''.
 
* We give honorarium and certificates to those who do this.
 
* We give honorarium and certificates to those who do this.
 
* For more details, please visit these sites.
 
* For more details, please visit these sites.
Line 247: Line 245:
 
|-
 
|-
 
|| Slide: Spoken Tutorial
 
|| Slide: Spoken Tutorial
|| The Spoken Tutorial project is supported by MHRD, Govt. of India.
+
|| The '''Spoken Tutorial project''' is supported by MHRD, Govt. of India.
  
 
The script for this tutorial is contributed by Ashley.
 
The script for this tutorial is contributed by Ashley.

Latest revision as of 14:12, 21 July 2020

Title of the script: Installing OpenFOAM in Ubuntu

Author: Ashley Melvin

Keywords: OpenFOAM, ParaView, Linux, Ubuntu 18.04, video tutorial


Visual Cue Narration
Slide: Opening Slide Welcome to this tutorial on Installing OpenFOAM in Ubuntu Linux OS.
Slide: Learning Objective


In this tutorial, we will learn how to install:
  • OpenFOAM version 7 and
  • ParaView version 5.6.0
Slide: System Specifications This tutorial is recorded using:
  • Ubuntu Linux OS version 18.04
  • A working Internet connection and
  • A text editor
Only Narration We will install OpenFOAM using the terminal.
Highlight Terminal on the machine Open a terminal by pressing Ctrl, Alt and T keys together.


Make sure that you are connected to the Internet.

[Terminal]


sudo sh -c "wget -O - http://dl.openfoam.org/gpg.key | apt-key add -"

A public key needs to be added to the repository.


This key enables the repository to verify OpenFOAM package signatures.


To do this, in the Terminal, carefully type the following command and press Enter.

[Terminal]


Type the password >> Press Enter.

The machine will ask for the system password.


Type the password and press Enter.

Press Ctrl + L Let me clear the screen.
[Terminal]


sudo add-apt-repository http://dl.openfoam.org/ubuntu

Now type the following command and press Enter.


This will enable apt to search for dl.openfoam.org in the list of software repositories.

Only Narration Here onwards, please remember to press the Enter key after typing each command.
Press Ctrl + L Let me clear the screen.
[Terminal]


sudo apt-get update

Now type the following command to update the apt package list.
[Terminal]


sudo apt-get -y install openfoam7

The repository is updated.


Next let us install OpenFOAM version 7.


To do so, type the following command in the terminal.

[Terminal]


Point to the installation process

The installation may take some time depending upon your internet speed.
[Terminal]


Point to the installation complete message

The installation is done now.
Only Narration Let’s now configure the system to use the installed OpenFOAM package.
Press Ctrl + L Let me clear the screen.
[Terminal]


gedit ~/.bashrc

Open the .bashrc file located in the Home directory in a text editor.


To do so, type the following command.


I will be using the gedit text editor.


You may use any text editor of your choice.

[Text Editor]


source /opt/openfoam7/etc/bashrc

Scroll down to the end of the document.


Add the following line of code as shown.


This will enable us to execute the OpenFOAM commands via terminal.

[Text Editor]

Ctrl + S and close the window

Save and close the file.
Highlight new Terminal on the machine Since the changes to .bashrc file is yet to be registered, we need to open a new terminal.


To open a new terminal, press Ctrl, Alt and T keys together.

[Terminal]


simpleFoam -help

In the new terminal, type the following command.
[Terminal]


‘Usage’ message

A message with the list of options is displayed on the terminal.


This confirms that OpenFOAM 7 is properly installed.

Press Ctrl + L Let me clear the screen.
Only Narration Let us now check the installation of ParaView.
[Terminal]


paraview

Type paraview in the terminal.
Highlight ParaView window The ParaView interface opens in a new window.


Close the start-up screen.


This confirms that ParaView is properly installed.

[ParaView]

Click on close

Close this window.
Only Narration The installation of OpenFOAM 7 is now complete.


We can access OpenFOAM commands from the terminal now.

Only Narration With this we have come to the end of the tutorial.


Let’s summarize.

Slide: Summary In this tutorial, we have learnt how to:
  • Install OpenFOAM7
  • Install ParaView version 5.6.0 and
  • Verify the installation
Slide: About the Spoken Tutorial Project The video at the following link summarises the Spoken Tutorial project.


Please download and watch it.

Slide: Spoken Tutorial Workshops We conduct workshops using spoken tutorials and give certificates.


Please contact us.

Slide: Spoken Tutorial Forum
  • Do you have questions in THIS Spoken Tutorial?
  • Please visit this site.
  • Choose the minute and second where you have the question
  • Explain your question briefly
  • Someone from our team will answer them
  • You will have to register on this website to ask questions.
Slide: FOSSEE Forum
  • Do you have any general/technical questions?
  • Please visit the forum given in the link.
Slide: FOSSEE Case Study Project
  • The FOSSEE team coordinates solving feasible CFD problems of reasonable complexity using OpenFOAM.
  • We give honorarium and certificates to those who do this.
  • For more details, please visit these sites.
Slide: Spoken Tutorial The Spoken Tutorial project is supported by MHRD, Govt. of India.

The script for this tutorial is contributed by Ashley.

And this is Padmini from IIT Bombay signing off.

Thanks for joining.

Contributors and Content Editors

Ashleymelvin, Nancyvarkey