|
[Sponsors] |
Error making a new utility code: "cyclicAMILduInterface.H: No such file or directory" |
|
LinkBack | Thread Tools | Search this Thread | Display Modes |
October 12, 2015, 11:46 |
Error making a new utility code: "cyclicAMILduInterface.H: No such file or directory"
|
#1 |
Senior Member
Pei-Ying Hsieh
Join Date: Mar 2009
Posts: 334
Rep Power: 18 |
Dear OF experts,
I wrote a small utility that compute alpha fields of an interMixingFoam case. This worked under OpenFOAM-2.3.x. However, I am getting errors when compiled in OpenFOAM-2.4.x. It will be appreciated if someone can shed some light on this? The error messages are attached: Pei-Ying ------------- Making dependency list for source file computeAlpha.C could not open file cyclicAMILduInterface.H for source file computeAlpha.C due to No such file or directory could not open file cyclicAMIPolyPatch.H for source file computeAlpha.C due to No such file or directory SOURCE=computeAlpha.C ; g++ -m64 -Dlinux64 -DWM_DP -Wall -Wextra -Wno-unused-parameter -Wold-style-cast -Wnon-virtual-dtor -O3 -DNoRepository -ftemplate-depth-100 -I/home/phsieh/OpenFOAM/OpenFOAM-2.4.x/src/finiteVolume/lnInclude -IlnInclude -I. -I/home/phsieh/OpenFOAM/OpenFOAM-2.4.x/src/OpenFOAM/lnInclude -I/home/phsieh/OpenFOAM/OpenFOAM-2.4.x/src/OSspecific/POSIX/lnInclude -fPIC -c $SOURCE -o Make/linux64GccDPOpt/computeAlpha.o In file included from /home/phsieh/OpenFOAM/OpenFOAM-2.4.x/src/finiteVolume/lnInclude/ddtScheme.C:30:0, from /home/phsieh/OpenFOAM/OpenFOAM-2.4.x/src/finiteVolume/lnInclude/ddtScheme.H:325, from /home/phsieh/OpenFOAM/OpenFOAM-2.4.x/src/finiteVolume/lnInclude/fvcDdt.C:28, from /home/phsieh/OpenFOAM/OpenFOAM-2.4.x/src/finiteVolume/lnInclude/fvcDdt.H:199, from /home/phsieh/OpenFOAM/OpenFOAM-2.4.x/src/finiteVolume/lnInclude/fvc.H:44, from /home/phsieh/OpenFOAM/OpenFOAM-2.4.x/src/finiteVolume/lnInclude/fvCFD.H:8, from computeAlpha.C:34: /home/phsieh/OpenFOAM/OpenFOAM-2.4.x/src/finiteVolume/lnInclude/cyclicAMIFvPatch.H:39:35: fatal error: cyclicAMILduInterface.H: No such file or directory #include "cyclicAMILduInterface.H" ^ compilation terminated. computeAlpha.dep:620: recipe for target 'Make/linux64GccDPOpt/computeAlpha.o' failed make: *** [Make/linux64GccDPOpt/computeAlpha.o] Error 1 |
|
October 12, 2015, 16:33 |
|
#2 |
Senior Member
|
Hi,
Since location of both cyclicAMILduInterface.H and cyclicAMIPolyPatch.H did not change between 2.3.x. and 2.4.x Code:
alexey at daphne in OpenFOAM-2.3.x$ find . -name 'cyclicAMILduInterface.H' ./src/meshTools/AMIInterpolation/patches/cyclicAMI/cyclicAMILduInterfaceField/cyclicAMILduInterface.H ./src/meshTools/lnInclude/cyclicAMILduInterface.H alexey at daphne in OpenFOAM-2.3.x$ cd ../OpenFOAM-2.4.x/ alexey at daphne in OpenFOAM-2.4.x$ find . -name 'cyclicAMILduInterface.H' ./src/meshTools/AMIInterpolation/patches/cyclicAMI/cyclicAMILduInterfaceField/cyclicAMILduInterface.H ./src/meshTools/lnInclude/cyclicAMILduInterface.H alexey at daphne in OpenFOAM-2.4.x$ find . -name 'cyclicAMIPolyPatch.H' ./src/meshTools/AMIInterpolation/patches/cyclicAMI/cyclicAMIPolyPatch/cyclicAMIPolyPatch.H ./src/meshTools/lnInclude/cyclicAMIPolyPatch.H alexey at daphne in OpenFOAM-2.4.x$ cd ../OpenFOAM-2.3.x/ alexey at daphne in OpenFOAM-2.3.x$ find . -name 'cyclicAMIPolyPatch.H' ./src/meshTools/AMIInterpolation/patches/cyclicAMI/cyclicAMIPolyPatch/cyclicAMIPolyPatch.H ./src/meshTools/lnInclude/cyclicAMIPolyPatch.H Surely it would be much easier if you post a link to your code but it you can not, do you have Code:
-I$(LIB_SRC)/meshTools/lnInclude |
|
October 12, 2015, 20:16 |
|
#3 |
Senior Member
Pei-Ying Hsieh
Join Date: Mar 2009
Posts: 334
Rep Power: 18 |
Hi, Alexeym,
Thanks a lot for the reply! Yes, I did more digging and found exactly what you said. The AMI areas have not changed between of-24x and of-23x. I then looked at some option file in utilities. I was able to compile successfully by adding a couple links. I have not used the utility code for quite some time now. I thought that time I used it was of-23x. I guess I was wrong. Best regards, Pei-Ying |
|
February 5, 2016, 06:29 |
|
#4 |
Senior Member
Join Date: Aug 2013
Posts: 407
Rep Power: 16 |
Hi All,
To anyone else who is still facing this problem (like I did for a couple of hours recently), please note that the solution given works, provided it is the first one included. That is, if you have (for example) EXE_INC = \ -I$(LIB_SRC)/someLibrary Change it to this: EXE_INC = \ -I$(LIB_SRC)/meshTools/lnInclude \ -I$(LIB_SRC)/someLibrary The reason I type this is because I distinctly remember putting the original hint into the options file, but I still had errors. However, when I changed the order, it seemed to work. Again, it might have been a one-off, but if anyone else faced the same issue, give this method a shot as well. Thanks alexeym for the original solution! Cheers, Antimony |
|
February 28, 2016, 07:33 |
|
#5 |
Member
Join Date: Oct 2014
Posts: 43
Rep Power: 12 |
Hi, Antimony.
I'm not familiar with Linux, but I encountered this problem, too. And I tried your suggestion, but it didn't work. So could you tell me what's the meaning of -I? |
|
February 28, 2016, 08:51 |
|
#6 |
Senior Member
Join Date: Aug 2013
Posts: 407
Rep Power: 16 |
Hi,
Can you please explain/post the error that you are encountering? Cheers, Antimony |
|
February 29, 2016, 03:42 |
|
#7 |
Member
Join Date: Oct 2014
Posts: 43
Rep Power: 12 |
Hi,Antimony.
thanks for your reply. I solved it |
|
May 10, 2016, 06:45 |
|
#8 |
New Member
vipin
Join Date: Jun 2015
Posts: 14
Rep Power: 11 |
||
May 22, 2016, 07:53 |
|
#9 |
Member
Join Date: Oct 2014
Posts: 43
Rep Power: 12 |
hi vipin,
have you solved it? could you show your error information to us? then more people can help you. |
|
November 25, 2016, 12:09 |
|
#10 |
New Member
Bah.Mah
Join Date: Jun 2016
Posts: 18
Rep Power: 10 |
Hi LIisa
I still have the same problem would you tell me how you managed to solve it (I tried the solution given above about switching the lib order but I still have the same problem) this is my error message: In file included from /home/student/OpenFOAM/OpenFOAM-2.4.0/src/finiteVolume/lnInclude/ddtScheme.C:30:0, from /home/student/OpenFOAM/OpenFOAM-2.4.0/src/finiteVolume/lnInclude/ddtScheme.H:325, from /home/student/OpenFOAM/OpenFOAM-2.4.0/src/finiteVolume/lnInclude/fvcDdt.C:28, from /home/student/OpenFOAM/OpenFOAM-2.4.0/src/finiteVolume/lnInclude/fvcDdt.H:199, from /home/student/OpenFOAM/OpenFOAM-2.4.0/src/finiteVolume/lnInclude/fvc.H:44, from /home/student/OpenFOAM/OpenFOAM-2.4.0/src/finiteVolume/lnInclude/fvCFD.H:8, from matlabFPVtablesToFoam.C:35: /home/student/OpenFOAM/OpenFOAM-2.4.0/src/finiteVolume/lnInclude/cyclicAMIFvPatch.H:39:35: fatal error: cyclicAMILduInterface.H: Aucun fichier ou dossier de ce type #include "cyclicAMILduInterface.H" ^ compilation terminated. matlabFPVtablesToFoam.dep:648: recipe for target 'Make/linux64GccDPOpt/matlabFPVtablesToFoam.o' failed make: *** [Make/linux64GccDPOpt/matlabFPVtablesToFoam.o] Error 1 + wmake ./applications/solver/FPVFoam Making dependency list for source file FPVFoam.C SOURCE=FPVFoam.C ; g++ -m64 -Dlinux64 -DWM_DP -Wall -Wextra -Wno-unused-parameter -Wold-style-cast -Wnon-virtual-dtor -O3 -DNoRepository -ftemplate-depth-100 -I/home/student/OpenFOAM/FPVFoam/src/turbulenceModels/compressible/turbulenceModel -I/home/student/OpenFOAM/FPVFoam/src/thermophysicalModels/specie/lnInclude -I/home/student/OpenFOAM/FPVFoam/src/thermophysicalModels/reactionThermo/lnInclude -I/home/student/OpenFOAM/FPVFoam/src/thermophysicalModels/basic/lnInclude -I/home/student/OpenFOAM/OpenFOAM-2.4.0/src/meshTools/lnInclude -I/home/student/OpenFOAM/OpenFOAM-2.4.0/src/finiteVolume/lnInclude -I/home/student/OpenFOAM/OpenFOAM-2.4.0/src/sampling/lnInclude -I/home/student/OpenFOAM/FPVFoam/src/thermophysicalModels/chemistryModel -I/home/student/OpenFOAM/FPVFoam/src/combustionModels/lnInclude -IlnInclude -I. -I/home/student/OpenFOAM/OpenFOAM-2.4.0/src/OpenFOAM/lnInclude -I/home/student/OpenFOAM/OpenFOAM-2.4.0/src/OSspecific/POSIX/lnInclude -fPIC -c $SOURCE -o Make/linux64GccDPOpt/FPVFoam.o In file included from FPVFoam.C:73:0: /home/student/OpenFOAM/OpenFOAM-2.4.0/src/finiteVolume/lnInclude/rhoEqn.H: In function ‘int main(int, char**)’: /home/student/OpenFOAM/OpenFOAM-2.4.0/src/finiteVolume/lnInclude/rhoEqn.H:38:22: error: ‘fvOptions’ was not declared in this scope fvOptions(rho) ^ In file included from pEqn.H:88:0, from FPVFoam.C:85: /home/student/OpenFOAM/OpenFOAM-2.4.0/src/finiteVolume/lnInclude/rhoEqn.H:38:22: error: ‘fvOptions’ was not declared in this scope fvOptions(rho) ^ In file included from FPVFoam.C:54:0: /home/student/OpenFOAM/OpenFOAM-2.4.0/src/finiteVolume/lnInclude/readTimeControls.H:38:8: warning: unused variable ‘maxDeltaT’ [-Wunused-variable] scalar maxDeltaT = ^ FPVFoam.dep:715: recipe for target 'Make/linux64GccDPOpt/FPVFoam.o' failed make: *** [Make/linux64GccDPOpt/FPVFoam.o] Error 1 Many thanks |
|
November 28, 2016, 03:44 |
|
#11 |
New Member
Bah.Mah
Join Date: Jun 2016
Posts: 18
Rep Power: 10 |
Any help would be great, I am still looking how to solve the problem
|
|
April 26, 2017, 12:52 |
|
#12 | |
New Member
Azimi
Join Date: Apr 2014
Posts: 7
Rep Power: 12 |
Quote:
For solving this error, you must edit Make/Options file into this: EXE_INC = \ -I$(LIB_SRC)/finiteVolume/lnInclude \ -I$(LIB_SRC)/meshTools/lnInclude EXE_LIBS = \ -lfiniteVolume \ -lmeshTools red-colored codes are not available in older versions. But after this correction, you may face with other errors! I recommend you to copy the solver from (your newer version): OpenFOAM (your target/newer version)/applications/solvers and edit your codes within the new files and then compile; because the header files are changed a bit in newer versions! |
||
May 13, 2017, 11:44 |
|
#13 |
Senior Member
A. Min
Join Date: Mar 2015
Posts: 308
Rep Power: 12 |
Hi
I tried all of the ways that are mentioned in this page, but the problem is not solved yet! Is there any suggestion? |
|
August 21, 2018, 07:31 |
|
#14 |
Member
Ramana
Join Date: Jul 2017
Location: India
Posts: 58
Rep Power: 9 |
Thanks a lot cavida. I made these correction and now I'm able to compile code.
|
|
September 23, 2018, 06:01 |
|
#15 |
New Member
Koby Baziani
Join Date: Jul 2018
Location: Canada
Posts: 26
Rep Power: 8 |
Hello,
I can't figure out the issue of cyclicAMILduInterface.H: No such file or directory #include "cyclicAMILduInterface.H" Even with Cavadia's advise as Make/Options: EXE_INC = \ -I$(LIB_SRC)/finiteVolume/lnInclude \ -I$(LIB_SRC)/meshTools/lnInclude EXE_LIBS = \ -lfiniteVolume \ -lmeshTools Any help please? Thanks |
|
September 23, 2018, 06:04 |
|
#16 |
New Member
Koby Baziani
Join Date: Jul 2018
Location: Canada
Posts: 26
Rep Power: 8 |
Svramana !
May I ask which version of OF do you use? |
|
October 10, 2018, 11:05 |
|
#17 |
Member
Yijiu Jiang
Join Date: Jan 2013
Location: Michigan, US
Posts: 49
Rep Power: 13 |
Koby,
I got the same error message too. Have you got this issue fixed? I am using OF 5.0. |
|
October 10, 2018, 11:11 |
|
#18 |
New Member
Koby Baziani
Join Date: Jul 2018
Location: Canada
Posts: 26
Rep Power: 8 |
Thanks for your reply. No I didn't fix it.
|
|
October 10, 2018, 15:23 |
|
#19 |
Member
Vince
Join Date: Mar 2017
Posts: 45
Rep Power: 9 |
Could you please post more information? Cavida's answer should work in OF 5 as well. And please use CODE tags.
Thanks, Vince |
|
October 10, 2018, 15:36 |
|
#20 |
Member
Yijiu Jiang
Join Date: Jan 2013
Location: Michigan, US
Posts: 49
Rep Power: 13 |
Yes, I got the problem fixed by adding the line of meshTools in my options file.
But there still some other errors. I am trying to make a utility to calculate heat transfer coefficient based on the wallHeatFlux. However I found OpenFOAM has been changed since last time I used it. The wallHeatFlux is no longer a independent utility in $FOAM_APP. Instead, it is a function of postProcess. I can still find wallHeatFlux.C and .H in $FOAM_SRC. But when I try to copy and modify it, I got a lot of compilation errors ... |
|
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
how to calculate mass flow rate on patches and summation of that during the run? | immortality | OpenFOAM Post-Processing | 104 | February 16, 2021 09:46 |
what is swap4foam ?? | AB08 | OpenFOAM | 28 | February 2, 2016 02:22 |
Problem compiling a custom Lagrangian library | brbbhatti | OpenFOAM Programming & Development | 2 | July 7, 2014 12:32 |
Trouble compiling utilities using source-built OpenFOAM | Artur | OpenFOAM Programming & Development | 14 | October 29, 2013 11:59 |
Version 15 on Mac OS X | gschaider | OpenFOAM Installation | 113 | December 2, 2009 11:23 |