0% found this document useful (0 votes)
46 views3 pages

OpenFOAM Version 7 Instruction Sheet English

This document provides instructions for using OpenFOAM version 7 tutorials. It explains how to access and download the tutorial content, outlines the general procedure for practicing the tutorials, and provides specific instructions for several introductory OpenFOAM tutorials that introduce concepts like installing OpenFOAM, setting up test cases, and simulating different fluid flows.
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
46 views3 pages

OpenFOAM Version 7 Instruction Sheet English

This document provides instructions for using OpenFOAM version 7 tutorials. It explains how to access and download the tutorial content, outlines the general procedure for practicing the tutorials, and provides specific instructions for several introductory OpenFOAM tutorials that introduce concepts like installing OpenFOAM, setting up test cases, and simulating different fluid flows.
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 3

Instruction Sheet for OpenFOAM version 7

Spoken Tutorial Team


IIT Bombay

1 Online / Offline content 2. Outline, Assignments, Code Files and Slides


are available below the player.
1. The online content of Spoken Tutorials can be ac-
3. Adjust the size of the browser in such a way that
cessed from:
you are able to practise in parallel.
https://spoken-tutorial.org/tutorial-search/
4. Instructions to use Code files in any tutorial:
2. You can also download the Spoken Tutorials for of-
fline learning from: (a) Click on the link "Code Files" located below
https://spoken-tutorial.org/cdcontent/ the player and save it in your folder.
3. From this link download the FOSS categories in the (b) Extract the downloaded ZIP file.
language you wish to learn. (c) You will see all the code/source files used in
4. The Spoken Tutorial content will be downloaded as the particular tutorial.
a zip file on your machine. (d) Use these files as per the instructions given in
5. Extract the contents of the zip file & access them. the particular tutorial.
5. Attempt the Assignments as instructed. Save your
work in your folder.
2 The procedure to practise
6. The Additional reading material section con-
1. You have been given a set of spoken tutorials and tains the theory and calculation of various parame-
files. ters in the respective tutorial.
2. You will typically do one tutorial at a time. 7. Whenever asked to refer to the Additional
3. You may listen to a spoken tutorial and reproduce reading material, pause the tutorial and refer
all the steps shown in the video. to relevant portion of the Additional reading
material before continuing with the rest of the tu-
4. If you find it difficult to do the above, you may con- torial.
sider listening to the whole tutorial once and then
practise during the second hearing. 8. Throughout this series, the Username, the
Hostname and the full path to the Working
directory are not shown in the Linux terminal.
3 OpenFOAM version 7 9. A typical folder structure of an OpenFOAM case
folder is given at the end of this document. Please
1. Click on "Select FOSS" or "All FOSS
refer to it when navigating between OpenFOAM
Categories" drop-down and choose "OpenFOAM
files/folders while practising the tutorials.
version 7".
2. Click on "Submit" button.
3. You will see a list of tutorials based on your selec-
6 Second tutorial: Installing
tion. OpenFOAM in Ubuntu Linux
4. Start with the first tutorial in the displayed list.
1. If you are using Linux, locate the topic Installing
OpenFOAM in Ubuntu Linux, and click on it.
4 First tutorial: Overview of 2. Follow the instructions carefully in the tutorial to
OpenFOAM install OpenFOAM 7 on Ubuntu Linux OS.
3. The OpenFOAM 7 installation also installs ParaView
1. Locate the topic Overview of OpenFOAM and click 5.6.0 as a dependency.
on it.
2. To view the tutorial, click on the Play icon which
is located in the player.
7 Third tutorial: Setting-up a
Test Case in OpenFOAM
5 Common Instructions 1. Since it is advisable not to run case files directly
in installation directory, we create a folder run in
1. The Pre-requisite will be visible below the player home directory to which we will copy the tutorials
(only for Online contents). cases.
2. The lid-driven cavity case is available in the
tutorials directory.
3. The working directory during the tutorial changes. 9 Seventh tutorial: Simulating
(a) At 1:50 - The make directory command Hagen-Poiseuille flow through a
(mkdir) creates a run directory whose path is
/home/username/OpenFOAM/username-7/run
pipe in OpenFOAM
(b) At 2:00 - The change directory command (cd) 1. The blockMeshDict file used in this tutorial is the
makes the run directory the working directory. same as the one in the tutorial Creating 3D Pipe
The run directory can be made the working di- Geometry and Mesh.
rectory using the command
2. The contents of the p, U and controlDict files used
cd $FOAM RUN
in this tutorial are available in the Code Files sec-
(c) At 2:32 - The copy command (cp) copies the tion.
cavity folder from the tutorials directory
into the current working directory, i.e.the run 3. Copy the contents from each of the text files from
directory. the Code Files section into the respective file
The path of the tutorials directory is opened by you in a text editor.
/opt/openfoam7/tutorials
The path of the cavity folder in the
tutorials directory is
10 Ninth tutorial: Simulation of a
tutorials/incompressible/icoFoam/cavity 2D Turbulent Flow in a Chan-
/cavity
nel using OpenFOAM
(d) At 3:28 - The working directory is changed to
0 folder in the cavity folder. The path of the 1. The case files used in this tutorial is available in the
current working directory is Code Files section.
/home/username/OpenFOAM/username-7/run
2. Download the file and extract it.
/cavity/0
(e) At 5:06 - The working directory goes a level 3. Once extracted, copy the extracted folder named
back in the directory hierarchy using the com- "kepsilon" into the run directory using the cp
mand cd.. command. The command will change depend-
Now, the cavity folder is the working direc- ing upon the extracted location of the downloaded
tory. folder.
(f) At 6:17 - The working directory is changed to
system folder in the cavity folder. The path 11 Tenth tutorial: Turbulence
of the current working directory is
/home/username/OpenFOAM/username-7/run Modelling in OpenFOAM
/cavity/system
1. The case files used in this tutorial is available in the
(g) At 8:44 - The working directory goes a level Code Files section.
back in the directory hierarchy to the cavity
folder. 2. There are three cases used in this tutorial
whose folders are namely, kepsilon, komega and
4. All the utility and solver commands such as komegasst
blockMesh, icoFoam, paraFoam etc. can be exe- 3. Once downloaded and extracted, the extracted lo-
cuted from the OpenFOAM cases’ parent directory, cation contains 3 ZIP files named "kepsilon.zip",
in this case the cavity folder. "komega.zip" and "komegasst.zip"
4. Extract each of the three ZIP files again such that
8 Fourth tutorial: Creating 2D the extracted location contains three folders of the
names: "kepsilon", "komega" and "komegasst".
Channel Geometry and Mesh in
5. Copy each of the folders from the extracted loca-
OpenFOAM tion into the run directory using the appropriate
command whenever instructed in the tutorial.
1. The content of the blockMesh file used in this tu-
torial is available in the Code Files section.
2. Download extract the contents of the ZIP file.
3. Open the text file blockMesh.txt.
4. Copy the contents from the text file into the
blockMeshDict file that you had opened earlier in
a text editor.
Figure 1: A typical file structure of an OpenFOAM case.
(Reference: https://www.cfd.at/ )

You might also like