The third problem we work on is a 3D flow over several buildings. See the 3D view of the buildings we use in our computations below.
Figure: CAD model used in this section
Here, learning and reporting the boundary, initial and computational conditions will be your Assignment 3. Details will be given at the end of the section.
windAroundBuildings
tutorial directoriesYou are going to use the /opt/openfoam10/tutorials/incompressible/simpleFoam/windAroundBuildings
tutorial case of OpenFOAM in this section.
First, copy the tutorial case in your local working directory.
cp -r /opt/openfoam10/tutorials/incompressible/simpleFoam/windAroundBuildings ~/OpenFOAM/lecture04/
Uncompress the compressed file using
cd ~/OpenFOAM/lecture04/windAroundBuildings
cd constant/geometry
uncompress buildings.obj.gz
Run surfaceFeatures
, blockMesh
, and snappyHexMesh -overwrite
commands, respectively, as you have done in the previous section for 2D car model to generate the comptuational mesh.
Here, the -overwrite
option overwrites the snappyHexMesh in 0 (zero) directory.
So, you do not need to copy the last mesh from output and remove the unnecessary ones.
Please compute the fluid flow until $t=200~\mathrm{s}$. Use $\Delta t=1~\mathrm{s}$. Write the results for each $2~\mathrm{s}$ of the flow. Use all the other settings as it is given in the related file of the tutorial.
Compute the fluid flow using simpleFoam
command.