Open ColinB07 opened 4 years ago
Hi Colin, Were you able to solve this issue? I'm facing the similar problem.
Cheers, Shantanu
reconstructPar
is an OpenFOAM function, not a SOWFA function. Have you run any of the OpenFOAM demo cases with your OpenFOAM installation to verify that reconstructpar
works for other cases, and this is specifically an issue with the SOWFA simulation?
Hi Mr. Bart, Thank you for your response! In my case, reconstructPar is not working when I'm trying to generate the precursor data for "example.ABL.flatTerrain.neutral" (Step 8th of #26). I'm working on the MEXICO rotor, so I previously implemented the ALM using the pisoFoamTurbine.ALM solver. For this case, reconstructPar was working perfectly. Moreover, when I ran a tutorial of OpenFOAM, for that case too, it was working. I really can't pinpoint why it is not working for the precursor data. PS: I am running the simulations on my laptop (it's a high-end laptop), rather than on HPC.
Thanks, Shantanu
Interesting. In a quick online search I have found comparable issues here and here. It may just be that your installation of reconstructPar
does not work well with this precursor case. You can try either a different OpenFOAM version as suggested here or you may try a different precursor case, for example, this example precursor case. To save yourself some time, set the endTime
to 1000
and try reconstructing the solution at that timestep after it completes. That should tell you if it's something consistent or whether it's just an issue with that particular example case.
Thanks for the advice, Bart! I tried the other precursor case you suggested. Again, the same error "Segmentation fault (core dumped)" appears after I try to reconstruct the solution. Just to point out, it successfully reconstructs the volScalarFields but throws the segmentation fault when it tries to reconstruct the volVectorFields. I'm currently using version 2.4. I think I'll try to install the earlier versions of OpenFOAM, such as 2.3, or whichever is compatible with SOWFA. Let's see how that goes. I'll keep you updated if it solves the problem.
Once again, thanks for the help!
Hi, I tried running "reconstructPar" with several versions of OpenFOAM (2.3.0, 2.4.x, OpenFOAM-6), but the problem still persists.
Hi Shantanu,
Two things come to mind.
reconstructPar
as far as I know. You can either try copying the precursor folder to a different system with a verified installation of OpenFOAM and try reconstructing the solution there, or you can try using a different OS on your laptop altogether.Finally, since you're using a single machine, you could consider not parallelizing the SOWFA case. Just keep everything centralized. That means you should disable decomposePar
and reconstructPar
in your runscripts. It might slow you down a bit, but you'll definitely circumvent the issue that way.
Everything is fine, until step 8. The reconstructPar is not working. I get the error:
Reconstructing fields for mesh region0 Time = 20000 Reconstructing FV fields Reconstructing volScalarFields nuSgs Segmentation fault (core dumped)
I was facing a similar issue. The reason for the segfault seems to be the compilation of OpenFOAM v2.4.0 using new versions of openMPI. So I reverted from openMPI v4.0.2 to v2.1.6 (for example; might work with some other versions as well) and reconstructPar
executes without any error. For the installation of OpenFOAM on a cluster running on CentOS, you can follow the instructions given in the wiki and in Step 8, use an appropriate version of openMPI.
Hi ! I'm trying to use the windplantsolver. To do so, I'm referring to these instructions:
Generating the precursor data
Preparing the precursor data
reconstructPar -time 20000 -fields '(k kappat nuSgs p_rgh qwall Rwall T U)'
Coupling to a wind farm simulation
Everything is fine, until step 8. The reconstructPar is not working. I get the error:
How could I fix it? Thank you for your time.