Compiling a OF2.3 solver in OF 3.0.1
Dear OF-Users and -Developers,
I am using OF.3.0.1, Ubuntu 16.04 LTS. I am trying to compile a solver, which was written using the OF 2.3. I tried to compiled the solver in OF 3.0.1, unlikely it did not work. After modifying the files "files" and "options", I succeed to remove some errors but it did not help to compile the solver. edited Files: Code:
pisoFoamT_cyclic.C Code:
EXE_INC = \ The Error: Code:
/OpenFOAM/OpenFOAM-3.0.1/src/OSspecific/POSIX/lnInclude -fPIC -c pisoFoamT_cyclic.C -o Make/linux64GccDPInt64Opt/pisoFoamT_cyclic.o Code:
#include "fvCFD.H" Please let me know if you need any other informations. Any advice will be greatly appreciated, thanks in advance :) |
I just removed
readPISOControls.H from the .C file and I got a list of new errors: Code:
I/home/amine/OpenFOAM/OpenFOAM-3.0.1/src/sampling/lnInclude -IlnInclude -I. -I/home/amine/OpenFOAM/OpenFOAM-3.0.1/src/OpenFOAM/lnInclude -I/home/amine/OpenFOAM/OpenFOAM-3.0.1/src/OSspecific/POSIX/lnInclude -fPIC -c pisoFoamT_cyclic.C -o Make/linux64GccDPInt64Opt/pisoFoamT_cyclic.o Any advice will be greatly appreciated, thanks in advance :) |
Hi Mirage,
Did you solve your problem? I am facing the similar issue when I compiled a code. Could you share your experience? Best regards, |
Quote:
I will post here the modification, that i did, as soon as possible :) |
Hi
it seems that it already works in your case! Try the solver and tell us! As I can see, the file readPISOControls.H is not found. It means that in your options file, the directory where you are supposed to look for it does not have it. From OF2.3.1 to OF3.0.1 some directories were changed, so your error could be related with that. You can take a look to other solver who uses that file, and check how they call it. |
Hello guys,
The solver is running but I am not getting the same results with OF2.3. I am running a LES and I am not able to have output for nuSgs. Here are the lines, that i edited: Code:
In creatField.H : Code:
in the .C file Code:
in the Make/options file: The slover written in OF2.3 was based on pisoFOAM. I just compared the new (OF3.1) and old pisoFOAM solvers and edit my solver. My results do not look similar, that why i am not sure, if it is correct :/ Please feel free to correct or improve my suggestions :) |
Quote:
Code:
icoScalarTransportFoam.C: In function ‘int main(int, char**)’: Do you have any idea how to read the nCorrectors into icoFoam.C?? My icoScalarTransportFoam.C is like this and i'm using openfoam 4.0 Code:
#include "fvCFD.H" |
Quote:
|
Hi Qihao,
It has been so long that I couldn't remember weather the problem had been solved or not. Anyway, what is your problem and error messages? You can include your files here so that I can give you a hand :) |
All times are GMT -4. The time now is 20:28. |