error while solving motorBike with simpleFoam or icoFoam
I've been working through the tutorials and decided to attempt the motobike tutorial.
I manage to generate the mesh using blockmesh, snappyHexMesh.
I can see the wireframe model of the motorBike inside paraFoam.
It appears that this tutorial contains boundary conditions so I assumed I could run icoFoam or simpleFoam to obtain a solution. Is this correct.
In attemp to run icoFoam and simpleFoam is closes by saying the following:
Create mesh for time = 3
Reading field p
--> FOAM FATAL IO ERROR:
cannot open file
file: /home/adam/OpenFOAM/OpenFOAM-1.6.x/tutorials/incompressible/sirdmpleFoam/motorBike/3/p at line 0.
From function regIOobject::readStream()
in file db/regIOobject/regIOobjectRead.C at line 62.
I looked at the "3" folder which I believe is the final mesh folder and was not able to locate "p at line 0"d
Can anybody please help me in this regard ?
Thanks everyone for the help.
You have to add the -overwrite flag to snappyHexMesh. What's happening is that when snappy runs the castellation step, it outputs the results to a new time directory; when it runs the snapping process, it outputs to yet another time directory, and the same for the layer addition step. This can be useful when you are setting up a new mesh, but in your case, run the following:
This will overwrite the original mesh in constant/polyMesh with the newly made snappy mesh.
The other solution is to transfer the mesh from the "3" directory to constant/polyMesh.
Note the error is telling you that it can't find boundary conditions in the "3" directory. This is because snappy does not transfer boundary condition information to the new directories as it generates them.
|All times are GMT -4. The time now is 06:53.|