#Opening a terminal ctr + alt + t #Loading the OpenFOAM environment source /opt/openfoam7/etc/bashrc #Creating the run folder (THIS NEEDS TO BE DONE ONLY ONCE AT THE BEGINNING OF THE COURSE) mkdir -p $FOAM_RUN #Entering the run folder run #Copying the tutorial cp -r $FOAM_TUTORIALS/incompressible/icoFoam/cavity/cavity/ A1 #Changing to the copied tutorial folder cd A1 #Visualizing the vertices (without creating the mesh) paraFoam -block #Creating the mesh blockMesh #Visualizing the mesh (if it has been created) paraFoam #Copying the example 'turbulenceProperties' file from tutorials cp $FOAM_TUTORIALS/incompressible/pisoFoam/laminar/porousBlockage/constant/turbulenceProperties constant/ #Running the solver pimpleFoam #Copying the line sample input file cp /opt/openfoam7/etc/caseDicts/postProcessing/graphs/singleGraph system/line_y