CFD Online Logo CFD Online URL
www.cfd-online.com
[Sponsors]
Home > Forums > Software User Forums > OpenFOAM > OpenFOAM Programming & Development

Error making a new utility code: "cyclicAMILduInterface.H: No such file or directory"

Register Blogs Community New Posts Updated Threads Search

Like Tree26Likes

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   October 12, 2015, 10:46
Default 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
phsieh2005 is on a distinguished road
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
amuzeshi likes this.
phsieh2005 is offline   Reply With Quote

Old   October 12, 2015, 15:33
Default
  #2
Senior Member
 
Alexey Matveichev
Join Date: Aug 2011
Location: Nancy, France
Posts: 1,930
Rep Power: 38
alexeym has a spectacular aura aboutalexeym has a spectacular aura about
Send a message via Skype™ to alexeym
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
guess, problem is elsewhere.

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
line in your Make/options.
andrejssab, Zen, chengyu and 3 others like this.
alexeym is offline   Reply With Quote

Old   October 12, 2015, 19:16
Thumbs up
  #3
Senior Member
 
Pei-Ying Hsieh
Join Date: Mar 2009
Posts: 334
Rep Power: 18
phsieh2005 is on a distinguished road
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
phsieh2005 is offline   Reply With Quote

Old   February 5, 2016, 05:29
Default
  #4
Senior Member
 
Join Date: Aug 2013
Posts: 407
Rep Power: 15
Antimony is on a distinguished road
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
Antimony is offline   Reply With Quote

Old   February 28, 2016, 06:33
Default
  #5
Member
 
Join Date: Oct 2014
Posts: 43
Rep Power: 11
lisa_china is on a distinguished road
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?
lisa_china is offline   Reply With Quote

Old   February 28, 2016, 07:51
Default
  #6
Senior Member
 
Join Date: Aug 2013
Posts: 407
Rep Power: 15
Antimony is on a distinguished road
Hi,

Can you please explain/post the error that you are encountering?

Cheers,
Antimony
Antimony is offline   Reply With Quote

Old   February 29, 2016, 02:42
Default
  #7
Member
 
Join Date: Oct 2014
Posts: 43
Rep Power: 11
lisa_china is on a distinguished road
Hi,Antimony.
thanks for your reply. I solved it
lisa_china is offline   Reply With Quote

Old   May 10, 2016, 05:45
Default
  #8
New Member
 
vipin
Join Date: Jun 2015
Posts: 14
Rep Power: 10
vipin1431 is on a distinguished road
Quote:
Originally Posted by lisa_china View Post
Hi,Antimony.
thanks for your reply. I solved it
hi lisa,
I got similar error like yours. can you please tell me how did u solve that?
vipin1431 is offline   Reply With Quote

Old   May 22, 2016, 06:53
Default
  #9
Member
 
Join Date: Oct 2014
Posts: 43
Rep Power: 11
lisa_china is on a distinguished road
hi vipin,
have you solved it?
could you show your error information to us? then more people can help you.
lisa_china is offline   Reply With Quote

Old   November 25, 2016, 11:09
Default
  #10
New Member
 
Bah.Mah
Join Date: Jun 2016
Posts: 18
Rep Power: 9
R.Mah is on a distinguished road
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
R.Mah is offline   Reply With Quote

Old   November 28, 2016, 02:44
Default
  #11
New Member
 
Bah.Mah
Join Date: Jun 2016
Posts: 18
Rep Power: 9
R.Mah is on a distinguished road
Any help would be great, I am still looking how to solve the problem
R.Mah is offline   Reply With Quote

Old   April 26, 2017, 11:52
Default
  #12
New Member
 
Azimi
Join Date: Apr 2014
Posts: 7
Rep Power: 12
cavida is on a distinguished road
Quote:
Originally Posted by phsieh2005 View Post
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
I think this error arises when one wants to compile solver files in a different version (For me in newer version: OpenFoam 4.x) which those files had a successful compilation in the older versions.
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!
cavida is offline   Reply With Quote

Old   May 13, 2017, 10:44
Default
  #13
Senior Member
 
A. Min
Join Date: Mar 2015
Posts: 305
Rep Power: 12
alimea is on a distinguished road
Hi

I tried all of the ways that are mentioned in this page, but the problem is not solved yet!
Is there any suggestion?
alimea is offline   Reply With Quote

Old   August 21, 2018, 06:31
Default
  #14
Member
 
Ramana
Join Date: Jul 2017
Location: India
Posts: 58
Rep Power: 8
svramana is on a distinguished road
Thanks a lot cavida. I made these correction and now I'm able to compile code.
svramana is offline   Reply With Quote

Old   September 23, 2018, 05:01
Default
  #15
New Member
 
Koby Baziani
Join Date: Jul 2018
Location: Canada
Posts: 26
Rep Power: 7
Gbaz is on a distinguished road
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
Gbaz is offline   Reply With Quote

Old   September 23, 2018, 05:04
Default
  #16
New Member
 
Koby Baziani
Join Date: Jul 2018
Location: Canada
Posts: 26
Rep Power: 7
Gbaz is on a distinguished road
Svramana !
May I ask which version of OF do you use?
Gbaz is offline   Reply With Quote

Old   October 10, 2018, 10:05
Default
  #17
Member
 
Yijiu Jiang
Join Date: Jan 2013
Location: Michigan, US
Posts: 49
Rep Power: 13
y_jiang is on a distinguished road
Koby,


I got the same error message too. Have you got this issue fixed?
I am using OF 5.0.
y_jiang is offline   Reply With Quote

Old   October 10, 2018, 10:11
Default
  #18
New Member
 
Koby Baziani
Join Date: Jul 2018
Location: Canada
Posts: 26
Rep Power: 7
Gbaz is on a distinguished road
Thanks for your reply. No I didn't fix it.
Gbaz is offline   Reply With Quote

Old   October 10, 2018, 14:23
Default
  #19
Member
 
Vince
Join Date: Mar 2017
Posts: 45
Rep Power: 9
hyFoam is on a distinguished road
Could you please post more information? Cavida's answer should work in OF 5 as well. And please use CODE tags.


Thanks,
Vince
hyFoam is offline   Reply With Quote

Old   October 10, 2018, 14:36
Default
  #20
Member
 
Yijiu Jiang
Join Date: Jan 2013
Location: Michigan, US
Posts: 49
Rep Power: 13
y_jiang is on a distinguished road
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 ...
y_jiang is offline   Reply With Quote

Reply


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are Off
Pingbacks are On
Refbacks are On


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 08:46
what is swap4foam ?? AB08 OpenFOAM 28 February 2, 2016 01:22
Problem compiling a custom Lagrangian library brbbhatti OpenFOAM Programming & Development 2 July 7, 2014 11:32
Trouble compiling utilities using source-built OpenFOAM Artur OpenFOAM Programming & Development 14 October 29, 2013 10:59
Version 15 on Mac OS X gschaider OpenFOAM Installation 113 December 2, 2009 10:23


All times are GMT -4. The time now is 13:14.