|
[Sponsors] |
Time step data error in OpenFOAM tutorial flow around a cylinder? |
|
LinkBack | Thread Tools | Search this Thread | Display Modes |
June 29, 2021, 00:51 |
Time step data error in OpenFOAM tutorial flow around a cylinder?
|
#1 |
New Member
Ken Johnson
Join Date: Jun 2020
Posts: 23
Rep Power: 6 |
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.
|
|
June 29, 2021, 01:28 |
|
#2 |
Senior Member
Uwe Pilz
Join Date: Feb 2017
Location: Leipzig, Germany
Posts: 744
Rep Power: 15 |
Do you see time step folders after running the case? May be it crashed before finishing the first time step.
__________________
Uwe Pilz -- Die der Hauptbewegung überlagerte Schwankungsbewegung ist in ihren Einzelheiten so hoffnungslos kompliziert, daß ihre theoretische Berechnung aussichtslos erscheint. (Hermann Schlichting, 1950) |
|
July 2, 2021, 12:51 |
|
#3 |
New Member
Ken Johnson
Join Date: Jun 2020
Posts: 23
Rep Power: 6 |
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?
|
|
July 2, 2021, 18:26 |
|
#4 |
Senior Member
Claudio Boezio
Join Date: May 2020
Location: Europe
Posts: 137
Rep Power: 7 |
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. |
|
July 6, 2021, 13:00 |
|
#5 |
New Member
Ken Johnson
Join Date: Jun 2020
Posts: 23
Rep Power: 6 |
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?
|
|
July 7, 2021, 01:51 |
|
#6 |
Senior Member
Uwe Pilz
Join Date: Feb 2017
Location: Leipzig, Germany
Posts: 744
Rep Power: 15 |
Look in the main folder for the log files and remove them.
__________________
Uwe Pilz -- Die der Hauptbewegung überlagerte Schwankungsbewegung ist in ihren Einzelheiten so hoffnungslos kompliziert, daß ihre theoretische Berechnung aussichtslos erscheint. (Hermann Schlichting, 1950) |
|
July 13, 2021, 16:04 |
|
#7 |
New Member
Ken Johnson
Join Date: Jun 2020
Posts: 23
Rep Power: 6 |
Are you talking about log.blockMesh, log.postProcess, and log.potentialFoam? Remove these?
|
|
July 15, 2021, 14:55 |
|
#8 |
Senior Member
Claudio Boezio
Join Date: May 2020
Location: Europe
Posts: 137
Rep Power: 7 |
||
November 29, 2021, 01:36 |
|
#9 |
New Member
Ken Johnson
Join Date: Jun 2020
Posts: 23
Rep Power: 6 |
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.
|
|
November 30, 2021, 05:00 |
|
#10 |
Senior Member
Claudio Boezio
Join Date: May 2020
Location: Europe
Posts: 137
Rep Power: 7 |
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 snappyHexMesh -overwrite | tee Logs/snappyHexMesh.txt interFoam | tee Logs/interFoam0.txt # parallel mpirun -np 2 interFoam -parallel | tee Logs/interFoam0.txt Hope this helps. Cheers, Claudio |
|
December 4, 2021, 13:55 |
|
#11 |
New Member
Ken Johnson
Join Date: Jun 2020
Posts: 23
Rep Power: 6 |
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.
|
|
December 12, 2021, 12:44 |
|
#12 |
Senior Member
Claudio Boezio
Join Date: May 2020
Location: Europe
Posts: 137
Rep Power: 7 |
Can you please indicate which version of OpenFOAM you're using and in which folder the tutorial is you are trying to run?
|
|
December 13, 2021, 18:44 |
|
#13 |
New Member
Ken Johnson
Join Date: Jun 2020
Posts: 23
Rep Power: 6 |
I am using version 2012 for windows 10 with Ubuntu 20.04lts.
|
|
December 13, 2021, 20:09 |
|
#14 |
Senior Member
Claudio Boezio
Join Date: May 2020
Location: Europe
Posts: 137
Rep Power: 7 |
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.
|
|
December 15, 2021, 04:51 |
|
#15 |
New Member
Ken Johnson
Join Date: Jun 2020
Posts: 23
Rep Power: 6 |
It’s located in OpenFOAM/OpenFOAM-v2012/tutorials/basic/potentialFoam/cylinder
|
|
December 15, 2021, 19:58 |
|
#16 |
Senior Member
Claudio Boezio
Join Date: May 2020
Location: Europe
Posts: 137
Rep Power: 7 |
Okay, these are the contents of the Allrun file:
Code:
#!/bin/sh cd "${0%/*}" || exit # Run from this directory . ${WM_PROJECT_DIR:?}/bin/tools/RunFunctions # Tutorial run functions #------------------------------------------------------------------------------ restore0Dir runApplication blockMesh runApplication $(getApplication) -withFunctionObjects -writePhi -writep runApplication postProcess -func streamFunction #------------------------------------------------------------------------------ Code:
. ${WM_PROJECT_DIR:?}/bin/tools/RunFunctions Code:
restore0Dir Code:
blockMesh Code:
potentialFoam -withFunctionObjects -writePhi -writep Code:
postProcess -func streamFunction Good luck! |
|
December 23, 2021, 00:22 |
|
#17 |
New Member
Ken Johnson
Join Date: Jun 2020
Posts: 23
Rep Power: 6 |
Is this how I was suppose to do those commands? I took screenshots of what I typed.
|
|
December 23, 2021, 12:13 |
|
#18 |
Senior Member
Claudio Boezio
Join Date: May 2020
Location: Europe
Posts: 137
Rep Power: 7 |
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! |
|
December 30, 2021, 03:01 |
|
#19 |
New Member
Ken Johnson
Join Date: Jun 2020
Posts: 23
Rep Power: 6 |
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?
|
|
December 30, 2021, 21:11 |
|
#20 |
Senior Member
Claudio Boezio
Join Date: May 2020
Location: Europe
Posts: 137
Rep Power: 7 |
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: Guide: How to ask a question on the forums
|
|
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
SU2 7.0.7 Built on CentOS 7, parallel computation pyscript mpi exit error? | EternalSeekerX | SU2 | 3 | October 9, 2020 19:28 |
Extrusion with OpenFoam problem No. Iterations 0 | Lord Kelvin | OpenFOAM Running, Solving & CFD | 8 | March 28, 2016 12:08 |
Stuck in a Rut- interDyMFoam! | xoitx | OpenFOAM Running, Solving & CFD | 14 | March 25, 2016 08:09 |
AMI interDyMFoam for mixer nu problem | danny123 | OpenFOAM Programming & Development | 8 | September 6, 2013 03:34 |
Upgraded from Karmic Koala 9.10 to Lucid Lynx10.04.3 | bookie56 | OpenFOAM Installation | 8 | August 13, 2011 05:03 |