can not complie fluentDataToFoam in OF2.1.1
hi
Now I followed the instruction http://openfoam-extend.git.sourcefor...ToFoam;hb=HEAD to compile fluentDataToFoam ultily in OF2.1.1 for 64bit, but it didn't work and gave me such information. ~/OpenFOAM/OpenFOAM-2.1.1/applications/utilities/preProcessing/fluentDataToFoam $ wmake g++ -c -o fluentDataConverter.o fluentDataConverter.C In file included from fluentDataConverter.C:27:0: fluentDataConverter.H:42:19: fatal error: fvCFD.H: No such file or directory compilation terminated. make: *** [fluentDataConverter.o] Error 1 can somebody tell me what should I do? thank you very much in advance! |
Greetings hewei,
Something is not right in the output you've given. After you run wmake, it should output something like this: Code:
user@machine:~/OpenFOAM/user-2.1.x/foamDataToFluent21x$ wmake Code:
ls -l $FOAM_SRC/finiteVolume/lnInclude/fvCFD.H Best regards, Bruno |
Quote:
Hi Bruno,thanks for your help. I followed your advice,but it still not succeed. wei@weihe ~/OpenFOAM/OpenFOAM-2.1.1/applications/utilities/preProcessing/fluentDataToFoam $ ls -l $FOAM_SRC/finiteVolume/lnInclude/fvCFD.H lrwxrwxrwx 1 wei wei 35 May 25 06:45 /home/wei/OpenFOAM/OpenFOAM-2.1.1/src/finiteVolume/lnInclude/fvCFD.H -> ../cfdTools/general/include/fvCFD.H wei@weihe ~/OpenFOAM/OpenFOAM-2.1.1/applications/utilities/preProcessing/fluentDataToFoam $ wmake SOURCE=fluentDataConverter.C ; g++ -m64 -Dlinux64 -DWM_DP -Wall -Wextra -Wno-unused-parameter -Wold-style-cast -Wnon-virtual-dtor -O3 -DNoRepository -ftemplate-depth-100 -I/home/wei/OpenFOAM/OpenFOAM-2.1.1/src/finiteVolume/lnInclude -IlnInclude -I. -I/home/wei/OpenFOAM/OpenFOAM-2.1.1/src/OpenFOAM/lnInclude -I/home/wei/OpenFOAM/OpenFOAM-2.1.1/src/OSspecific/POSIX/lnInclude -fPIC -c $SOURCE -o Make/linux64GccDPOpt/fluentDataConverter.o In file included from fluentDataConverter.C:27:0: fluentDataConverter.H:43:24: fatal error: wordIOList.H: No such file or directory compilation terminated. make: *** [Make/linux64GccDPOpt/fluentDataConverter.o] Error 1 yours, wei. |
Hi Wei,
:confused: I've got a feeling that something strange is happening in your machine... namely that files aren't being properly picked up by the compiler!? You can try the following pseudo-trick for forcing a folder refresh, so that the compiler can access to a fresh list of files: Code:
find $FOAM_SRC -name wordIOList.H The only reason I can remember for this issue to be occurring is if you are either sharing the OpenFOAM folder inside a virtual machine or if the folder is located at a remote file-system. Any of those cases would lead to a stale list of files, leading to the issue you're having. Best regards, Bruno |
Hello Wei,
The link you provided, is to a utility for OpenFOAM-1.6-ext. So it is not a utility for OpenFOAM 2.1.1. The error you encountered, means, that the compiler can't find one of the files (here wordIOList.H). I looked in my OF2.1.1 and there is no such file. To use the code in OF211 you need to substitute the wordIOList class in the code with a class provided from OF211. So more or less you need to rewrite the utility for OF211, which means you need knowledge in programming. Sorry, that I can't help you any further. |
Greetings to all!
@blacksquirrel: Good catch! I had replied without checking with any OpenFOAM installation and assumed the error was related to the previous one :(. My first mistake was that I misread the application name... I thought it was "foamDataToFluent", which is already provided with the original OpenFOAM, while Wei wants "fluentDataToFoam". @Wei: the trick here is to copy the file "src/OpenFOAM/primitives/Lists/wordIOList.C" and "wordIOList.H" from 1.6-ext into your custom folder for "fluentDataToFoam", then edit the file "Make/files" and add "wordIOList.C" to the file list. Then it should work! Best regards, Bruno |
Quote:
yours, Wei |
Thanks for all the information shared above.
Indeed it compiled successfully, while when I converted data, it gives error: "file: /vsc-mounts/OpenFOAM/vsc30-2.1.x/run/cases/ENT/test/constant/polyMesh/zoneToPatchName at line 0. From function regIOobject::readStream() in file db/regIOobject/regIOobjectRead.C at line 73. From "fluentDataToFoam.C", object:" zoneToPatchName" must be read, any one has this file? Or some other advice to solve the problem. Thanks a lot in advance! Quote:
|
Hi,
I found that the link did not work :-( So I downloaded the entire iso for OF-1.6-ext and copied the openfoam folder with src code etc. Then I edited the Make/files Quote:
When I ran wmake I got Code:
g++ -m64 -Dlinux64 -DWM_DP -Wall -Wextra -Wno-unused-parameter -Wold-style-cast -Wnon-virtual-dtor -O3 -DNoRepository -ftemplate-depth-100 -I/opt/OpenFOAM-2.1.1/src/finiteVolume/lnInclude -IlnInclude -I. -I/opt/OpenFOAM-2.1.1/src/OpenFOAM/lnInclude -I/opt/OpenFOAM-2.1.1/src/OSspecific/POSIX/lnInclude -fPIC -Xlinker --add-needed -Xlinker --no-as-needed Make/linux64GccDPOpt/fluentDataConverter.o Make/linux64GccDPOpt/fluentDataToFoam.o Make/linux64GccDPOpt/wordIOList.o -L/opt/OpenFOAM-2.1.1/platforms/linux64GccDPOpt/lib \ Code:
g++ -m64 -Dlinux64 -DWM_DP -Wall -Wextra -Wno-unused-parameter -Wold-style-cast -Wnon-virtual-dtor -O3 -DNoRepository -ftemplate-depth-100 -I/opt/OpenFOAM-2.1.1/src/finiteVolume/lnInclude -IlnInclude -I. -I/opt/OpenFOAM-2.1.1/src/OpenFOAM/lnInclude -I/opt/OpenFOAM-2.1.1/src/OSspecific/POSIX/lnInclude -fPIC -Xlinker --add-needed -Xlinker --no-as-needed Make/linux64GccDPOpt/fluentDataConverter.o Make/linux64GccDPOpt/fluentDataToFoam.o Make/linux64GccDPOpt/wordIOList.o -L/opt/OpenFOAM-2.1.1/platforms/linux64GccDPOpt/lib \ If anyone could help me then I would be really grateful....! Thanks in advance :-) |
Hi DDB,
Best regards, Bruno |
Thank you very much wyldckat, it worked a treat :-)
|
Quote:
Code:
constant/polyMesh/zoneToPatchName at line 0 |
Quote:
|
Hello,
since the link is down, where can I get the utility fluentDataToFoam? I searched but did not found the place. Thank you so much. best H Quote:
|
Greetings hz283,
Did you see post #4 on the link in the quote you've given? Quote:
Best regards, Bruno |
Hi Bruno,
Thank you so much for your reply. Yes I found that, but I did not find the source package of FluentDataToFoam. You mentioned the folder: "applications/utilities/preProcessing/fluentDataToFoam". Is this in the OF1.6-ext ? I am using OF211, but there is no such package in the applications/utilities/preProcessing/. Thank you again. Quote:
|
Hi hz283,
The application is located at: http://repo.or.cz/w/OpenFOAM-1.6-ext...uentDataToFoam You can use the links on the top of the page for getting a snapshot of the complete source code: Quote:
Best regards, Bruno |
Hi Bruno,
Thank you for your advices about the topic:D. I wish to know if the method can be used in OpenFOAM-2.2.2?:confused: Quote:
Zhiyuan |
Quote:
|
Quote:
best regards zhiyuan |
All times are GMT -4. The time now is 13:11. |