reconstrucPar error
hello,
I've been trying to reconstruct form a parallel run but i keep getting this error Code:
Create time |
Hi,
Let's read the error: Code:
No processor* directories found So, you can check if a) you are running reconstructPar in the folder, where you ran parallel case, b) your data is not automatically reconstructed. |
thank you for your answer!
I just copied a case that ran well in other folder, and ran ir wihtout any major modifications, so there should be no problem |
OK. Maybe there SHOULD be no problem, BUT since you post question here, there IS a problem.
Could you at least post "ls" command output in the folder, where you run reconstructPar? |
hi again
I've got these files/directories in the running directory Code:
0/ postProcessing/ processor3/ log.blockMesh log.postChannel |
Hi,
If we take a look at the code, which produces error: Code:
// Determine the processor count Code:
label nProcs = 0; |
You are right,
there is no "constant" in any processor* directory, but checking decomposePar log there are no errors. I think the problem comes when running renumberMesh, it creates a new "1e-5" folder with the renumbered polymesh and fields and then decomposePar doesn't create a constant subfolder into processor*. So I guess I have to move the renumbered polymesh to constant and after that run decomposePar, am I right? |
You can just run renumberMesh with -overwrite flag, this way it writes renumbered mesh in constant folder.
|
For future reference:
The piece of code Alexeym kindly highlighted is different in OF 1706 version: Code:
// determine the processor count directly |
@HakikiCanakkaleli
Just for the future reference: Code:
isDir(args.path()/(word("processor") + name(nProcs))) |
Hi,
I think some confusion arose, and likely I led it to happen. I meant with the above piece of code that the sub-subfolder "constant" and other n level deep folders were not looked up, based on your kindly sharing of the following code: Quote:
|
Hi,
ESI OpenFOAM v1706 is based on Foundation OpenFOAM 4.x and in 4.x the code is the same (i.e. simple while loop with subfolder check). I have posted snippets from OpenFOAM 5.x. So, yes, there was certain confusion on my side. |
My apologies :)
|
This discussion was very useful. Thank you.
I am wondering however, since I already have this sort of situation due to renumberMesh without overwrite tag, if at all is it possible to visualize the results. I don't really wish to give up hours of simulation data. |
Hi,
Since you can not visualize your results, you can not be sure if the results are meaningful. So in addition to possibility of losing time waiting for the answer, you still can lose all these hours of simulation data, as the data can be complete nonsense. Could you describe exact steps to reproduce your error? Small test case could be also useful. |
Quote:
|
Quote:
|
Hello everyone,
since my topic is related to the one above, I wonder if someone knows why the following problem arises and how I can avoid it. I have to use the "-fileHandler collated" option for my cases due to a file number limitation. The OF Version is 5.0. So, these are my steps: 1. decomposePar -fileHandler collated #(for 1000 cores ... works perfectly) 2. mpirun -np 1000 renumberMesh -overwrite -parallel -fileHandler collated #(works) 3. mpirun -np 1000 pisoFoam -parallel -fileHandler collated #(no problem) 4. reconstructPar -fileHandler collated #(problem) At step 4 (reconstructPar), I get the following error: ================================================== ==== --> FOAM FATAL IO ERROR: Could not detect processor number from objectPath:"caseName/constant/polyMesh/pointZones" file: caseName/processors/constant/polyMesh/pointZones at line 15. From function virtual Foam::autoPtr<Foam::ISstream> Foam::fileOperations::masterUncollatedFileOperatio n::readStream(Foam::regIOobject&, const Foam::fileName&, const Foam::word&, bool) const in file global/fileOperations/masterUncollatedFileOperation/masterUncollatedFileOperation.C at line 1105. FOAM exiting ================================================== ===== If I rerun my steps above but do not use the renumbering in step 2 everything works - including the reconstruction. So, the problem comes from renumberMesh in combination with the -fileHandler collated. Any ideas how to get this working and to be able to use the benefit of renumberMesh and still be able to reconstruct the case? The file caseName/processors/constant/polyMesh/pointZones exists and looks OK ... cheers! |
Update:
I figured it out myself ... two minutes after I submitted my previous post =) For everybody who face the same problem: Delete or rename the following files that the renumberMesh utility writes and then the reconstructPar should work: - processors/constant/polyMesh/pointZones - processors/constant/polyMesh/faceZones - processors/constant/polyMesh/cellZones Cheers! |
decomposed case
Quote:
Cheers! |
All times are GMT -4. The time now is 06:13. |