IO error when running waveIsoFoam with OF1812: Dictionary entry not found
Hi all,
I am currently trying to run waveIsoFoam, one of the new solver from waves2Foam, with OF1812. However, when I tested a case that I have successfully run with waveFoam on OF1712, I got the following error message: Code:
[31] --> FOAM FATAL IO ERROR: Code:
[0] --> FOAM FATAL IO ERROR: Code:
/*--------------------------------*- C++ -*----------------------------------*\ My controlDict looks like the following: Code:
/*--------------------------------*- C++ -*----------------------------------*\ |
Hi all,
I have found a temporary fix: If you delete the "waveModel" library from EXE_LIB list in file "/waves2Foam/applications/solvers/solvers1812_PLUS/waveIsoFoam/Make/options" and recompile it, it should fix the problem. However I am still looking for a more thorough solution. Thank you! Best, Jinshi |
Hi Jinshi,
Thank you for reporting the bug. I have removed waveModels in Make/options and updated the repository. It is indeed a bug, because waveModels relate to the OpenFoam-ESI wave models and not waves2Foam. Kind regards Niels |
‘g’ was not declared in this scope
Quote:
I try to combine interfoam and wavefoam in OF1812, but i got error when i wmake for new solver as: /home/leqt/OpenFOAM/leqt-v1812/applications/utilities/waves2Foam/src/waves2Foam/lnInclude/readWaveProperties.H:27:38: error: ‘g’ was not declared in this scope referencePoint.value() = g.value()/Foam::mag(g.value()); ^ Could you tell me how to fix it, please. Many thanks |
Hi Le,
I am not entirely sure what you did, and I didn't make a new solver my own (just using Niels' waveIsoFoam solver). However, it does seem to me that you have missed defining g (gravitational acceleration) somewhere in your model but have included it in the back end equation. I'd personally like to refer your question to other people who are more experienced that me. Thank you! Best, Jinshi |
Quote:
|
Hello everyone, I am using the OF2012 and I am facing the same problem as you. Do you know if the solution is the same as what you did for your OF version?
Did anyone face this problem with the OF2012? Thank you in advance. |
Quote:
First of all I would like to thank you for you great work with waves2Foam. I guess you were talking about /solvers1812_PLUS/. I have realized that in the next version solvers (2012, 2106 and 2206) the "wave model" library is still in the options file. I was having the same error " Dictionary entry for patch inlet not found". Once I recompile without it, there is no error. It is still a bug or am I missing something? Kind regards, Manuel |
Quote:
Could you elaborate the recompile process after you deleted the wavemodel library please? Thank you. |
Hi Zhang,
Once I deleted the file, I just executed "wmake" command in ~/waves2Foam/applications/solvers/solvers2206_PLUS/my_new_solver/ I followed the instructions given in the waves2Foam manual. I don't know if I have already solve your doubt... Kind regards, Manuel |
All times are GMT -4. The time now is 08:43. |