Time step data error in OpenFOAM tutorial flow around a cylinder?
2 Attachment(s)
I have tried to run tutorial 2.2 flow around a cylinder for Openfoam from their website using the ./Allrun command. However the model never does show up in paraview and it gives me an error output saying that it contains no timestep data. I attached the images to this post. Does anyone know what I have to do to fix this.
|
Do you see time step folders after running the case? May be it crashed before finishing the first time step.
|
4 Attachment(s)
The 0 file is there. I opened the file and attached it to this post. Now this is a tutorial. I opened both the P and U files. Is there something missing in these files maybe an error in one of the lines?
|
Hi Ken,
If you look at the picture you posted, the solver didn't run because it says you have to remove the old log files first. Once you delete them, the solver should be able to run. It's probably a precaution mechanism to prevent loss of log files. |
It actually gave me that error when I first ran it. I just ran it again and it still gives that same error. It has something to do with the 0 file but I don't see where the error is coming from in that file after looking at it?
|
Look in the main folder for the log files and remove them.
|
1 Attachment(s)
Are you talking about log.blockMesh, log.postProcess, and log.potentialFoam? Remove these?
|
Quote:
|
I know that it has been quite a while. I want to let you know that I did try deleting the log files before I tried the Allrun again and I still got the same error.
|
Hi, have you tried to execute the commands of the Allrun script individually? By doing that you should see at which point execution is stopped due to errors. I also recommend running longer commands like snappyHexMesh and solvers with both on-screen and logged output like this:
Code:
# single-core Hope this helps. Cheers, Claudio |
I don’t know how to do that. I’m honestly ready for someone to go through tutorial 2.2 which is a flow around a cylinder for windows 10 from start to finish to show me where I’m going wrong. I tried doing it the same way you do the cavity tutorial where you just type blockmesh but it gave me errors. Actually it didn’t even run. I did it using allrun because I was told it’ll run and show where the error is. I haven’t seen any decent enough tutorials online for tutorial 2.2 for some reason.
|
Can you please indicate which version of OpenFOAM you're using and in which folder the tutorial is you are trying to run?
|
I am using version 2012 for windows 10 with Ubuntu 20.04lts.
|
If you can provide me the exact location in the tutorials folder where the tutorial you're trying to run is, I might help you further. I simply don't have time to find it for you.
|
It’s located in OpenFOAM/OpenFOAM-v2012/tutorials/basic/potentialFoam/cylinder
|
1 Attachment(s)
Okay, these are the contents of the Allrun file:
Code:
#!/bin/sh Code:
. ${WM_PROJECT_DIR:?}/bin/tools/RunFunctions Code:
restore0Dir Code:
blockMesh Code:
potentialFoam -withFunctionObjects -writePhi -writep Code:
postProcess -func streamFunction Good luck! |
3 Attachment(s)
Is this how I was suppose to do those commands? I took screenshots of what I typed.
|
Yes, exactly. As you can see, blockMesh fails (and doesn't create the mesh, hence the subsequent error reported by potentialFoam not finding the points file) because the shared object (*.so) file is not found/inaccessible. The blockMeshDict of this case performs some in-dictionary calculations using codeStream to obtain parametric geometry and generates an *.so file which is then compiled. Check if this file is properly written at the specified location. My guess would be a file access permission issue which prevents OpenFOAM from writing/reading the *.so file from there.
Now you should have learned how to do basic troubleshooting for an OpenFOAM case: execute commands one by one and carefully read all error messages. Good luck troubleshooting codeStream! |
I think should explain what I am trying to do. I am trying to simulate a flow over a cylinder with mach 0.2 at sea level conditions. The radius of the cylinder is 0.04 meters and the length is 1 meter. I was hoping to modify this tutorial but that hasn't been working out. I would like to know if there is a easier way then?
|
What about the tutorial, is it working for you now? We can't help if you aren't more specific than "that hasn't been working out". Please read this: https://www.cfd-online.com/Forums/si...tml#post612025
|
1 Attachment(s)
Hi
I was trying to run the tutorial/basic/potentialFoam/cylinder case. Upon running ./Allrun and looking through the log file it seems the run has not been completed. I am attaching the log files. Could you please throw some light onto this? Thank You. Best Regards akram |
All times are GMT -4. The time now is 02:58. |